On Samstag 26 November 2005 20:30, Mathias Fröhlich wrote:
> On Samstag 26 November 2005 19:47, Joacim Persson wrote:
> > fgfs --airport=EGLL --aircraft=ufo
> >
> > ...puts you in a mysterious place with thick fog, where ground level is
> > about 6 million m below sea level. This must be the airport of Hell.
> >
> > While trying to investigate this, I found the following peculiar logic in
> > FDM/groundcache.cxx, line 364:
> >
> >          if (0 < sgdScalarProductVec3( off, down ) || !found_ground) {
> >               found_ground = true;
> >
> > Which reads "if ground is not found, then ground must be found". ?:-P
>
> Well that must be logic from hell ...
> Seriously, I can reproduce, I am currently investigating ...
Hmm, was too fast, I had some changes because of your mail in this area. These 
changes made me able to 'reproduce'.
That is:
I have no problem with this.

The logic you found strange makes indeed some sense. Even if one might find an 
other solution to that too ...
That check is only made if the line from the aircraft intersects some triangle 
in the scenegraph. The found_ground value is used together with that altitude 
value computed at this point as a fallback value if the aircraft is not near 
the ground so that we still have some ground elevation even if the small ball 
around the aircraft does not contain ground triangles.
For initialization we need some ground level even if the initial altitude is 
0ft like it is at the moment. That is: accept any ground level we can find 
even if the aircraft is actually below.

So, since I do not see that problem:
Do you have any modifications in your local tree?

      Greetings

        Mathias

-- 
Mathias Fröhlich, email: [EMAIL PROTECTED]

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to