View Single Post
Old 23-01-2004, 06:05 PM   #31
mind_raper
Registered User
 
Join Date: Nov 2002
Location: Pakistan
Posts: 57
Thanks: 0
Thanked 3 Times in 3 Posts
Lightbulb 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
mind_raper is offline   Reply With Quote