[osg-users] ParticleSystem reset state

2013-06-18 Thread Roman Grigoriev
Hi, I create some particle system and try to reuse from time to time but initial number of particles constantly growing (suspect memory leaks here) Is there some helper fuction that destroys all particle created before? ResetTime and for(int i=0;inumParticles();i++) dustParticleSyste

Re: [osg-users] ParticleSystem reset state

2013-06-18 Thread Robert Osfield
HI Roman, I'm not aware of any memory leaks in osgParticle, and would suspect it's just the setting you are using that are resulting in rapid particular growth. There isn't really much others in the community can do to help without having an example that illustrates the problem, are you able to r

Re: [osg-users] ParticleSystem reset state

2013-06-18 Thread Roman Grigoriev
Hi,Robert I use particle system so at the end of my simulation cycle for example I emit total 100 particles and 30 particles alive. I start another simulaton cycle and I need to have 0 particles emited and 0 alive particles. But I have 30 alive particles. I need to reset particlesystem. Could yo

Re: [osg-users] ParticleSystem reset state

2013-06-18 Thread Robert Osfield
On 18 June 2013 18:46, Roman Grigoriev wrote: > I use particle system so at the end of my simulation cycle for example I emit > total 100 particles and 30 particles alive. > I start another simulaton cycle and I need to have 0 particles emited and 0 > alive particles. > But I have 30 alive parti