Add cathedral scene generator, render script, and design docs#27
Merged
Conversation
- Extend gen_scene.c with 5 new shape writers (disk, torus, ellipsoid, triangle, paraboloid) and material-aware variants for existing writers - Add "cathedral" preset that procedurally generates the 236-shape cathedral ruins scene with seed-controlled debris randomization - Create scripts/render_cathedral.sh with --preview/--full/--generate-only modes, xvfb-based headless rendering, and elapsed time reporting - Create skills/scene-design.md documenting architectural scene design, the cathedral as a case study, material/lighting strategy, performance considerations, and the preview-iterate-render workflow - Add render-cathedral Makefile target https://claude.ai/code/session_011y4jf3XH1xLchcQXdo1NAy
- Replace single cramped camera with 4 angles: elevated nave overview, angled entrance, transept crossing, and low dramatic perspective - Add scripts/bmp2png.py for BMP-to-PNG conversion - Update render_cathedral.sh with --png flag and fallback rendering https://claude.ai/code/session_011y4jf3XH1xLchcQXdo1NAy
- Replace cramped camera (Z=12) with 4 angles: elevated nave overview (Z=25), angled entrance, transept crossing, low dramatic - Add E directive for gradient sky background (no more black void) - Add scripts/bmp2png.py for BMP-to-PNG conversion - Update render_cathedral.sh with --png flag and fallback rendering - Re-render at 2560x1440, convert to PNG (1.1MB vs 11MB BMP) - Update README to reference renders_preview/cathedral_ruins.png - Update gen_scene.c cathedral preset with new cameras + E directive https://claude.ai/code/session_011y4jf3XH1xLchcQXdo1NAy
lienardale
force-pushed
the
claude/cathedral-gen-tools
branch
from
March 26, 2026 17:22
7d50c50 to
d291e58
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/gen_scene.cwith 5 new shape writers (write_disk,write_torus,write_ellipsoid,write_triangle,write_paraboloid) and material-aware_matvariants for existing writerscathedralpreset togen_scenethat procedurally generates the 236-shape medieval cathedral ruins scene, with seed-controlled debris randomizationscripts/render_cathedral.shwith--preview/--full/--generate-onlymodes, xvfb-based headless rendering, and elapsed time reportingskills/scene-design.mddocumenting architectural scene design principles, the cathedral as a case study, material/lighting/color strategy, performance considerations, and the preview-iterate-render workflowrender-cathedralMakefile targetUsage
Test plan
make gen_scenebuilds successfully./gen_scene --listshows cathedral preset./gen_scene --preset cathedral --output test.rtgenerates valid .rt (~242 shapes)scripts/render_cathedral.sh --previewrenders BMP at 640x360make render-cathedral ARGS="--full"produces full-res BMPhttps://claude.ai/code/session_011y4jf3XH1xLchcQXdo1NAy