I want to have a particle system where i fade in / fade out the particles. To do this i've used ColourInterpolator affector. Here is the script:
Code: Select all
particle_system sparkle_1
{
material sparkle_1
particle_width 4
particle_height 4
quota 2
billboard_type point
billboard_rotation_type vertex
emitter Point
{
angle 0
emission_rate 1
velocity_min 0
velocity_max 0
time_to_live_min 4
time_to_live_max 5
}
affector Rotator
{
rotation_speed_range_start 50
rotation_speed_range_end 70
rotation_range_start 0
rotation_range_end 180
}
affector ColourInterpolator
{
time0 0
colour0 1 1 1 0
time1 0.3
colour1 1 1 1 1
time2 0.75
colour2 1 1 1 1
time3 1
colour3 1 1 1 0
}
}
As you can see, it looks like when the particles are spawned, it goes from alpha 0 to 1 to 0 in a fraction of second and after it behaves as intended .
Anyone knows what the problem might be ?
Cheers,
Bogdan