Jim Wilson wrote:
 > It looks like somehow the panel is locking the the offset adjustments.
 > So that if you move into the back seat the panel comes with you.

Locking?  No.  Ignoring. :)

The virtual panel code always draws itself with the origin at the
eyepoint.  This is because it was basically done backwards -- it
figures out where the panel should be on the screen based on the view
direction offset from the aircraft frame.  The *right* way to do this
would be to just push a transformation on the stack that maps panel
coordinates to aircraft coordinates, and assume that the code
higher-up has set up the modelview matrix appropriately for the
cockpit reference frame.

Your changes to put the panel in a scene graph are the big part of the
solution.  Really, the panel should be drawn immediately after the
aircraft model, with the same matrix environment.  If you can get this
put together (forgive me if you already have -- I haven't read the
changes yet), I'll fix the panel.

Andy

-- 
Andrew J. Ross                NextBus Information Systems
Senior Software Engineer      Emeryville, CA
[EMAIL PROTECTED]              http://www.nextbus.com
"Men go crazy in conflagrations.  They only get better one by one."
  - Sting (misquoted)


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

Reply via email to