SWHC (File Format): Difference between revisions

no edit summary
imported>Jackoalan
imported>Jackoalan
No edit summary
Line 1: Line 1:
{{research|2|Key parameters need reverse-engineering}}
{{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, trailing ''triangle-strips'' "brushed" into space.
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 ==
Anonymous user