Prompts that generate 3D scenes with three.js.
21votes
0answers
4.2kviews

Three.js solar system with orbit controls from a single prompt - sharing what finally worked

Getting a correct-feeling solar system out of one prompt is surprisingly hard: you either get planets orbiting at the same speed or a camera stuck inside the sun. This prompt gets the scale relationsh
16votes
0answers
2.3kviews

Prompt for OrbitControls that auto-frames any loaded model and never lets you fly inside it

I load a lot of random glTF models and half of them arrived either microscopic or filling the whole viewport. I kept manually tweaking camera distance per model like an animal. So I wrote a prompt tha
9votes
0answers
1.4kviews

Responsive camera framing in three.js so a scene fills phone portrait and desktop wide equally

My 3D product scene looked perfect on my 16:9 monitor and then the hero object was tiny and floating in the corner on a phone in portrait. Classic: I was only adjusting aspect on resize, not the actua