BadG3r
05-08-2007, 08:10 AM
Hey guys...
while ago i wrote this lil expression
--------------------------------------------------------------------------------
//particleDissolve
//particleShape1
//runtime
vector $pos = position;
float $trigger = 1 - (age/lifespan);
if ($trigger == 0 )
{
emit -object particle2 -at velocity -vv <<0,3,0>> -at position -vv $pos;
}
//particleShape2
//creation
particleShape2.lifespanPP = rand (1,3);
//runtime
$normAge = particleShape2.age/particleShape2.lifespanPP;
particleShape2.opacityPP = 1 - $normAge;
particleShape2.radiusPP = 0.05 + ((0.005 - 0.05) * $normAge);
--------------------------------------------------------------------------------
problem is.. that it doesn't work anymore. don't know why but when the particle in p1 dies no particle is created in p2.
for p2 lifespan is set to PP, but i tried every possible option. constant, random, PP.
any guess? thx in advance.
BadG3r
while ago i wrote this lil expression
--------------------------------------------------------------------------------
//particleDissolve
//particleShape1
//runtime
vector $pos = position;
float $trigger = 1 - (age/lifespan);
if ($trigger == 0 )
{
emit -object particle2 -at velocity -vv <<0,3,0>> -at position -vv $pos;
}
//particleShape2
//creation
particleShape2.lifespanPP = rand (1,3);
//runtime
$normAge = particleShape2.age/particleShape2.lifespanPP;
particleShape2.opacityPP = 1 - $normAge;
particleShape2.radiusPP = 0.05 + ((0.005 - 0.05) * $normAge);
--------------------------------------------------------------------------------
problem is.. that it doesn't work anymore. don't know why but when the particle in p1 dies no particle is created in p2.
for p2 lifespan is set to PP, but i tried every possible option. constant, random, PP.
any guess? thx in advance.
BadG3r
