Show
Ignore:
Timestamp:
04/19/10 16:49:42 (4 years ago)
Author:
robert
Message:

From Farshid Lashkari, "I noticed that osg::State::getInitialViewMatrix returns the monocular view matrix when rendering in stereo. I've made some changes to osgUtil::RenderStage? & SceneView? so that it will return the correct view matrix depending on which eye is currently being rendered." & "I made a small change to the previous patch so that osg::State::getInitialViewMatrix works correctly with pre/post render stages as well."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp

    r11127 r11342  
    13241324        rtts->setViewport( viewport ); 
    13251325         
    1326  
     1326        // set initial view matrix 
     1327        rtts->setInitialViewMatrix(modelview); 
    13271328 
    13281329        // set up to charge the same PositionalStateContainer is the parent previous stage.