Hello,

I'm trying to figure out how to retrieve the combined matrix from a node that 
is of a PositionAttitudeTransform node type.  I can get it converted to a 
Transform() class, but there is no clear way of getting the combined matrix 
from local to world.  For example,

Osg::PositionAttitudeTransform trans;
Trans.setScale(2,2,2);
Trans.setPosition(0,10,0);

Osg::Matrixd temp = getCombinedTransform(trans);
Osg::Matrixd getCombinedTransform(const osg::ref_ptr<osg::Node> & mat)
{
              Auto m = mat->asTransform();
              Return m->computeLocalToWorldMatrix (m, ???); << ====== why use a 
node visitor on yourself?

              Or

              Return m->getCombinedMatrix()?? <<  ===== is there such a thing?
}

----------------------------------------
Marlin Rowley
Software Engineer, Staff
[cid:[email protected]]
Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
[email protected]<mailto:[email protected]>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to