Hi Eric, The stereo cameras are currently hidden away as implementation detail of osgUtil::SceneView, so they aren't directly accessible form osgViewer. It's my plan to change osgViewer so that it doesn't rely on SceneView for stereo, with the stereo being a viewer configuration that uses slave cameras to the stereo - however, I won't get to tackle this for a while as I have plenty of other work on my plate right now.
If you want fine grained control then you might be best just switching off the OSG's inbuilt stereo support and just implement your own stereo cameras as viewer slave cameras, this should be straight forward. Robert. On Mon, Jul 20, 2009 at 4:33 PM, Eric Pouliquen<[email protected]> wrote: > 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 > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

