Hi, On Wednesday 05 August 2009 12:59:16 Vivian Meazza wrote: > During this development I discovered that SGGeod::fromGeodM(pos, 10000) now > finds everything, not just scenery. So when trying to find the AGL of the > train, it was finding itself. The hack was to disable HOT for the model. I > don't know if this is the intent for SGGeod::fromGeodM(pos, 10000). Yes that is by intent. Set proper node masks for the submodels from the AI code. That is still clamped away for the AIModels but switched on for everything being a ship when I remember right. So you should not need to disable hot property in the model.
It would be also possible to extend the terrain intersection to find everything except itself. That was just a fast 5 minute change that is up to now totally untested. Can you try that out by providing an additional top level scenegraph pointer node pointer to the ground lookup functions as a last argument? See the current change in the FGScenery::get_*elev* mehtods. Greetings Mathias ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel