Looks like you aren't showing us the whole code. I don't see a removeChild in the attached file.
In general, when removing a node you need to remove it as child of its particular parent(s) (which is not necessarily the root node). Code: while (node->getNumParents()) node->getParent(0)->removeChild(node); [/code] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64473#64473 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org