Difference between revisions of "Particle System Emitters"

From Valve Developer Community
Jump to: navigation, search
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table))
(New (better?) format)
Line 12: Line 12:
 
Emits particles in one instantaneous burst.
 
Emits particles in one instantaneous burst.
  
{| class=standard-table
+
; emission_start_time
! Parameter !! Description
+
: Time at which to begin emitting particles (seconds).
|-
+
; num_to_emit
| emission_start_time || Time at which to begin emitting particles (seconds).
+
: Number of particles to emit in a burst.
|-
 
| num_to_emit || Number of particles to emit in a burst.
 
|}
 
  
 
== emit_continuously ==
 
== emit_continuously ==
 
Emits particles continuously over a specified period of time.
 
Emits particles continuously over a specified period of time.
  
{| class=standard-table
+
; emission_start_time
! Parameter !! Description
+
: Time at which to begin emitting particles (seconds).
|-
+
; emission_rate
| emission_start_time || Time at which to begin emitting particles (seconds).
+
: Number of particles to spawn (per second).
|-
+
; emission_duration
| emission_rate || Number of particles to spawn (per second).
+
: Length of time to continue emitting particles (seconds).
|-
 
| emission_duration || Length of time to continue emitting particles (seconds).
 
|}
 
  
 
== emit noise ==
 
== emit noise ==

Revision as of 16:44, 30 August 2009


General Operations

Operator Fade In/Fade Out/Fade Oscillate - These are standard operators that work on continuous emitters. Currently they do not fade in and out, but this will work eventually.

In and Out times are relative to the emitter lifespan, so an emitter that fades in after 3 seconds does so relative to the emitters life, not any given individual particle.

If an oscillation time is set, fade in and fade out times become 0.0 to 1.0 times relative to that oscillation time. That is if you wish your emitter to oscillate in and out, setting an oscillation time of 4, a fade in of .25 and a fade out of .75 would mean that the emitter has no effect for 1 second (one quarter the oscillation cycle time), works for 2 seconds (.25-.75), fades back out at 3 (three quarters of the oscillation cycle time), and then the cycle loops at the 4th second back to the start.


emit_instantaneously

Emits particles in one instantaneous burst.

emission_start_time
Time at which to begin emitting particles (seconds).
num_to_emit
Number of particles to emit in a burst.

emit_continuously

Emits particles continuously over a specified period of time.

emission_start_time
Time at which to begin emitting particles (seconds).
emission_rate
Number of particles to spawn (per second).
emission_duration
Length of time to continue emitting particles (seconds).

emit noise