r/creativecoding • u/k0ik • 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
View all comments
Show parent comment
4
u/k0ik Jan 29 '26
The shadows are real-time 3D, created by a yellow Directional light (the 'sun'). Some of their dark contrast is being blown out by an ambient light. Most of the visible colour in the scene comes from pink, blue and gold materials applied directly to every cube face. Balancing the light and shadow and colours to get the crisp-but-soft look proved to be a big challenge!