Hi Renan,

> Anyhow, why not just derive a new class from MatrixManipulator and add 
> that to the viewer? Then hide all your device-specific code inside that 
> class. You'd need to attach your manipulator before calling run() of course.

I agree with Paul, this is the way to go. I have done the same with head 
trackers, etc. Just return a valid view matrix from an overridden 
getInverseMatrix() method (which is what the viewer calls each frame) 
and you should be good to go.

Good luck,

J-S
-- 
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                                http://www.cm-labs.com/
                         http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to