Zero 3D Assets: Developer Generates a Kyoto Moss Garden Entirely in Code
Promptmethus · x · 2026-11-26
A developer procedurally renders a Kyoto moss garden in Godot 4.7.2 with no external 3D models — terrain, stone bridge, buildings and plants are all mesh-generated by script — and shares a full technical memo aimed at AI coding agents.
Key techniques
- One-stroke bridge: a single Catmull-Rom spline resampled every 0.24m against a river SDF; water segments longer than 1.2m become a parabolic arch bridge, land segments become three-tier rubble walls, with voussoirs, keystones and railings generated procedurally.
- Bouncy stones: each stone uses a second-order damped spring (ζ=0.43, ω=23.5rad/s, 22% overshoot) with volume-preserving squash-and-stretch; water entry injects ripples and bridge piers act as obstacles producing V-shaped wakes.
- Fluffy moss: 20 shell-texture layers via MultiMesh, noise-based alpha clipping for tips, dark humus at the base fading to backlit yellow-green at the tips; moss creeps up joints over 1.45s starting 0.3s after stones settle.
- Water: a GLSL compute shader runs a 256×256 shallow-water sim with a 9-point Laplacian at a fixed 120Hz step, fed straight to the water shader via Texture2DRD with no CPU readback, at 0.02ms GPU per step.
The author says handing the post to Claude Code / Codex reproduces the same result.
More from coding & agent
- Athar Launches as a Service-Fingerprint Standard: One YAML Rule, Seven Search Engines — cyb3rops · 2026-11-26
- Give AI One Place to Read: Identity, Goals, Projects and Voice — dSebastien · 2026-11-26
- Pedro Domingos: 99.9% of Claude's Riemann proof is dead code and scaffolding — pmddomingos · 2026-11-26
- HungerG: Free Anonymous Model Generates Shenzhen 1979-to-Now City Animation Via Pure Code — anselm · 2026-11-26
- Play2Evolve uses AI playtesting feedback to iteratively improve AI-generated games — showlab · 2026-11-26
- Anthropic study: humans blocked just 13.6% of dangerous agent commands, AI caught 89% — FinanceYF5 · 2026-11-26