Jim Wilson writes: > > David Megginson <[EMAIL PROTECTED]> said: > > > Norman Vine writes: > > > > > BUT does the Terrain Graph contain the tile you are > > > trying to determine the AGL from ?? > > > > It should, because the OBJECT_STATIC directive occurs only in *.stg > > files, which are parsed when the tile containing the object is > > loaded. > > Are you testing the loaded flag for the tile entry you are testing against? > IIRC that is the last thing done by the loader. Take a look at the end of the > mainloop (approx line 1155 in main.cxx) to see how I'm getting an AGL for the > FDM's location when it is not in the current view. It uses the high level > tilemgr methods, but if you follow the values you should be able to see what > you are missing.
Yes, this is demonstrates nicely the method I outlined in my last post "try setting up a 'phony teleportation' to where the scenery_center and absolute_position are in the same tile as the point that you are requesting the elevation for." Regards Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
