Favela generator

Scripted in Python in Maya.

This script makes buildings that grow on top of and around each other. Here it is growing buildings in the shape of Manhattan.

Most city-generating algorithms treat buildings as distinct and separate objects, and for many cities (especially in the US) that's superficially accurate. I wanted to see a slum generator, something that could simulate the kind of construction you get in the oldest parts of ancient cities, with layers of buildings wrapped around each other. This script is a step toward that.

Working with this many pieces, I needed fast collision-detection, so I built an octree.

c 2010 Fake