Dark mode switch icon Light mode switch icon

playing with procedural cities

1 min read

Procedural worlds are awesome. I started playing with Processing and making some!

Unfortunately, Processing is based on Java which doesn’t have operator overloading. Ordinarily I’d be fine with that, but this is gonna get mathsy, so I switched to Cinder, which is C++. After a mercifully swift porting effort, we were back up:

It’s a promising start, but it’s way too rectilinear. I’m going to have to back up and look at generating a road network before anything’s going to look much better. After playing a bit, I found that a random Voronoi diagram seems to give me a nice starting point for the major zoning of a city:

Going beyond a voronoi diagram seems pretty gnarly though :(

I started collecting some reference: byjingo.tumblr.com. Now I have some ideas on what might work, I started playing:

There’s clearly still a lot of work to be done!

To be continued…

Originally published on by alex mole