If the node you're replacing is derived from osg::Transform, that's probably your problem -- get the Group/Geode/whatever under that transform and replace that stuff while leaving the Transform intact.

--

Robert Penn Taylor
Graduate Research Assistant
Department of Mechanical Engineering
Iowa State University

Catherine Peloquin wrote:
I am using replaceChild to replace nodes, but the new child node does
not reflect any changes in position that were made to the replaced
child node.

Is there another way to have the new child be placed in exactly the
same position as the old child?

The only way I can think to do this is to apply the transformation
matrix of the old child to the new child, but I do not know how to
retrieve the old matrix or to actually apply it to the new matrix.

Thanks,
Catherine Peloquin
_______________________________________________
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