Re: [osg-users] How to recover the ParticleSystem?

2009-05-06 Thread Robert Osfield
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(0x); Robert. On Wed, May 6, 2009 at 3:03 AM, Wangjian wrote: > Hi, >   I create a ParticleSystem,such as: >   _ps=create

[osg-users] How to recover the ParticleSystem?

2009-05-05 Thread Wangjian
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 :_sceneRoo