Particle System Renderers: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
|ru=Particle_System_Renderers:ru
|ru=Particle_System_Renderers:ru
}}
}}
[[Category: Particle System]]
 
== render_animated_sprites ==
== render_animated_sprites ==
Renders animated sprites of varying orientations.
 
This is the "ordinary" renderer. It draws floating animated sprites.


; animation rate
; animation rate
: Rate at which to animate particles. Normally this is in seconds (???), however if "Use animation rate as FPS" is set to 1, it will use tics as it's animation rate instead.
: Rate at which to animate particles. Normally this is in seconds (???), however if "Use animation rate as FPS" is set to 1, it will use tics as it's animation rate instead.
; orientation_type
; orientation_type
: Various orientation types:
: How each particle is aligned relative to the camera.
:* 0 - Billboarded (always face camera)
: 0: Billboard (face-on)
:* 1 - Fix Z and rotate along X and Y
: 1: Fix Z (upright)
:* 2 - Fix X and Y and rotate along Z (always face up)
: 2: Fix X (flat)
; orientation_control_point
; orientation_control_point
: This would let you use a cp to set orientation but it doesnt work at all in the orangebox version
: All particles inherit their orientation from this control point. {{todo|Is the position of the CP used, or the actual orientation?}}
:{{confirm|Non-functional in Source 2007/9?}}
; use animation rate as fps
; use animation rate as fps
: Flag that indicates whether the animation should be in seconds (???) or tics (normal FPS rate).
: Flag that indicates whether the animation should be in seconds (???) or tics (normal FPS rate).
Line 33: Line 35:
[[File:Render blobs.png|thumb|render_blobs + [[Constrain particles to a box]]]]
[[File:Render blobs.png|thumb|render_blobs + [[Constrain particles to a box]]]]


{{2009 add}} Renders particles as blobs of liquid. This is the effect used by [[Portal 2]]'s paint, or at least is very similar to it.
{{2009 add}} Renders particles as blobs of liquid. This is not the effect used by [[Portal 2]]'s paint, but is similar to it (possibly a prototype?).


The material used should be opaque, and ideally have [[$phong]] enabled.
The material used should be opaque, and ideally have [[$phong]] enabled.
Line 44: Line 46:


{{2009 add}} Unknown. Draws [[env_projectedtexture|projected textures]]?
{{2009 add}} Unknown. Draws [[env_projectedtexture|projected textures]]?
[[Category: Particle System]]

Revision as of 11:32, 26 July 2011

Template:Otherlang2

render_animated_sprites

This is the "ordinary" renderer. It draws floating animated sprites.

animation rate
Rate at which to animate particles. Normally this is in seconds (???), however if "Use animation rate as FPS" is set to 1, it will use tics as it's animation rate instead.
orientation_type
How each particle is aligned relative to the camera.
0: Billboard (face-on)
1: Fix Z (upright)
2: Fix X (flat)
orientation_control_point
All particles inherit their orientation from this control point.
Todo: Is the position of the CP used, or the actual orientation?
Confirm:Non-functional in Source 2007/9?
use animation rate as fps
Flag that indicates whether the animation should be in seconds (???) or tics (normal FPS rate).

render_rope

Renders all particles in the system into one continuous "rope", the smoothness can be adjusted by changing texel_size and subdivision_count. Killing particles will cause the rope to instantly flick to adjust the rope to remain continuous, so random lifetimes and continuous emitters can look poor, depending on the effect.

render_screen_velocity_rotate

Unknown.

render_sprite_trail

Renders animated sprites with trails based on their velocity.

render_blobs

Template:2009 add Renders particles as blobs of liquid. This is not the effect used by Portal 2's paint, but is similar to it (possibly a prototype?).

The material used should be opaque, and ideally have $phong enabled.

render_models

Template:2009 add Renders 3D models instead of particles.

render_project

Template:2009 add Unknown. Draws projected textures?