Olaf Hasemann wrote:
Hallo,

Have a look at osgUtils SceneView and search for this:

/** Callback for overidding the default method for compute the offset projection and view matrices.*/
        struct ComputeStereoMatricesCallback : public osg::Referenced
        {
virtual osg::Matrixd computeLeftEyeProjection(const osg::Matrixd& projection) const = 0; virtual osg::Matrixd computeLeftEyeView(const osg::Matrixd& view) const = 0;

virtual osg::Matrixd computeRightEyeProjection(const osg::Matrixd& projection) const = 0; virtual osg::Matrixd computeRightEyeView(const osg::Matrixd& view) const = 0;
        };

We subclassed from this and calculated all projections according to the
screen and headtracker informations, which worked fine independent of
the stereomode in use.

Ah, didn't know about that particular callback. That would definitely be the place to do it!

--"J"

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

Reply via email to