CMU's Keenan Crane Coaxes an LLM into Writing 27KB of GLSL for an Implicit-Surface Dragon
CMU geometer Keenan Crane ran a contrarian 3D modeling experiment: instead of the usual LLM+Blender/Three.js pipelines, he had an LLM (Astra) directly generate 27KB of GLSL defining a closed analytic implicit surface (an SDF), producing a dragon named "Inigo the Dragon" in tribute to Inigo Quilez. He stresses this was only an experiment, concludes it is far less efficient than diffusion mesh generators, but argues the procedural route offers unique value. All artifacts are released under CC0 in his CMU 3D model repository.
Confirmed
- He published the full initial prompt: represent a reference image as a procedural SDF in Inigo Quilez's distance-functions style, with the model building its own primitive library and combination operations, organized coarse-to-fine, including a diagram of detail hierarchies; he also exchanged notes with ShaderToy author iquilezles
- Step one used Nano Banana to generate front/side reference images — the easiest step, underscoring diffusion models' advantage for dense visual content
- A "true believer" prompt plus Quilez's tutorials helped somewhat; generic "do better" prompts stalled quickly, so he switched to human feedback — even the best VLMs judge images unreliably, especially for high-end 3D and artifacts, bottlenecking the visual feedback loop
- He admits "cheating" by feeding screenshots of image-to-3D diffusion outputs to the AI, calling such priors too good to skip; he also chose rounded shapes and simple materials more expressible by closed-form implicit formulas, and noted diffusion meshes can capture fingernail-level detail
- Total cost: 25 hours of AI calls, 27 rounds of human feedback; Astra's first direct generation took 45:47 and was, in his words, "uh, beautiful" — versus 3 minutes for diffusion models
- Implicit surfaces are expensive to visualize: even with a custom Metal renderer, a video took 45 minutes to render, and he eventually converted the surface to a mesh
- He named the model "Inigo the Dragon," saying likely only iq could build it by hand; all outputs are in his CMU repository (alongside Spot, Jerry) under CC0
Unconfirmed
- A Reddit post claims the same mathematical 3D modeling technique achieved up to 629x rendering speedup and 1000x+ (truncated) elsewhere; this is community hearsay, not part of Crane's experiment
Why it matters
- He identifies two reasons procedural 3D is hard for LLMs: irregular tree-structured data is harder to learn than grid-sampled SDFs, and training data is scarce — almost no artists model this way
- Yet it remains worth trying: LLMs excel at tree-like statistical structure, VLM spatial intelligence is improving fast, and this route is like "Blender primitives" for smooth organic shapes
- Recovering 3D from 2D projections is ill-posed — many combinations of geometry, material, lighting and camera yield the same image — so priors are essential; his geometric prior is "objects are blends of primitives," and diffusion-model screenshots are a strong exploitable prior
- His bottom line: for real image-to-3D needs, diffusion mesh generators like Meshy or Tripo are faster, cheaper, better and fully automatic — 3 minutes and 50 cents per mesh
2026-10-10 ~ 2026-10-11 · 23 related posts
Primary sources
- [source] This 3D dragon is 27KB of LLM-generated GLSL, not a mesh or NeRF — keenanisalive · 2026-10-10
- CMU prof uses LLMs to write 27KB of GLSL defining an implicit-surface 3D dragon — keenanisalive · 2026-10-10
- 25 hours of AI calls, 27 rounds of feedback: a dragon honoring Inigo Quilez — keenanisalive · 2026-10-10
- Real image-to-3D? Meshy/Tripo beat the 27KB GLSL implicit surface by far — keenanisalive · 2026-10-10
- Rendering an implicit surface: 45 minutes for one clip even with custom Metal renderer — keenanisalive · 2026-10-10
- Step one of the implicit-surface dragon: Nano Banana reference images — keenanisalive · 2026-10-10
- Reconstructing 3D from 2D is ill-posed; Nano Banana made the reference views — keenanisalive · 2026-10-10
- Tree-like procedural 3D data is hard for LLMs to learn — and data is scarce — keenanisalive · 2026-10-10
- Why it's still worth trying: LLMs handle tree-like data and VLM spatial skills are rising — keenanisalive · 2026-10-10
- [source] Full prompt revealed: making an LLM build procedural SDF 3D models from one image — keenanisalive · 2026-10-10
- LLM took 45 minutes to model a dragon; a diffusion model did far better in 3 — keenanisalive · 2026-10-10
- Telling an LLM to "believe in yourself" helps it write 3D SDF models, but not enough — keenanisalive · 2026-10-10
- "Do better!" prompting stalls fast; even top VLMs understand images unevenly — keenanisalive · 2026-10-10
- Keenan Crane admits 'cheating' by feeding image-to-3D diffusion outputs to his AI workflow — keenanisalive · 2026-10-10
- [source] CMU's Keenan Crane wraps AI-assisted 3D modeling thread, releases all model files under CC0 — keenanisalive · 2026-10-10
- Keenan Crane shows AI-generated shader with coarse-to-fine decomposition diagram — keenanisalive · 2026-10-10
- Diffusion-based mesh nails nail-level 3D detail, but realistic dragons still fail — keenanisalive · 2026-10-10
- LLM-Generated 27KB of GLSL Code Renders a Dragon as a Closed-Form Implicit Surface — rishit_dagli · 2026-10-10
- CMU professor builds detailed 3D dragon from 27KB of code via Astra — 141_1337 · 2026-10-11
4 near-duplicate retellings: keenanisalive · TinfoilTricorn · RileyRalmuto · rishit_dagli