PDA

View Full Version : Kill Opaque Particles


graygiant
10-13-2009, 04:48 PM
How can I kill opaque particles? I want any particle that is 0% opacity to die.

I tried:

if(nParticleShape1.opacityPP==0)
{
nParticleShape1.lifespanPP = 0;
}

But it doesn't seem to work. Help is appreciated. Thanks!

TheRispo
10-13-2009, 05:07 PM
I just made some test and that expression seems to work fine with me.. just make sure that the lifespan mode is set to "lifespanPP only", and that the expression to kill the particles is evaluating in runtime... other than that I have no clue what might be causing that problem

graygiant
10-13-2009, 06:56 PM
Lol, sorry. LifespanPP only...works. Thanks for the info, much appreciated.

CGTalk Moderation
10-13-2009, 06:56 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.