HI Vincent,

I can't really work out exactly what the problem you have, I presume
others too had a problem understanding what the issue you have is as
otherwise others would have posted a reply...

My best guess is that you are confusing what getWorldMatrices()
provides... if so please just read the doxygen docs for it...

        /** Get the list of matrices that transform this node from
local coordinates to world coordinates.
          * The optional Node* haltTraversalAtNode allows the user to
prevent traversal beyond a specifed node. */
        MatrixList getWorldMatrices(osg::Node* haltTraversalAtNode=0) const;

Please note, WorldMatrices is not local matrices, its exactly what it
says.  local matrices and world matrices only every coincide when you
have now transforms in your parental path.

Robert.

On Wed, Jul 30, 2008 at 8:24 AM, Vincent Bourdier
<[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Working on a way to find the good world matrix for a node, I've encountered
> some problems :
>
> My structure is this one :
>
> -root
>   |-Node...(not osg::Tranform)
>      |-PAT (osg::PositionAtitudeTransform)
>
> If I get the PAT translation and rotation, I've a vector and a Quat, which
> looks good,
> if I consider pat as a node and use _node->getWorldMatrices()[0] and get
> Rotation and Translation, the results are not the same...
>
> What can do this ?
> How to get real world coordinate form a node (Transform or not) ?
>
> 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