HI David,

In the CVS/rc3 there is the method:

       /** 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;

On 7/19/06, David Lscbe <[EMAIL PROTECTED]> wrote:
Hi,

I saw the tutorials about getting world coordinates using matrix
accumulator and node visitor, but I was wondering if I couldn't
retrieve world coordinates in a simpler manner.

I have a plane which PAT is directly bound to the root node. Which
means if I make a getPosition() on this PAT I do obtain world
coordinates. The thing is that I just added another PAT under this
one, representing the position of an optical sensor (camera).

Is there a way, I mean using the Quat or the Matrix of the first PAT,
to compute directly the world position of the optical sensor PAT (so
that I can position my Producer::Camera there).

Thanks,

David
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to