Hi Thanos, I haven't tried it myself yet, but you could try creating the split screen stereo up in osgViewer as two slave cameras, rather than let the lower level SceneView implement the stereo. Doing the work in osgViewer will allow the viewer to know about the viewports and hopefully do the appropriate reprojection.
Robert. On Tue, May 11, 2010 at 4:02 PM, Thanos Tsakiris <[email protected]> wrote: > Hi everyone, > > I' ve been trying to get object picking using the mouse (and later using a 3D > mouse equivalent) in a HORIZONTAL_SPLIT stereo mode setting. > > My initial code was using the osgPick methods ...resulting as you might > imagine to completely wrong x coordinates and it took me ages to figure out > it was the stereo projection messing it up. The problem is that apart from > the viewport being double the horizontal size of what is actual rendered for > each eye, there is also the eye separation offset that complicates things > even more. I am considering 2 options to fix this: > > 1. Create a new mono view that is half the horizontal size of the stereo view > and use it to pick the object. However this view should be renderless. How > can this be done? > > 2. Take the double viewport width and the half eye (eye separation is total > distance between eyes) separation values into account and rewrite the matrix > transformations from screen to world coords. > > Has anyone done something like this before that can point me to the right > direction? Code snippets will be most welcome :) > > ... > > Thank you! > > Cheers, > Thanos > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=27755#27755 > > > > > > _______________________________________________ > 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

