Hi Vincent,

I'm a bit confused about what you are trying to do, is it just get the
accumulated world matrix at a specific node?

If so then node::getWorldMatrices() is what you want.  This will
return a MatrixList, which will contain none, one or many matrices
given that any node many have none or many parental paths containing
transforms.

Robert.

On Fri, Mar 21, 2008 at 11:03 AM, Vincent Bourdier
<[EMAIL PROTECTED]> wrote:
> 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.
>
> _______________________________________________
>  osg-users mailing list
>  [email protected]
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to