Lee Elliott writes: > Perhaps we need a directory in Scenery that can be scanned for > world landmarks like this. Could the model and location data be > defined in an xml file? Would it be possible to animate them? > (thinking rotating restaurants and swing bridges here).
I've been thinking about this for a while, and I think that the best approach would be to read scenery from multiple directories at once. For example, I could have the main scenery under /usr/local/FlightGear/Scenery/, and major landmarks under /usr/local/FlightGear/Landmarks/, and configure it something like this: FG_SCENERY_PATH=/usr/local/FlightGear/Scenery/:/usr/local/FlightGear/Landmarks/ When FlightGear went to load the scenery for downtown Toronto, it would first load /usr/local/FlightGear/Scenery/w080n40/w080n43/1646954.stg, then it would load /usr/local/FlightGear/Landmarks/w080n40/w080n43/1646954.stg. The user might also add local paths to that. To keep things simple, we could declare that any OBJECT_BASE lines after the first one found should be ignored (and possibly any OBJECT lines as well?). I tried experimenting with this idea a few weeks ago, but I don't understand the scenery-loading code well enough, and couldn't figure it out. Perhaps someone who knows the code could look into implementing this on top of plib's platform-independent path support. All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/ _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
