Hi I have a Producer::Matrix that I use to position and orientate a camera using: _cameragroup->setViewByMatrix(). This is a car's point of view.
In another view on another system I'm trying to use that very same matrix to position a car model so on this system the viewer can see the car in the world. As I understand it you can use the inverse of a position/orientation matrix to position a camera. So why not position an object with the inverse of the camera matrix? osg::Matrixd myOSGMatrix( myProducerMatrix.ptr() ); myOSGMatrixTransform.setMatrix(myOSGMatrix.inverse(myOSGMatrix)); Matrix maths. Ugh. Not my strong point! Can anyone point me in the right direction? Thanks Murray Curtis Tag Systems Melbourne Australia www.tagsystems.com.au www.dragtag.com.au _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
