We will now see that there are also some parameters that don't affect the appearance of the particles, and only affect the way they are emitted.
Remove the added parameters of the
point emitter
and only keep theemission_rate, direction
, andvelocity:
emitter Point { emission_rate 30 direction 1 0 0 velocity 20
Then add the parameters that define how long a particle should be emitted and how long to wait before starting over:
duration 1 repeat_delay 1 }
Compile and run the application. You should see a stream of white particles, which is briefly interrupted each time the emitter stops emitting.
We added the parameter duration
, which defines how long the emitter will emit particles before ceasing to do so. repeat_delay
sets the time the emitter will wait before starting to emit particles again. With these two parameters, we have defined an emitter that emits a particle for one second, and then waits for one second and...