[osg-users] StereoMode doesn't work.

Robert Osfield robert.osfield at gmail.com
Thu Sep 4 02:36:58 PDT 2008


Hi Martin,

Stereo doesn't work for ABSOLTE_RF as the adjustment to the projection
matrix and view matrix required for the left/right eye offsets will be
discarded.   Basically HUD's don't work in stereo (there is no such
thing as a stereo orthographic view) - you need to position you image
plane objects directly into the 3D scene and manage there positioning.

Robert.

On Thu, Sep 4, 2008 at 10:14 AM, Martin Großer <grosser.martin at gmx.de> wrote:
> 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
>
> _______________________________________________
> 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