> .... but setting an empty startup environment, no '.fgfsrc' or any
> other preferences at all doesn't make a difference.
> Finally, when I'm now starting 'fgfs', it'll hang forever at "loading
> scenery objects".  This issue has been introduced between 1.9.1 and
> 2.0.0 - anyone having a clever idea how this could be related / fixed ?
>
> I'm under the assumption that by setting the above preferences I
> already _do_ have disabled all those new features which might
> automagically interact with terrain surface.  Or did I miss something
> relevant ?
> I'll probably have to start stepping through the changes between the
> forementioned releases but, as you might guess, I'd appreciate
> knowledgeable comments.
The main loop escapes from the "loading scenery objects" when the fdm is 
initialized (property /sim/fdm-initialized goes to true). This property 
gets set from the FDMShell in the update() method only, if scenery is 
available under the aircraft. This will never happen if you are above a 
hole in the ground. You can fool the logic by setting 
/sim/fdm-initialized to "true" from the property browser after startup.

Torsten

Here is the relevant code: from src/FDM/fdm_shell.cxx

void FDMShell::update(double dt)
{
   if (!_impl) {
     return;
   }

   if (!_impl->get_inited()) {
     // Check for scenery around the aircraft.
     double lon = fgGetDouble("/sim/presets/longitude-deg");
     double lat = fgGetDouble("/sim/presets/latitude-deg");

     double range = 1000.0; // in metres
     SGGeod geod = SGGeod::fromDeg(lon, lat);
     if (globals->get_scenery()->scenery_available(geod, range)) {
         SG_LOG(SG_FLIGHT, SG_INFO, "Scenery loaded, will init FDM");
         _impl->init();
         if (_impl->get_bound()) {
           _impl->unbind();
         }
         _impl->bind();

         evil_global_fdm_state = _impl;
         fgSetBool("/sim/fdm-initialized", true);
         fgSetBool("/sim/signals/fdm-initialized", true);
     }
   }


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to