20,741
edits
m (→Random Buildings (Stuart): http://forum.flightgear.org/viewtopic.php?p=192387#p192427) |
|||
Line 56: | Line 56: | ||
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: http://gitorious.org/fg/simgear/trees/next/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: http://gitorious.org/fg/simgear/blobs/next/simgear/scene/tgdb/SGBuildingBin.cxx | ||
Probably the best way to do this would be to separate the "random" from the "buildings" in the curent random buildings, and use the OSM data as an alternative data source for the latter. | |||
However, before we do that I need to get the PageLOD working well enough that I can replace the (relatively) memory efficient instantiation approach with the original memory-heavy implementation of random buildings which allows better control over each individual building. | |||
=== Random Buildings Scripting Interface (Hooray, Thorsten) === | === Random Buildings Scripting Interface (Hooray, Thorsten) === |