ANIM (Metroid Prime): Difference between revisions

>Aruki
(merging wiki pages for MP1/2 ANIM. Did format 0, will do format 2 later)
>Aruki
Line 29: Line 29:
!style="width: 215px;"|Element Count
!style="width: 215px;"|Element Count
!style="width: 240px;"|Name
!style="width: 240px;"|Name
!Notes
!MP1
!MP1
!MP2
!MP2
!Notes
|-
|-
|0x4
|0x4
Line 37: Line 37:
|1
|1
|'''Duration'''
|'''Duration'''
|'''[1/2 in CCharAnimTime]''' Time in seconds that the animation plays for
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|'''[1/2 in CCharAnimTime]''' Time in seconds that the animation plays for
|-
|-
|0x8
|0x8
Line 45: Line 45:
|1
|1
|'''Differential State Enum'''
|'''Differential State Enum'''
|'''[2/2 in CCharAnimTime]''' State of ''Duration'' time point for proper integration control <ol start="0"><li>Non Zero</li><li>Zero Increasing</li><li>Zero Steady</li><li>Zero Decreasing</li><li>Infinity</li></ol>
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|'''[2/2 in CCharAnimTime]''' State of ''Duration'' time point for proper integration control <ol start="0"><li>Non Zero</li><li>Zero Increasing</li><li>Zero Steady</li><li>Zero Decreasing</li><li>Infinity</li></ol>
|-
|-
|0xC
|0xC
Line 53: Line 53:
|1
|1
|'''Key Interval'''
|'''Key Interval'''
|'''[1/2 in CCharAnimTime]''' Time in seconds between keys of each bone channel (reciprocal of frame-rate)
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|'''[1/2 in CCharAnimTime]''' Time in seconds between keys of each bone channel (reciprocal of frame-rate)
|-
|-
|0x10
|0x10
Line 61: Line 61:
|1
|1
|'''Differential State Enum'''
|'''Differential State Enum'''
|'''[2/2 in CCharAnimTime]''' State of ''Key Interval'' time point for proper integration control
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|'''[2/2 in CCharAnimTime]''' State of ''Key Interval'' time point for proper integration control
|-
|-
|0x14
|0x14
Line 69: Line 69:
|1
|1
|'''Key Count'''
|'''Key Count'''
|Count of keys for each bone channel (keys are set for every frame of the animation)
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|Count of keys for each bone channel (keys are set for every frame of the animation)
|-
|-
|0x18
|0x18
Line 77: Line 77:
|1
|1
|'''Root Bone ID'''
|'''Root Bone ID'''
|ID of the root bone in this ANIM
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|ID of the root bone in this ANIM
|-
|-
|0x1C
|0x1C
Line 85: Line 85:
|1
|1
|'''Bone Channel Count'''
|'''Bone Channel Count'''
|Count of bone channel indices in the next array. Always 100.
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|Count of bone channel indices in the next array. Always 100.
|-
|-
|0x20
|0x20
Line 93: Line 93:
|''Bone Channel Count''
|''Bone Channel Count''
|'''Bone Channel Index Array'''
|'''Bone Channel Index Array'''
|This table maps each bone to a bone channel, with the index-position corresponding to a ''Bone ID'' in the associated [[CINF (File Format)|CINF]], while the value corresponds to a bone channel index. The value is 0xFF if the bone is not animated by this ANIM.
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|This table maps each bone to a bone channel, with the index-position corresponding to a ''Bone ID'' in the associated [[CINF (File Format)|CINF]], while the value corresponds to a bone channel index. The value is 0xFF if the bone is not animated by this ANIM.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 101: Line 101:
|1
|1
|'''Rotation Channel Index Count'''
|'''Rotation Channel Index Count'''
|Count of rotation channel indices in the next array. Matches the number of valid bone channels.
|{{nocheck}}
|{{nocheck}}
|{{check}}
|{{check}}
|Count of rotation channel indices in the next array. Matches the number of valid bone channels.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 109: Line 109:
|''Rotation Channel Index Count''
|''Rotation Channel Index Count''
|'''Rotation Channel Index Array'''
|'''Rotation Channel Index Array'''
|This table maps each bone channel to a rotation channel, with the index-position corresponding to an entry in the ''Bone Channel Index Array'' above (disregarding 0xFF entries), while the value corresponds to the index of a rotation channel. The value is 0xFF if the bone is not rotated by this ANIM. '''Note:''' In ''Metroid Prime'', every bone channel always has rotations, so this array is omitted.
|{{nocheck}}
|{{nocheck}}
|{{check}}
|{{check}}
|This table maps each bone channel to a rotation channel, with the index-position corresponding to an entry in the ''Bone Channel Index Array'' above (disregarding 0xFF entries), while the value corresponds to the index of a rotation channel. The value is 0xFF if the bone is not rotated by this ANIM. '''Note:''' In ''Metroid Prime'', every bone channel always has rotations, so this array is omitted.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 117: Line 117:
|1
|1
|'''Translation Channel Index Count'''
|'''Translation Channel Index Count'''
|Count of translation channel indices in the next array. Matches the number of valid bone channels.
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|Count of translation channel indices in the next array. Matches the number of valid bone channels.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 125: Line 125:
|''Translation Channel Index Count''
|''Translation Channel Index Count''
|'''Translation Channel Index Array'''
|'''Translation Channel Index Array'''
|This table maps each bonechannel to a translation channel, with the index-position corresponding to an entry in the ''Bone Channel Index Array'' above (disregarding 0xFF entries), while the value corresponds to the index of a translation channel. The value is 0xFF if the bone is not translated by this ANIM.
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|This table maps each bonechannel to a translation channel, with the index-position corresponding to an entry in the ''Bone Channel Index Array'' above (disregarding 0xFF entries), while the value corresponds to the index of a translation channel. The value is 0xFF if the bone is not translated by this ANIM.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 133: Line 133:
|1
|1
|'''Scale Channel Index Count'''
|'''Scale Channel Index Count'''
|Count of scale channel indices in the next array. Matches the number of valid bone channels.
|{{nocheck}}
|{{nocheck}}
|{{check}}
|{{check}}
|Count of scale channel indices in the next array. Matches the number of valid bone channels.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 141: Line 141:
|''Scale Channel Index Count''
|''Scale Channel Index Count''
|'''Scale Channel Index Array'''
|'''Scale Channel Index Array'''
|This table maps each bone channel to a scale channel, with the index-position corresponding to an entry in the ''Bone Channel Index Array'' above (disregarding 0xFF entries), while the value corresponds to the index of a scale channel. The value is 0xFF if the bone is not scaled by this ANIM.
|{{nocheck}}
|{{nocheck}}
|{{check}}
|{{check}}
|This table maps each bone channel to a scale channel, with the index-position corresponding to an entry in the ''Bone Channel Index Array'' above (disregarding 0xFF entries), while the value corresponds to the index of a scale channel. The value is 0xFF if the bone is not scaled by this ANIM.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 149: Line 149:
|1
|1
|'''Scale Key Count'''
|'''Scale Key Count'''
|Count of elements in ''Scale Key Array'' below
|{{nocheck}}
|{{nocheck}}
|{{check}}
|{{check}}
|Count of elements in ''Scale Key Array'' below
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 157: Line 157:
|''Scale Key Count''
|''Scale Key Count''
|'''Scale Key Array'''
|'''Scale Key Array'''
|{{nocheck}}
|{{check}}
|The scale keys are interleaved as such (bone-major):
|The scale keys are interleaved as such (bone-major):
<pre>
<pre>
Line 168: Line 166:
|------------|------------|-----|------------|
|------------|------------|-----|------------|
</pre>
</pre>
|{{nocheck}}
|{{check}}
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 173: Line 173:
|1
|1
|'''Rotation Key Count'''
|'''Rotation Key Count'''
|Count of elements in ''Rotation Key Array'' below
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|Count of elements in ''Rotation Key Array'' below
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 181: Line 181:
|''Rotation Key Count''
|''Rotation Key Count''
|'''Rotation Key Array'''
|'''Rotation Key Array'''
|The rotation keys are interleaved the same way as the scale keys. In ''Metroid Prime 2'', any bone channels that were marked 0xFF in the ''Rotation Channel Index Array'' are skipped.
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|The rotation keys are interleaved the same way as the scale keys. In ''Metroid Prime 2'', any bone channels that were marked 0xFF in the ''Rotation Channel Index Array'' are skipped.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 189: Line 189:
|1
|1
|'''Translation Key Count'''
|'''Translation Key Count'''
|Count of elements in ''Translation Key Array'' below
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|Count of elements in ''Translation Key Array'' below
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 197: Line 197:
|''Translation Key Count''
|''Translation Key Count''
|'''Translation Key Array'''
|'''Translation Key Array'''
|The translation keys are interleaved the same way as the scale keys. Any bone channels that were marked 0xFF in the ''Translation Channel Index Array'' are skipped.
|{{check}}
|{{check}}
|{{check}}
|{{check}}
|The translation keys are interleaved the same way as the scale keys. Any bone channels that were marked 0xFF in the ''Translation Channel Index Array'' are skipped.
|-
|-
|{{unknown|}}
|{{unknown|}}
Line 205: Line 205:
|1
|1
|'''EVNT Ref'''
|'''EVNT Ref'''
|ID for this ANIM's [[EVNT (File Format)|EVNT]] resource, or 0xFFFFFFFF if no events triggered
|{{check}}
|{{check}}
|{{nocheck}}
|{{nocheck}}
|ID for this ANIM's [[EVNT (File Format)|EVNT]] resource, or 0xFFFFFFFF if no events triggered
|}
|}


Anonymous user