Hi Mukund, I believe you want to adjust the fusion distance setting to create the "pop out" effect. All objects whose distance to the camera is less than the fusion distance should appear to "pop out". For example, setting the fusion distance to 10, should cause an object that is 8 units from the camera to appear outside the screen.
Cheers, Farshid On Fri, Mar 18, 2011 at 7:41 AM, Mukund Keshav <osgfo...@tevs.eu> wrote: > Hello Everyone, > > We are planning to build a virtual workbench in our project. For that, we > are using LCD shutter glasses stereoscopy. > > The system would involve the virtual objects being projected with a -ve > parallax, thus making them appear to pop out. > > The following link has an image. It pretty much is what we are trying to > obtain. > > http://img232.imageshack.us/i/63607385.png/ > > But we are not using Data Gloves for interaction. > > We tried the following code: > > > Code: > > osg::DisplaySettings::instance()->setStereo(true); > osg::DisplaySettings::instance()->setStereoMode(osg::DisplaySettings::QUAD_BUFFER > ); > osg::DisplaySettings::instance()->setEyeSeparation(0.04); > > > > We read about stereoscopy from this link: > > http://paulbourke.net/miscellaneous/stereographics/stereorender/ > > So, to make an object "pop out". we need a -ve parallax, and if left and > right images are very far apart, the images appear closer to the viewer. > > How do we set this separation in OSG > > > Cheers, > Mukund > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=37720#37720 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org