8,018
edits
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
{{Template:XMLModdingHints}} | {{Template:XMLModdingHints}} | ||
{| border=0 cellspacing=20 cellpadding=0 align=center | {| border=0 cellspacing=20 cellpadding=0 align=center | ||
| The xml code on this page is compatible with onisplit '''v0.9.61.0''' | | The xml code on this page is compatible with onisplit '''v0.9.61.0''' and '''v0.9.68.0''' | ||
|} | |} | ||
Line 63: | Line 63: | ||
| <FrameLength> | | <FrameLength> | ||
| int16 | | int16 | ||
| the value | | 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 <FrameLength> | ||
|- | |- | ||
| <FrameCount> | | <FrameCount> | ||
Line 112: | Line 112: | ||
: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=== | |||
'''''[...]''''' means other code blocks of <OBANKeyFrame>...</OBANKeyFrame> | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Oni> | |||
<OBAN id="0"> | |||
<Flags></Flags> | |||
<InitialTransform>1 0 0 0 1 0 0 0 1 -225 9.3 -778.5</InitialTransform> | |||
<BaseTransform>-1 0 0 0 -1 0 0 0 1 0 0 0</BaseTransform> | |||
<FrameLength>80</FrameLength> | |||
<FrameCount>'''71'''</FrameCount> | |||
<HalfStopFrame>0</HalfStopFrame> | |||
<KeyFrames> | |||
<OBANKeyFrame> | |||
<Rotation>1 1 1 1</Rotation> | |||
<Translation>-225 9.3 -778.5</Translation> | |||
<Time>0</Time> | |||
</OBANKeyFrame> | |||
'''''[...]''''' | |||
<OBANKeyFrame> | |||
<Rotation>1 1 1 1</Rotation> | |||
<Translation>-217 34.5 -778.5</Translation> | |||
<Time>'''70'''</Time> | |||
</OBANKeyFrame> | |||
</KeyFrames> | |||
</OBAN> | |||
</Oni> | |||
edits