Getting it to work¶

You can get the source code at our Github Page

If you have git installed, you can clone the repository instead of downloading it as a .zip archive with:

git clone https://github.com/josauder/procedural_city_generation.git

Dependencies:

python 2.7+

numpy (1.8.2+)

scipy (0.14.1+)

matplotlib (1.4.2+)

PyQt4 (4.8.6+)

Blender 2.6x+

As of now, this project runs on both Python 2 and 3. All dependencies except Blender should be included in any scientific python distribution (e.g. Python(x, y) and Anaconda). To start the program with the GUI (assuming all dependencies are installed):

cd procedural_city_generation python GUI.py

If everything worked so far, the GUI should open up and look like this:

If not, then there is probably a missing dependency. To troubleshoot, try running the python file /test/Tester.py by using the following command from the procedural_city_generation directory:

python test/Tester.py

This will generate a log file in procedural_city_generation/procedural_city_generation/outputs/test.log which might contain valuable clues about why this is not working. If you can not figure it out yourself, please create an issue at our Github Page.

The last step (“Visualize in Blender”) will not work on windows machines because you can not run blender by simply typing:

blender --python "procedural_city_generation/visualization/blenderize.py"

from the command line. On windows you will have to run this script manually by opening blender, and replacing the path with the path to procedural_city_generation/procedural_city_generation directory.