Hi Robert Thank you, that was exactly it. :-)
Murray On Wednesday 05 July 2006 18:36, Robert Osfield wrote: > Hi Murray, > > Maths wise you are doing the write thing, syntax is the problem, try > doing doing: > > > myOSGMatrixTransform->setMatrix(osg::Matrix::inverse(osg::Matrix(myProducer >Matrix.ptr())) > > On 7/5/06, Murray Curtis <[EMAIL PROTECTED]> wrote: > > 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/ > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
