Added setting of the fusion distance.

This commit is contained in:
Robert Osfield 2012-12-10 11:11:19 +00:00
parent 8d999a07cf
commit e57e6c5409

View File

@ -51,6 +51,10 @@ void CameraProperty::update(osgViewer::View* view)
}
camera->setViewMatrix( matrix );
// set the fusion distance up so that the left and right eye images are co-incedent on the image plane at the center of ration.
view->setFusionDistance(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE,(_center-_eye).length());
// view->setFusionDistance(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE, 1.0);
}