[osg-users] StereoMode doesn't work.

Martin Großer grosser.martin at gmx.de
Thu Sep 4 02:14:09 PDT 2008


Hello,

I think the problem is the following line:

Camera3->setReferenceFrame(osg::Transform::ABSOLUTE_RF);

When I use RELATIVE_RF the stereo mode works fine.
But I don't know why?!
Is it impossible to use ABSOLUTE_RF and a stereo view?

Cheers,

Martin


-----Ursprüngliche Nachricht-----
Von: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] Im Auftrag von Martin
Großer
Gesendet: Mittwoch, 3. September 2008 10:56
An: 'OpenSceneGraph Users'
Betreff: [osg-users] StereoMode doesn't work.

Hello,

I have a little problem with the stereo modus. I want to use the anaglyphic
stereo mode and it doesn't work, when I define a camera. A little Example:

osg::DisplaySettings::instance()->setStereo(true);
osg::DisplaySettings::instance()->setStereoMode(osg::DisplaySettings::ANAGLY
PHIC);


That works fine, when I define a viewer and a Scene.
Now, the anaglyphic doesn't work when I define a camera.


osg::ref_ptr<osg::Camera> camera3 = new osg::Camera();


I try to define a new DisplaySettings object.


osg::DisplaySettings* ds = new osg::DisplaySettings;
ds->setStereo(true);
ds->setStereoMode(osg::DisplaySettings::ANAGLYPHIC);
camera3->setDisplaySettings(ds);


But this test failed.


What is my mistake?



Cheers, Martin

_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list