i4dnf wrote in Wed Aug 10, 2011 4:10 pm:You shoud search in the terragear code. That's what generates the scenery ground model (airports included). Flightgear only displays what is already pregenerated.
That's correct, some info on the underlying file format can be found here:
http://wiki.flightgear.org/BTG_file_formatI am afraid, the architecture of TerraGear itself is pretty undocumented at the moment.
But if you know C++ you can probably get started just by looking for main() and proceeding from there.
In addition, you could consider running doxygen against the terragear source tree to create some flow charts automatically.
Also, you might want to check out "SourceNavigator NG" for navigating the source tree.
Personally, I'd suggest to start a new wiki page and put your questions there and collect your findings - so that others can try to help you, you may also want to check out the FlightGear developers mailing list to ask your questions there.
In addition, it'd be a good idea to search the archives of the mailing lists and the forum for possibly related information.