]> git.mxchange.org Git - flightgear.git/commit
This patch includes the FGLocation class, a few fixes, cleanup in viewer code.
authorcurt <curt>
Thu, 11 Apr 2002 04:25:30 +0000 (04:25 +0000)
committercurt <curt>
Thu, 11 Apr 2002 04:25:30 +0000 (04:25 +0000)
commitf1c03ed9579de0b0f70fb237e63e0cf59f3202ce
tree082920c8cedfb00742f032f05c15eeb2be4eab6a
parentba31d943798a098e2a0e8266e41e24c15ef69a57
This patch includes the FGLocation class, a few fixes, cleanup in viewer code.

Synced to CVS 19:36 EDT 2002-04-10 (after this evenings JSMsim and Base
package updates).

Description:
Added FGLocation class which is new home for calculating matrix rotations.
Viewer can now be configured to access rotations created by the model rather
than repeating the same calculations again.

Changed model initialization for the time being so that its location data is
available for the viewer (currently required by other subsystems).  At some
point we can move this back to fg_init along with the viewer initialization.

Seperated the update from the draw function in the model code.  The viewer
code needs the same matrix data, and moving the update portion at this time
does not increase the number of matrix math iterations.

Moved the model draw so that it always appears "in front" of lights and clouds.

Reogranized viewer update routine for using the FGLocation class and
simplified some more tasks.  The routine is fairly easy to follow now, with
the steps ordered and spelled out in comments.

Viewmgr only updates the current (visible) view now, with the exception of an
old reference to "chase view" that will be corrected in forthcoming changes.
Also will be doing some work on the viewmgr outputs.

Model is now clears the z-buffer in all modes.  This will be changed with the
next viewmgr update.  The only side effect is that models always disappear
when over 5km distant from the eye point (can't really see them anyway:-)).

Other than a flag to indicate "internal" view I don't anticipate the
configuration interface for viewmgr/views will be changed a lot for now.  It
is close to done.  The next viewmgr update will however rework the outputs so
you can expect that the data that viewmgr is writing to the property tree
may change location.

This code will run with the previous version of preferences.xml, but will run
faster with the newer version.  I am attaching a preferences.xml that should
not be commited before the code.  All the changes are in the /sim/view section
and should show a simpler view configuration that references model locations.
 Note that I've added a 2nd tower view in "lookfrom" mode for illustration
purposes. You can look around using the mouse.  You may want to remove that or
comment it out.
src/Model/acmodel.cxx
src/Model/acmodel.hxx
src/Model/model.cxx
src/Model/model.hxx