On 5/22/06, John Kelso <[EMAIL PROTECTED]> wrote:
The Transform node is just a base class, and its subclasses don't all have matrices stored within them
so it can't provide any public method for getting a matrix.
If you want the matrx it contains you're out of luck.
There are other methods for getting the computed matrix (computeLocalToWorldMatrix), but without knowing what you want to do wiht matrix I don't know if they are appropriate. It might be that you just want to handle MatrixTransforms.
Robert.
Hi,
I have an easy question- I have a Transform node, and want to get the
matrix contained within. Is there a simple way to do this?
The Transform node is just a base class, and its subclasses don't all have matrices stored within them
so it can't provide any public method for getting a matrix.
I was hoping to see something like a osg::Transform::getMatrix() method,
but didn't see it. Maybe I missed it.
Anyway, how do you do it?
If you want the matrx it contains you're out of luck.
There are other methods for getting the computed matrix (computeLocalToWorldMatrix), but without knowing what you want to do wiht matrix I don't know if they are appropriate. It might be that you just want to handle MatrixTransforms.
Robert.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
