XML:OBAN: Difference between revisions

11 bytes added ,  15 August 2019
m
→‎XML: <time> is used by mediawiki somehow
m (link fix)
m (→‎XML: <time> is used by mediawiki somehow)
Line 86: Line 86:
| <FrameCount>
| <FrameCount>
| int16
| int16
| 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>
| the value must be equal to the last &lt;Time> value plus 1 because &lt;Time>0&lt;/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>
| &lt;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===
489

edits