SWHC (File Format): Difference between revisions
no edit summary
imported>Jackoalan |
imported>Jackoalan No edit summary |
||
Line 1: | Line 1: | ||
{{research| | {{research|1|Properties beyond MP1 need to be discovered and documented}} | ||
The '''SWHC''' [[Effect Script|effect script]] format is used to build swoosh effects in the ''Metroid Prime'' series. | The '''SWHC''' [[Effect Script|effect script]] format is used to build swoosh effects in the ''Metroid Prime'' series. | ||
Swooshes are characterized as dynamically-generated, | Swooshes are characterized as dynamically-generated triangles "brushed" into space. | ||
Each swoosh system emits ''particle instances'' once per frame, connecting each new instance with the previous instance. | |||
The system will not render until it has a history of ''at least'' 2 swoosh particles (2 frames of updates). Swoosh cross-sections may | |||
form simple planes through space (<code>SIDE==2</code>) or extruded prism shapes (<code>SIDE>=3</code>). | |||
To smooth out intra-frame geometry, vertices connecting particle instances may be calculated using [[wikipedia:Tricubic interpolation|tricubic interpolation]]. | |||
SPLN defines the number of subdivisions with which to perform interpolation. | |||
== Properties == | == Properties == |