Difference between revisions of "Motion (.MOT) File Format"

From Ōkami Speedrun Wiki
Jump to navigation Jump to search
m
m
Line 6: Line 6:
There's instances of mots that controlled properties instead of bones, so it's not always certain of what it animates. A further inspection have to be done.
There's instances of mots that controlled properties instead of bones, so it's not always certain of what it animates. A further inspection have to be done.


== Mot header ==
== Mot main header ==
{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Size !! Description
! Offset !! Type !! Size !! Description
Line 17: Line 17:
|-
|-
| 0x07 || <code>uint8_t</code> || 1 || Loop flag, sets if the animation either loops or not (1/0).
| 0x07 || <code>uint8_t</code> || 1 || Loop flag, sets if the animation either loops or not (1/0).
|}
on Offset 8, The File gives informations about the curves, i.e: what bone it animates, etc.
== Curve Info ==
{| class="wikitable"
! Offset !! Type !! Size !! Description
|-
| 0x00 || <code>int8_t</code> || 1 || Bone index (-1 means it animates the mode's root bone).
|-
| 0x01 || <code>int8_t</code> || 1 || Curve property.
|-
| 0x02 || <code>uint16_t</code> || 2 || Curve keyframe count.
|}
|}

Revision as of 17:34, 7 September 2025

Note: This page pertains to Reverse Engineering of Okami File Formats.

Explanation

This file incorporates curves and/or properties for an given embbed model. Because of that, it's almost always certain that they are contained in a file container (dat). There's instances of mots that controlled properties instead of bones, so it's not always certain of what it animates. A further inspection have to be done.

Mot main header

Offset Type Size Description
0x00 uint32_t 4 File identifier (Magic number).
0x04 uint16_t 2 Animation's frame count.
0x06 uint8_t 1 Animation's property count.
0x07 uint8_t 1 Loop flag, sets if the animation either loops or not (1/0).

on Offset 8, The File gives informations about the curves, i.e: what bone it animates, etc.

Curve Info

Offset Type Size Description
0x00 int8_t 1 Bone index (-1 means it animates the mode's root bone).
0x01 int8_t 1 Curve property.
0x02 uint16_t 2 Curve keyframe count.