489
edits
Paradox-01 (talk | contribs) m (link fix) |
Script 10k (talk | contribs) m (→XML: <time> is used by mediawiki somehow) |
||
Line 86: | Line 86: | ||
| <FrameCount> | | <FrameCount> | ||
| int16 | | int16 | ||
| the value must be equal to the last | | the value must be equal to the last <Time> value plus 1 because <Time>0</Time> is also a frame; Oni crashes if you use a wrong value for <FrameCount> | ||
|- | |- | ||
| <HalfStopFrame> | | <HalfStopFrame> | ||
Line 104: | Line 104: | ||
| x y z object position | | x y z object position | ||
|- | |- | ||
| | | <Time> | ||
| int32 | | int32 | ||
| elapsed time in frames, use short intervals for smooth animations | | elapsed time in frames, use short intervals for smooth animations | ||
Line 131: | Line 131: | ||
:Those are used in Oni whenever interpolation of 3D rotation is involved (e.g., [[OBD_talk:TRAM/raw0x34#Quaternions|TRAM rotation]]) | :Those are used in Oni whenever interpolation of 3D rotation is involved (e.g., [[OBD_talk:TRAM/raw0x34#Quaternions|TRAM rotation]]) | ||
:In this case, rotation at intermediate frames is interpolated from the keyframe quaternions. | :In this case, rotation at intermediate frames is interpolated from the keyframe quaternions. | ||
===code sample=== | ===code sample=== |
edits