Hey,
thanks for your reply. I will try and find out what is going on there on my
own, but I will have to do that later, let me break down my first problem into
single questions, maybe it will be easier for me to work it out then.
I have:
osg::ref_ptr<osg::MatrixTransform> arTransform = new osg::MatrixTransform();
and if I understand it all correctly, that is constantly updated by the cameras
marker coordinates.
Is there an easy way to access the x,y,z values and update them? My approach
was this:
osg::Matrix mtrx = arTransform->getMatrix();
osg::Quat* q = new osg::Quat();
mtrx.get(*q);
int x = q->x();
int y = q->y();
int z = q->z();
in order to get x,y,z but this always returns 0 for each value.
And then:
mtrx.setTrans(x,y,z);
arTransform->setMatrix(mtrx);
(obviously this would set the matrix to its original values)
is this the right approach to get and update the values from the transform
matrix?
Thanks,
David
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16867#16867
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org