Hi, Can someone help me to understand how and where osgviewer create the camera pair when running in stereo mode ? I ask it because I want to adapt the hdr osgPPU example to the viewer in stereo mode, but I absolutly don't understand how to manage the stereo... It's not only an osgPPU problem (that's why my post is in "general" :) ), but in this case, it uses a RTT target with :
Code: getCamera()->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); getCamera()->attach(osg::Camera::COLOR_BUFFER, texture); so I think I need to instantiate another texture for the second RTT, but I can't find the camera pointer for second eye... I tried with getViews, but only one view because it's not a compositeViewer, I tried getSlaves(), but returns zero... for the moment, when running in stereo mode, the hdr osgPPU example runs with the left part ok, but black in the right part. i want to see the same scene in the two eyes, so setCullMaskRight and setCullMaskLeft are not useful am I right ? please help me :) Thank you! Cheers, Eric ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15146#15146 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

