"Curtis L. Olson" <[EMAIL PROTECTED]> said:

> If you look at the code in tileentry.cxx starting about line #881:
> We calculate an agl value, then we calculate a dist value.
> The "lift" vector is calcuated from both these numbers.
> 

Ah, ok I'll look again.  Take it the distance is from tile center?

> > Right,  but the "AGL translation" based on the aircraft altitude, so that 
> > if aircraft is at a high spot on the airport the lights rise
> > uniformly.  Isn't that correct?
> 
> We are using the AGL altitude, i.e. the distance above the ground, so
> if you taxi from a low spot to a high spot, your AGL hasn't changed.
> Most likely you are seeing a change in "dist".

Hmmm...yeah I realized that was the case 10 minutes after I sent the
message...sigh.
 
> > That is what "got corrected" by the patch.  No matter what runway
> > you are on, the lights are always the same distance off the ground
> > with the patch.
> 
> We may want to think the patch ... 
> 
> Probably the right thing to do if we can spare the cpu cycles is raise
> the lights based on distance from the center of the airport or
> distance from the center of the light group.
>

I'll have to look at the code more closely.  The last time I followed it
through I was looking into that agl related viewer bug...something is there
that I don't remember or understand.

BTW can someone give me a starting position where the lights are unusually
high?  Still haven't been able to reproduce this.

Best,

Jim

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to