Okay I'm not sure if this is a "beginners question" as I consider particle
systems to be more advanced. But what I'm trying to do is rather simple
and I'm surprised that I was unable to find the answer in the tutorials or
on the forums with a search.
Here's the problem.
I can't find a way to effectively clear or reset the particle emissions of
a given particle system. This means that when I fire a gun the projectile of
which has a particle system attached, wait for it to hit the wall, and then fire
again, some of the old particles which were still there and were just invisible
reappear and go on.
I've tried doing a 'particleSystem->setEmitter(0)' along with a handful
of other things, but I cannot find a way to clear or even kill the particles
of a particle system.
I'm hoping there's something like 'particleSystem->clearParticleEmission()'
or something like that...
Particle systems and clearing the emission thereof
-
lazerblade
- Posts: 194
- Joined: Thu Mar 18, 2010 3:31 am
- Contact:
Particle systems and clearing the emission thereof
LazerBlade
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
-
lazerblade
- Posts: 194
- Joined: Thu Mar 18, 2010 3:31 am
- Contact:
BUMP!!!
Come on, am I really the only person who has ever thought of doing such
a thing? If anybody has advice or solutions, I'm all ears.
Come on, am I really the only person who has ever thought of doing such
a thing? If anybody has advice or solutions, I'm all ears.
LazerBlade
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
Sorry, forgot to answer this. Right now it's really a problem. I remember I patched that a few years ago in own code, but it's not yet in the engine (and the patch wasn't good as I just hacked in to clear it always on setvisible). It's a missing features that we have to add.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
lazerblade
- Posts: 194
- Joined: Thu Mar 18, 2010 3:31 am
- Contact:
Ahh, I thought as much. I'm sure Irrlicht will do it eventually.
In the meantime, I'm trying to patch it myself. I have no idea where to start,
so advice would again be helpful.
In the meantime, I'm trying to patch it myself. I have no idea where to start,
so advice would again be helpful.
LazerBlade
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
@lazerblade: When you're not afraid of changing engine sources - all you have to do there is probably add a function to CParticleSystemSceneNode that calls Particles.set_used(0). I try to get to at the weekend (I just have to write a small test first to make sure this really works in all cases).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
IParticleSceneNode:clearParticles is now in svn trunk.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
lazerblade
- Posts: 194
- Joined: Thu Mar 18, 2010 3:31 am
- Contact:
Awesomeness, Thanks! 
LazerBlade
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
When your mind is racing, make sure it's not racing in a circle.
3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/