I did something similar a very long time ago with OSG. I set the ModelView and Projection matrix of the SceneView directly:
setProjectionMatrix( _mtx_proj ) setViewMatrix(vmtx) for model view you would calculate matrix::makeLookAt and for the projection matrix you need to compute your frustum. Depends on the application how you set these up. OSGers-- I'm talking *very old versions* of OSG-- is there now a bundled 'convenience' class that takes care of this monkey business? t On Tue, Mar 2, 2010 at 6:09 PM, Mel Av <melinos...@hotmail.com> wrote: > Hey, > > I was wondering if anyone knows what would be the best solution for > building an application where the camera is headtracked using motion > captured data provided in realtime from a Vicon system in OpenSceneGraph. I > can get the position and rotation of the 'real' camera (cap with infrared > markers) at every frame but was not successful in using these to move the > camera in OpenSceneGraph. Also I have to mention that the application is > rendered in a stereo projector. Right now I'm only using the --stereo > QUAD_BUFFER command line argument but I'm not sure if this is the > appropriate way to do this. > I apologise if this has been answered somewhere else. > Any help is much appreciated. > > Thank you! > > Cheers, > Mel > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=25082#25082 > > > > > > _______________________________________________ > 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