Osm2city.py: Difference between revisions

Jump to navigation Jump to search
no edit summary
(http://flightgear.org/forums/viewtopic.php?f=5&t=19625)
No edit summary
Line 8: Line 8:
Has been tested with Dresden, Germany (EDDC) and Innsbruck, Austria (LOWI). Both areas are now populated with about 50,000 buildings. Rendering this in FG is quite demanding. The FG process eats ~2.8GB RAM when flying in those areas, the download is ~50 MB each.  
Has been tested with Dresden, Germany (EDDC) and Innsbruck, Austria (LOWI). Both areas are now populated with about 50,000 buildings. Rendering this in FG is quite demanding. The FG process eats ~2.8GB RAM when flying in those areas, the download is ~50 MB each.  


Features
== Features ==
* reads buildings from OSM. Honors height and level tags.
* reads buildings from OSM. Honors height and level tags.
* reads existing .stg, won't place OSM building if there's a static model nearby
* reads existing .stg, won't place OSM building if there's a static model nearby
Line 23: Line 23:
* writes .ac, .xml, .stg
* writes .ac, .xml, .stg


Planned
== Planned Features ==
* make command line interface. Currently, everything is hard-coded.
* make command line interface. Currently, everything is hard-coded.
* Rembrandt lighting
* Rembrandt lighting
Line 35: Line 35:
:* then ship light/med/full .stg
:* then ship light/med/full .stg


Ideas
== Ideas ==
* nearby hi-rise objects of similar shape get same texture? Probably too special a feature.
* nearby hi-rise objects of similar shape get same texture? Probably too special a feature.
* bump map/reflection effects?
* bump map/reflection effects?
* a mode that generally uses shared models? If we find a shared models of matching floorplan, use this instead of creating a new, individual building? Will break clusters.
* a mode that generally uses shared models? If we find a shared models of matching floorplan, use this instead of creating a new, individual building? Will break clusters.


Workflow:
== Workflow ==
* get osm data (wget line)
* get osm data (wget line)
* probe elevation for this area:
* probe elevation for this area:
Line 50: Line 50:
* run install.sh
* run install.sh


Improve fps:
== Improve fps ==
* adjust LOD range in FG
* adjust LOD range in FG
* use less buildings: increase min_area, LOD_percentage
* use less buildings: increase min_area, LOD_percentage
(- use smaller tiles? Tradeoff between distance calculations/xml parsing and GPU)
(- use smaller tiles? Tradeoff between distance calculations/xml parsing and GPU)


== Contributing ==
How you could get involved: take pictures of buildings where you live! I'm especially interested in south-east asian style architecture, as I'm planning to populate Hong Kong Kai Tak (VHXX) in the future.
How you could get involved: take pictures of buildings where you live! I'm especially interested in south-east asian style architecture, as I'm planning to populate Hong Kong Kai Tak (VHXX) in the future.


Navigation menu