HI Wangjian, To enable and disable subgraphs is probably best to use a NodeMask i,e,
// switch off. node->setNodeMask(0); // switch on node->setNodeMask(0xffffffff); Robert. On Wed, May 6, 2009 at 3:03 AM, Wangjian <[email protected]> wrote: > Hi, > I create a ParticleSystem,such as: > _ps=create_complex_particle_system(_sceneRoot); > osgParticle::ParticleSystemUpdater > *psu=newosgParticle::ParticleSystemUpdater; > psu->addParticleSystem(_ps); > _sceneRoot->addChild(psu); > Now I hope that the psu disappear,so I write :_sceneRoot->removeChild(psu); > But how can I recover the particleSystem so I can see again in the screen.I > found that _sceneRoot->addChild(psu) have no effects.Is there any methods? > > Thank you. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=11408#11408 > > > > > > _______________________________________________ > 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

