PDA

View Full Version : runtime_expression


HADES
03-05-2003, 01:31 PM
l need a runtime expression for for particule.shapes.radius to blow big and scale to 0 in time
Thx l hope lm clear

kamil_w
03-05-2003, 02:27 PM
You can use ramp.

Add radiusPP to your particleShape.

In the field next to radiusPP from R mouse button choose Create Ramp (with default options).

With default options you control particle radius over particle lifespan.

Now you can control particle radius with ramp. (black is min, white is max)

You can specify min/max radius in Array Mapper node.

Hope it is clear.

HADES
03-05-2003, 02:35 PM
All is done but the particule dont semm to take the effect of the ramp or the arraymapper

HADES
03-05-2003, 02:37 PM
and in array mapper l have put extremme settings jus to make sure its not working like 0 and 50

svenip
03-05-2003, 03:09 PM
create a pp attribute
initScalePP

creationExpression :

scalePP = 0;
initScalePP = rand(..., , ....);


runtimeExpression :

if(lifespanPP <0.5)
scalePP = smoothstep(0,lifespanPP*0.5,age) * yourValue;
else
scalePP = 1-(smoothstep(lifespanPP*0.5, lifespanPP,age) * yourValue);


can't really test it now(rendering), but should do it

alexx
03-05-2003, 04:20 PM
i hope i am just guessing wrong:
but you have set the particle type to anything with a radius??

so use:
spheres
clouds
blobs

if you use anything else you wont see any size change

cheers

alexx

CGTalk Moderation
01-14-2006, 01:00 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.