reinterpretcat / utymap

Highly customizable library for procedural world generation based on real map data
Apache License 2.0
959 stars 151 forks source link

Generate 3d models from map data #91

Closed plandem closed 7 years ago

plandem commented 7 years ago

is it possible to use core to create some kind of toolchain?! i.e. generate .obj files(3d models) of buildings? It's not clear how to use, some examples would be nice.

reinterpretcat commented 7 years ago

Yes, it is possible. The main question is how API should look like? For example:

Also some buildings consist of multiple parts which are not parts of one relation. It means that you will have them stored separately.

In general, you can already export buildings to 3d models using current API: when tile is loaded, it emits TileLoadFinishMessage which aggregates Tile object. Tile holds a reference to GameObject which is parent of all rendered objects for loaded quadkey. You can iterate through all its children and find buildings using game object name: all buildings start from "building:" following id.

reinterpretcat commented 7 years ago

Closed as answered