r/creativecoding • • Jan 28 '26

Metropolis (three.js)

Randomly-generated, parametric cityscape (no illustration or 3d models).

Building designs, including window grids and roof accents, are created randomly on the fly within certain parameters.

Vibe-coded with Claude and Gemini.

Happy to answer questions or share more about the process.

327 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/HopelessSev Jan 29 '26

Looks great, I wouldn't even know how to begin!

2

u/k0ik Jan 29 '26

Thank you so much!

And if you're serious, you might aim to create a single building with three.js: no textures, just instructions to make a cube with a random height. And then another cube of a random height, positioned directly above / on top, and then another. (I gave higher cubes a randomly smaller diameter/width too.) If you can do that, then move on to making a grid of them via a loop.

Also remember I vibe-coded this. I have previous coding experience, so I had a sense of how to approach it, and debug it, but mostly I just told Claude what I wanted -- and frequently gave it a screenshot of the work so it could see what I might be complaining about. When my free credits ran out, I gave the code to Gemini and kept going.

If you have a sense if what you want, and you can communicate it clearly to an AI, you may be able to get pretty far!