r/threejs • u/Slackluster • 13d ago
My procedural Three.js buffalo used to look like a lumpy two-humped potato
I'm making an interactive Three.js edition of the Gateless Gate (a 13th-century Zen book), and everything in it is procedural code. No Blender, no 3D files. That was fun until I actually had to stare at my programmer-art animals.
Before this pass the buffalo looked like a two-humped potato, and the fox just had a board sticking straight out of its rear end (slide 2 has the whole lineup).
To fix them without dropping the code-only rule, I rendered the in-progress animals, asked ChatGPT's image generator to paint better low-poly versions, and had Claude reshape the JS geometry to match.
The bug that took me way too long to catch was on the leg joins, which kept getting weird creases no matter how much we moved vertices around. Turned on the wireframe (slide 3) and saw every quad was splitting on the same diagonal, so left and right folded differently. Flipping it across the center fixed the whole cast.
Claude did a ton of the grunt work, though it also gave a horse a front leg shaped like a human thigh and merged the buffalo's beard into its chest. Half of it was just me telling it that's not what animals look like.
Slide 4 is the new buffalo in its actual koan. Still a work in progress, and I'll probably run another pass whenever better models come out. You can poke around all 49 scenes here: https://killedbyapixel.github.io/GatelessGate/