]> git.mxchange.org Git - flightgear.git/commit
Jim Wilson:
authorcurt <curt>
Mon, 20 May 2002 16:13:37 +0000 (16:13 +0000)
committercurt <curt>
Mon, 20 May 2002 16:13:37 +0000 (16:13 +0000)
commit8ae364a22020120e831e044cacf1e0d1cc449390
treeae5cf227d6d3de04734a78e658aa534baee2c4dd
parent0efc08b6b689db18f5288c4ea3e8a0940d07114b
Jim Wilson:
This is a small fix for what turned out to be a major bug.  Ground elevation
was calculated incorrectly when distant from one of the view locations. This
resulted in several problems including bizarre gear trimming, mid air
"crashes" (as in thinking we hit the ground) and so on when close to or on the
ground.

Unfortunately it does require a second ssg traversal when in tower view
(only), but the increased load isn't all that noticable.  For the time being
this really is the best solution.  In a future update I will be eliminating
the unecessary per frame traversals for the static views (without having to
maintain multiple ssgRoots).

When we go to multiple FDM instances we will perhaps need to put the ssg
traversal and ground elevation queries for the FDMs into an event timer that
updates the FDMs ground elevation in a round robin fashion (maybe every 1/n
seconds where n is the number of FDM instances running).
src/Main/fg_commands.cxx
src/Main/location.cxx
src/Main/location.hxx
src/Main/main.cxx
src/Main/viewer.cxx
src/Scenery/tilemgr.cxx
src/Scenery/tilemgr.hxx