"benedikt naessens" writes:

> Thanks for the fast reply. I have already seen the page. I was just wondering 
> how to do it programmatically; what these environment variables exactly do 
> and what to use then : still a CompositeViewer with two camera's or a Viewer 
> or ... ? How to get access to the stereo camera's to set the view and 
> projection matrices (such that the interocular distance remains the same) ? 
> This is all still very unclear to me ...

Just a osgViewer::Viewer will do to get the built-in stereo support. The
stereo settings can be tweaked through the camera's
osg::DisplaySettings object. Get the camera from the osgViewer::Viewer
and then set its osg::DisplaySettings to fit your needs. See

http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00181.html

with special attention to the methods setStereo(), setStereoMode() and
setEyeSeparation().

The advantage of using the environment variables lies in that any user
can fit your program to the visualisation system they have without
having to touch the code, or you having to code this customisation.

--
Alberto
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to