OBD:OBAN: Difference between revisions
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
| BGCOLOR="#FFC8C8" | C2 F5 E8 3F | | BGCOLOR="#FFC8C8" | C2 F5 E8 3F | ||
| 1.819999 | | 1.819999 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m11 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8C8" | AB D7 AA B3 | | BGCOLOR="#FFC8C8" | AB D7 AA B3 | ||
| -7.955471e-8 | | -7.955471e-8 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m21 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8C8" | EC 89 13 35 | | BGCOLOR="#FFC8C8" | EC 89 13 35 | ||
| 5.496247e-7 | | 5.496247e-7 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m31 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFFFC8" | EC 89 13 35 | | BGCOLOR="#FFFFC8" | EC 89 13 35 | ||
| 5.496247e-7 | | 5.496247e-7 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m12 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFFFC8" | ED 89 13 B4 | | BGCOLOR="#FFFFC8" | ED 89 13 B4 | ||
| -1.374061e-7 | | -1.374061e-7 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m22 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFFFC8" | C2 F5 E8 BF | | BGCOLOR="#FFFFC8" | C2 F5 E8 BF | ||
| -1.819999 | | -1.819999 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m32 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFC8" | B1 D7 AA 33 | | BGCOLOR="#C8FFC8" | B1 D7 AA 33 | ||
| 7.955475e-8 | | 7.955475e-8 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m13 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFC8" | C2 F5 E8 3F | | BGCOLOR="#C8FFC8" | C2 F5 E8 3F | ||
| 1.819999 | | 1.819999 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m23 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFC8" | EB 89 13 B4 | | BGCOLOR="#C8FFC8" | EB 89 13 B4 | ||
| -1.374061e-7 | | -1.374061e-7 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m33 element of the initial position transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 6B 9A 94 44 | | BGCOLOR="#C8FFFF" | 6B 9A 94 44 | ||
| 1188.825561 | | 1188.825561 | ||
| ALIGN=LEFT | x-position | | ALIGN=LEFT | m14 element of the initial position transform matrix (x-position) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 97 FD 5B C2 | | BGCOLOR="#C8FFFF" | 97 FD 5B C2 | ||
| -54.997646 | | -54.997646 | ||
| ALIGN=LEFT | y-position | | ALIGN=LEFT | m24 element of the initial position transform matrix (y-position, height) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 5D 06 DA C2 | | BGCOLOR="#C8FFFF" | 5D 06 DA C2 | ||
| -109.012428 | | -109.012428 | ||
| ALIGN=LEFT | z-position | | ALIGN=LEFT | m34 element of the initial position transform matrix (z-position) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8FF" | C2 F5 E8 3F | | BGCOLOR="#FFC8FF" | C2 F5 E8 3F | ||
| 1.819999 | | 1.819999 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m11 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8FF" | 00 00 00 00 | | BGCOLOR="#FFC8FF" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m21 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8FF" | 00 00 00 00 | | BGCOLOR="#FFC8FF" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m31 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC800" | 00 00 00 00 | | BGCOLOR="#FFC800" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m12 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC800" | C2 F5 E8 3F | | BGCOLOR="#FFC800" | C2 F5 E8 3F | ||
| 1.819999 | | 1.819999 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m22 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC800" | 00 00 00 00 | | BGCOLOR="#FFC800" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m32 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C800C8" | 00 00 00 00 | | BGCOLOR="#C800C8" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m13 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C800C8" | 00 00 00 00 | | BGCOLOR="#C800C8" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m23 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C800C8" | C2 F5 E8 3F | | BGCOLOR="#C800C8" | C2 F5 E8 3F | ||
| 1.819999 | | 1.819999 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m33 element of the fixed transform matrix | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C87C64" | 00 00 00 00 | | BGCOLOR="#C87C64" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m14 element of the fixed transform matrix (x translation) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C87C64" | 00 00 00 00 | | BGCOLOR="#C87C64" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m24 element of the fixed transform matrix (y translation) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C87C64" | 00 00 00 00 | | BGCOLOR="#C87C64" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | m34 element of the fixed transform matrix (z translation) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#B0C3D4" | 50 00 | | BGCOLOR="#B0C3D4" | 50 00 | ||
Line 174: | Line 174: | ||
|} | |} | ||
Elements m41, m42, m43, m44 of both transform matrices are missing. m41, m42 and m43 are the projection transform coefficients and they are not needed so they are 0.0 and the m44 element is always 1.0 for a transform matrix. (column major transform matrices like in Open GL, for Direct 3D they need to be transposed) | |||
The initial transform matrix can be used to position the object in the environment without playing the animation frames. The animation frames themself include this transform so it is not needed to actually play the animation. | |||
The fixed transform matrix must be applied to every animation frame. For some animations this matrix is the identity matrix so it is not really needed but some animations for composed objects (like the motorcycle animation from level 3 intro) need this transform. | |||
<HR> | <HR> |
Revision as of 15:55, 28 February 2007
Main Page >> Oni Binary Data >> File Types >> OBAN File
Object AnimationFile
Hex | Translation | Meaning |
01 86 00 00 | 134 | 00134-Blackvan_FB.OBAN |
01 00 00 06 | 3 | level 3 |
00 00 00 00 | 0 | Space marker. Don't alter it. |
C2 F5 E8 3F | 1.819999 | m11 element of the initial position transform matrix |
AB D7 AA B3 | -7.955471e-8 | m21 element of the initial position transform matrix |
EC 89 13 35 | 5.496247e-7 | m31 element of the initial position transform matrix |
EC 89 13 35 | 5.496247e-7 | m12 element of the initial position transform matrix |
ED 89 13 B4 | -1.374061e-7 | m22 element of the initial position transform matrix |
C2 F5 E8 BF | -1.819999 | m32 element of the initial position transform matrix |
B1 D7 AA 33 | 7.955475e-8 | m13 element of the initial position transform matrix |
C2 F5 E8 3F | 1.819999 | m23 element of the initial position transform matrix |
EB 89 13 B4 | -1.374061e-7 | m33 element of the initial position transform matrix |
6B 9A 94 44 | 1188.825561 | m14 element of the initial position transform matrix (x-position) |
97 FD 5B C2 | -54.997646 | m24 element of the initial position transform matrix (y-position, height) |
5D 06 DA C2 | -109.012428 | m34 element of the initial position transform matrix (z-position) |
C2 F5 E8 3F | 1.819999 | m11 element of the fixed transform matrix |
00 00 00 00 | 0.000000 | m21 element of the fixed transform matrix |
00 00 00 00 | 0.000000 | m31 element of the fixed transform matrix |
00 00 00 00 | 0.000000 | m12 element of the fixed transform matrix |
C2 F5 E8 3F | 1.819999 | m22 element of the fixed transform matrix |
00 00 00 00 | 0.000000 | m32 element of the fixed transform matrix |
00 00 00 00 | 0.000000 | m13 element of the fixed transform matrix |
00 00 00 00 | 0.000000 | m23 element of the fixed transform matrix |
C2 F5 E8 3F | 1.819999 | m33 element of the fixed transform matrix |
00 00 00 00 | 0.000000 | m14 element of the fixed transform matrix (x translation) |
00 00 00 00 | 0.000000 | m24 element of the fixed transform matrix (y translation) |
00 00 00 00 | 0.000000 | m34 element of the fixed transform matrix (z translation) |
50 00 | 80 | number of frames ??? |
F5 01 | 501 | animation time in 1/60 seconds (8.35 seconds) |
00 00 | 0 | unknown |
65 00 | 101 | 101 packages follow (one package is edged in black) |
Below follows the first package. | ||
F4 04 35 BF | -0.7071068 | x-value of the rotation quaternion |
6A 19 C4 B3 | -9.131584e-8 | y-value of the rotation quaternion |
CE 3C 03 B4 | -1.222244e-7 | z-value of the rotation quaternion |
F3 04 35 BF | -0.7071067 | w-value of the rotation quaternion |
6B 9A 94 44 | 1188.825561 | x-position |
97 FD 5B C2 | -54.997646 | y-position (height) |
5D 06 DA C2 | -109.012428 | z-position |
00 00 00 00 | 0 | passed time in 1/60 seconds |
Elements m41, m42, m43, m44 of both transform matrices are missing. m41, m42 and m43 are the projection transform coefficients and they are not needed so they are 0.0 and the m44 element is always 1.0 for a transform matrix. (column major transform matrices like in Open GL, for Direct 3D they need to be transposed)
The initial transform matrix can be used to position the object in the environment without playing the animation frames. The animation frames themself include this transform so it is not needed to actually play the animation.
The fixed transform matrix must be applied to every animation frame. For some animations this matrix is the identity matrix so it is not really needed but some animations for composed objects (like the motorcycle animation from level 3 intro) need this transform.
Main Page >> Oni Binary Data >> File Types >> OBAN File