Updates to the support for stereo in osg::Camera, osgUtil::SceneView and

the CameraManipulators.
This commit is contained in:
Robert Osfield
2001-12-21 13:07:35 +00:00
parent 9365f0e3b1
commit 734be18471
6 changed files with 83 additions and 32 deletions

View File

@@ -353,6 +353,8 @@ bool DriveManipulator::calcMovement()
// return if less then two events have been added.
if (_ga_t0.get()==NULL || _ga_t1.get()==NULL) return false;
_camera->setFusionDistanceFunction(osg::Camera::PROPORTIONAL_TO_SCREEN_DISTANCE,1.0f);
float dt = _ga_t0->time()-_ga_t1->time();
if (dt<0.0f)