Can i use an expression to scale particles smaller and turn their opacity down in the z axis?
For example I am making heat haze, and want it to fade off in the distance
Thanks for any help and pointers
Can i use an expression to scale particles smaller and turn their opacity down in the z axis?
For example I am making heat haze, and want it to fade off in the distance
Thanks for any help and pointers
Hi Elizabeth,
you could create a new per paricle float attribute and call it e.g. “zMult”. in the runtime after dynamics create the following expression:
vector $pPos = position;
float $maxDistance = 10;
zMult = linstep(0,$maxDistance, ($pPos.z));
Define the max distance as you like.
Create radiusPP and opacityPP and for each create a ramp in the attribute editor (via option box) with zMult as input v.
Adjust the values of the ramp to suit your needs.
Hope that helps.
Cheers