Using OSM Vector Data in FlightGear: Difference between revisions

Jump to navigation Jump to search
Switch to {{simgear source}} and {{gitorious source}} to update the out of date and broken Gitorious links.
(Switch to {{simgear source}} and {{gitorious source}} to update the out of date and broken Gitorious links.)
Line 142: Line 142:




FlightGear's random building code is implemented as part of the SimGear library, in the tgdb folder: http://gitorious.org/fg/simgear/trees/next/simgear/scene/tgdb
FlightGear's random building code is implemented as part of the SimGear library, in the tgdb folder: {{simgear source|path=simgear/scene/tgdb}}
The most important file is SGBuildingBin.cxx: http://gitorious.org/fg/simgear/blobs/next/simgear/scene/tgdb/SGBuildingBin.cxx
The most important file is SGBuildingBin.cxx: {{simgear source|path=simgear/scene/tgdb/SGBuildingBin.cxx}}




Line 232: Line 232:


=== OSM & Canvas (TheTom) ===
=== OSM & Canvas (TheTom) ===
TheTom is also working on something to show tilemaps inside a canvas. I've now pushed a function to fgdata (https://gitorious.org/fg/fgdata/commit/41b6c9c688ce78d8c907a07c42b9ea4d8290da0c) which allows building templates for the tile urls.
TheTom is also working on something to show tilemaps inside a canvas. I've now pushed a function to fgdata ({{gitorious source|proj=fg|repo=fgdata|commit=41b6c9c688ce78d8c907a07c42b9ea4d8290da0c|view=commit}}) which allows building templates for the tile urls.




Line 371: Line 371:
'''vanosten:'''It is meant to be to support pylons from the shared objects library be placed based on OSM data in Python (extending osm2city).
'''vanosten:'''It is meant to be to support pylons from the shared objects library be placed based on OSM data in Python (extending osm2city).


'''f-ojac:'''Have a look at https://gitorious.org/fgscenery/tools too to avoid duplicate work. Power lines are showing in OSM, for instance http://osm.org/go/WJHUyw34-
'''f-ojac:'''Have a look at {{gitorious source|proj=fgscenery|repo=tools|full=1}} too to avoid duplicate work. Power lines are showing in OSM, for instance http://osm.org/go/WJHUyw34-
For mapserver, yes we'll have to wait a little as there are some prioritary works on. Automated power line object generation from OSM data has already been tested a few years ago. Right now we're trying to make this process rework, with other objects (windturbines, watertowers...) before going into more complicated stuff. Aligning the pylons is also doable, Jon wrote a script on that a few years ago. Now the webforms are done and terrain generation is quite finished, we'll focus on some other nice features.
For mapserver, yes we'll have to wait a little as there are some prioritary works on. Automated power line object generation from OSM data has already been tested a few years ago. Right now we're trying to make this process rework, with other objects (windturbines, watertowers...) before going into more complicated stuff. Aligning the pylons is also doable, Jon wrote a script on that a few years ago. Now the webforms are done and terrain generation is quite finished, we'll focus on some other nice features.


Navigation menu