josauder / procedural_city_generation

Procedural City Generation program implemented in Python and Visualized with Blender.
Mozilla Public License 2.0
561 stars 86 forks source link

Programmatically add blender's "shrinkwrap" effect #21

Open josauder opened 8 years ago

josauder commented 8 years ago

I want to move away from depending on Blender for this project. It would be cool if this project could stand alone without a dependency that is an entire program in itself (Blender) instead of being just a library (numpy, etc.) I have added the possibility to write to .obj file format (wavefront) - this is functional but as of now the 3D data we produce in building_generation relies on Blender's "shrink wrap" modifier, which projects the "floor" meshes onto the underlying heightmap. It should be possible with some thought (yay linear algebra) to do this ourselves and produce a correct .obj file.

The goal is to be able to use our .obj file in any backend (Game Engines, Blender, maybe even a browser with the help of webgl/three.js).