[osg-users] Get Parent as Transform in Absolute ?

Vincent Bourdier vincent.bourdier at gmail.com
Fri Mar 21 04:03:47 PDT 2008


Hi all,

I'm trying to get a node's parent as Transform (PAT or MatrixTransform) but
I have to get the transformation in ABSOLUTE_RF...

For the moment, I've done a recursive method to get Parent as Transform. It
return me the first parent as Tranform it encounter.

I've tried this :

osg::ref_ptr<osg::MatrixTransform> tmp_pt = new osg::MatrixTransform;
> tmp_pt->setReferenceFrame(osg::Transform::ABSOLUTE_RF);
> tmp_pt->setMatrix(p_mt->getMatrix());
>

(where p_mt is my RELATIVE MatrixTransform)


But the method return to me a MatrixTransform in RELATIVE. It is possible to
get the Matrix in Absolute ? without traverse all the scenegraph  ?
Thanks.

Regards,

      Vincent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080321/ddc73ce0/attachment.html 


More information about the osg-users mailing list