[osg-users] Resetting particle systems

Vincent Bourdier vincent.bourdier at gmail.com
Thu Mar 20 03:57:47 PDT 2008


Hi,

I don't understand why you want to destroy the particle...
A particle System works great without killing particle manually... what do
you expect from it ?

Vincent.


2008/3/20, Serge Lages <serge.lages at gmail.com>:
>
> Hi,
>
> The best way I found is :
>
> for (int i = 0; i < _emitter->getParticleSystem()->numParticles(); i++)
> {
>      _emitter->getParticleSystem()->destroyParticle(i);
> }
>
> Yeah, it's a bit tricky, but it works... :)
>
> On Thu, Mar 20, 2008 at 9:12 AM, Wiedemann, Rudolf, OPS3 <
> rudolf.wiedemann at mbda-systems.de> wrote:
>
> >  Hi,
> >
> > how can I reset a particle system, so when rendering the next frame no
> > old particles exist any more, but only new particles are emitted?
> >
> > Thanks in advance!
> > Rudi
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
>
>
> --
> Serge Lages
> http://www.tharsis-software.com
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080320/c51a7515/attachment.html 


More information about the osg-users mailing list