]> git.mxchange.org Git - flightgear.git/commit
Patch from Andy Ross:
authordavid <david>
Mon, 4 Mar 2002 13:27:53 +0000 (13:27 +0000)
committerdavid <david>
Mon, 4 Mar 2002 13:27:53 +0000 (13:27 +0000)
commitf477a4603b63faaa9f1eb8ca75350c784a0f56ac
tree9cbe33788e000ba7b3c0ae6d687dcaa101227cc6
parentb9d1cad6f2b90792b4e0972942557626aa180ce2
Patch from Andy Ross:

Actually, I think I'm off the hook here; the problem is pre-existing.
What's happening is that the x/y offsets enter the modelview matrix at
line 346 in the current panel.cxx.  But note that the same
transformation also occurs before each instrument rendered at line
403.  What's happening is that the instruments are double-translated
relative to the background.

Unless I'm not understanding something, the one inside the instrument
render loop looks unnecessary.  Removing it fixes the issue and
doesn't cause any bugs that I can find.  It also fixes a bug where you
could scroll the instruments on top of the 3D panel, where the offsets
are supposed to be ignored. :)

Attached is a new panel.cxx which fixes that bug, and substantially
simplifies the virtual panel code (the matrix inversion that I thought
was needed wasn't, but there were some offsetting scale bugs that hid
the problem).
src/Cockpit/panel.cxx