Go to file
ehofman e0decf1233 Mathias:
have done a patch to eliminate the jitter of 3D-objects near the viewpoint
(for example 3D cockpit objects).
The problem is the roundoff accuracy of the float values used in the
scenegraph together with the transforms of the eyepoint relative to the
scenery center.

The solution will be to move the scenery center near the view point.
This way floats relative accuracy is enough to show a stable picture.

To get that right I have introduced a transform node for the scenegraph which
is responsible for that shift and uses double values as long as possible.
The scenery subsystem now has a list of all those transforms required to place
objects in the world and will tell all those transforms that the scenery
center has changed when the set_scenery_center() of the scenery subsystem is
called.
The problem was not solvable by SGModelPlacement and SGLocation, since not all
objects, especially the scenery, are placed using these classes.

The first approach was to have the scenery center exactly at the eyepoint.
This works well for the cockpit.
But then the ground jitters a bit below the aircraft. With our default views
you can't see that, but that F-18 has a camera view below the left engine
intake with the nose gear and the ground in its field of view, here I could
see that.
Having the scenery center constant will still have this roundoff problems, but
like it is now too, the roundoff error here is exactly the same in each
frame, so you will not notice any jitter.

The real solution is now to keep the scenery center constant as long as it is
in a ball of 30m radius around the view point. If the scenery center is
outside this ball, just put it at the view point.

As a sideeffect of now beeing able to switch the scenery center in the whole
scenegraph with one function call, I was able to remove a one half of a
problem when switching views, where the scenery center was far off for one or
two frames past switching from one view to the next. Also included is a fix
to the other half of this problem, where the view position was not yet copied
into a view when it is switched (at least under glut). This was responsible
for the 'Error: ...' messages of the cloud subsystem when views were
switched.
2005-04-29 14:36:50 +00:00
simgear Mathias: 2005-04-29 14:36:50 +00:00
src-libs Fix a stragling left over reference to metakit. 2003-10-15 20:01:41 +00:00
.cvsignore Added more generated files. 2004-04-04 14:24:06 +00:00
acinclude.m4 automake 1.8+ fixes 2005-02-15 18:13:15 +00:00
am2dsp.cfg Updated am2dsp.cfg file for creating MSVC project files. 2002-04-22 20:37:31 +00:00
AUTHORS Added Curt to empty Authors file as CVS test. 2001-12-11 22:23:25 +00:00
autogen.sh Fixes to better support the native irix compilers. 2002-09-06 15:30:11 +00:00
ChangeLog Initial revision 2000-02-09 19:27:02 +00:00
configure.ac Fixes from Norman for users running Cugwin with the XServer package installed. 2005-02-11 15:19:04 +00:00
COPYING Starting conversion to LGPL (from GPL). 2000-07-08 18:44:26 +00:00
Doxyfile Prerelease updates. 2004-12-15 16:34:14 +00:00
DoxygenMain.cxx - Tweaks to doxygen main page. 2003-06-11 18:55:36 +00:00
Makefile.am Final 0.3.7 changes. 2004-10-12 14:35:42 +00:00
NEWS Ready for 0.3.8 release. 2005-01-18 14:34:13 +00:00
README Test commit. 2001-12-17 16:52:20 +00:00
README.MSVC Updated am2dsp.cfg file for creating MSVC project files. 2002-04-22 20:37:31 +00:00
README.OpenAL Add a sanity check for the existance of OpenAL. If not there, bail from 2004-10-13 19:51:38 +00:00
README.plib Additional configure changes. 2002-09-02 22:18:31 +00:00
README.zlib - Added src-libs/boost.tar.gz and README.boost. This is in anticipation 2002-04-03 21:05:51 +00:00
SimGear.dsp Tweaks in preparation for the 0.3.6-pre1 release. 2004-07-14 22:01:15 +00:00
SimGear.dsw Updated MSVC project files. 2002-05-10 13:31:44 +00:00
SimGear.spec.in For building redhat packages. 2000-03-29 00:00:46 +00:00
Thanks My old email address is no longer valid ... point to my web page. 2004-11-19 21:44:16 +00:00
TODO Initial revision 2002-09-07 02:58:19 +00:00

[ Nothing here at this time. ]