View Single Post
# 31 23-01-2004 , 06:05 PM
Registered User
Join Date: Nov 2002
Location: Pakistan
Posts: 57

Creating runway lighiting effects

Well its time for a cool Particle function guys...!


A linstep function is used in conjunction with a ramp to control the rgbPP attribute of the particles color. The particles appear to "turn on" sequentially from front to back. An offset is added to the particle's age to create this effect.






creation expression:

$pos=particleShape1.position;

particleShape1.lightOffset= ($pos.z+20);


--------------------


Runtime expression:


$myAge=particleShape1.age-(particleShape1.lightOffset*.25);

particleShape1.rgbVPP=linstep (2,3,$myAge);


enjoying...!


Learn the Rules|Then|
Burn the Rules Book