Maya Spline: Difference between revisions

>Aruki
(Created page with "A '''Maya Spline''' is a 2D hermite curve first introduced in Metroid Prime 2: Echoes. It's used in various file formats to animate some sort of effect over time. It most comm...")
 
>Aruki
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
== Format ==
== Format ==


=== Metroid Prime 2 ===
=== Structure ===
 
==== Metroid Prime 2/3 ====


{| class="wikitable"
{| class="wikitable"
Line 47: Line 49:
| '''Maximum Amplitude'''
| '''Maximum Amplitude'''
| Maximum amplitude used for clamped splines.
| Maximum amplitude used for clamped splines.
|}
==== Donkey Kong Country Returns ====
Basically the same data as in Prime 2/3, but shifted around slightly.
{| class="wikitable"
! Type
! Count
! Name
! Notes
|-
| u32
| 1
| '''Knot Count'''
| Number of knots in the spline.
|-
| [[#Knot|Knot]]
| ''Knot Count''
| '''Knot Array'''
| Array of knots forming the actual spline.
|-
| float
| 1
| '''Minimum Amplitude'''
| Minimum amplitude used for clamped splines.
|-
| float
| 1
| '''Maximum Amplitude'''
| Maximum amplitude used for clamped splines.
|-
| u8
| 1
| [[#Infinite Type Enum|'''Pre Infinity''']]
| Infinity setting for time ranges before the start time of the spline curve.
|-
| u8
| 1
| [[#Infinity Type Enum|'''Post Infinity''']]
| Infinity setting for time ranges after the end time of the spline curve.
|-
| u8
| 1
| [[#Clamp Mode Enum|'''Clamp Mode''']]
| Clamp mode setting.
|}
|}


Anonymous user