Hi, We are trying to figure out at what positions the eyes are in stereo mode. The scene gets rendered correctly, but the following code returns the same exact positions for leftEye and rightEye:
osg::Camera* camLeft = _renderStageLeft->getCamera(); osg::Camera* camRight = _renderStageRight->getCamera(); Vec3 leftEye, rightEye, center, up; camLeft->getViewMatrixAsLookAt(leftEye, center, up); camRight->getViewMatrixAsLookAt(rightEye, center, up); osg::notify(osg::DEBUG_INFO) << "Left eye: " << leftEye[0] << ", " << leftEye[1] << ", " << leftEye[2] << std::endl; osg::notify(osg::DEBUG_INFO) << "Right eye: " << rightEye[0] << ", " << rightEye[1] << ", " << rightEye[2] << std::endl; How can we get the correct positions, which should be 1 IOD apart from each other? Jurgen
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org