OBD:ONFA: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (matrix)
m (design)
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> ONFA File
{{OBD_File_Header | type=ONFA | prev=ONCV | next=ONGS | name=Imported Flag Node Array | family=Level | align=center}}




<CENTER>[[OBD:ONCV|<==]] <FONT SIZE=5>ONFA File</FONT> [[OBD:ONGS|==>]]<BR>
[[image:onfa_a.gif]]
<FONT SIZE=2>Imported Flag Node Array - Level File</FONT></CENTER>




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/onfa_a.gif
{{Table}}
{{OBDth}}
{{OBDtr| 0x00 | res_id  |FF0000| 01 99 02 00 | 665  | 00665-.ONFA }}
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 06 | 3    | level 3 }}
{{OBDtr| 0x08 | char[20] |00FF00| AD DE      | dead  | unused }}
{{OBDtr| 0x1C | int16    |00FFFF| 0D 00      | 13    | used elements in the array }}
{{OBDtr| 0x1E | int16    |FF00FF| 71 00      | 113  | array size }}
{{OBDtrBK}}
{{OBDtr| 0x00 | float    |FFC8C8| 00 00 80 3F | 1.000000  | transformation matrix, xx term }}
{{OBDtr| 0x04 | float    |FFC8C8| 2F BD 3B B3 |-0.000000...| transformation matrix, xy term }}
{{OBDtr| 0x08 | float    |FFC8C8| 81 BC 40 34 | 0.000000...| transformation matrix, xz term }}
{{OBDtr| 0x0C | float    |FFFFC8| 2C BD 3B 33 | 0.000000...| transformation matrix, yx term  }}
{{OBDtr| 0x10 | float    |FFFFC8| 00 00 80 3F | 1.000000  | transformation matrix, yy term }}
{{OBDtr| 0x14 | float    |FFFFC8| BA F4 6E 33 | 0.000000...| transformation matrix, yz term }}
{{OBDtr| 0x18 | float    |C8FFC8| 81 BC 40 B4 |-0.000000...| transformation matrix, zx term }}
{{OBDtr| 0x1C | float    |C8FFC8| B7 F4 6E B3 |-0.000000...| transformation matrix, zy term }}
{{OBDtr| 0x20 | float    |C8FFC8| 00 00 80 3F | 1.000000  | transformation matrix, zz term }}
{{OBDtr| 0x24 | float    |C8FFFF| 9D A7 A4 41 | 20.581842  | x-position }}
{{OBDtr| 0x28 | float    |C8FFFF| 0D AE 4B 41 | 12.729993  | y-position (height) }}
{{OBDtr| 0x2C | float    |C8FFFF| 45 B5 A7 C3 | -335.416168| z-position }}
{{OBDtr| 0x30 | float    |FFC8FF| 9D A7 A4 41 | 20.581842  | x-position again }}
{{OBDtr| 0x34 | float    |FFC8FF| 0D AE 4B 41 | 12.729993  | y-position (height) again }}
{{OBDtr| 0x38 | float    |FFC8FF| 45 B5 A7 C3 | -335.416168| z-position again }}
{{OBDtr| 0x3C | float    |FFC800| D9 0F C9 3F | 1.570796  | unknown (1.57 <nowiki>=</nowiki> pi/2) }}
{{OBDtr| 0x40 | int16    |C800C8| 00 00      | 0          | flag node ID }}
{{OBDtr| 0x42 | int16    |C87C64| 00 01      | 256        | unknown }}
|}




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
| WIDTH=15% | <B>Hex</B>
| WIDTH=15% | <B>Translation</B>
| WIDTH=70% | <B>Meaning</B>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF0000" | 01 99 02 00
| 665
| ALIGN=LEFT | 00665-.ONFA
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFF00" | 01 00 00 06
| 3
| ALIGN=LEFT | level 3
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | AD DE
| dead
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | 0D 00
| 13
| ALIGN=LEFT | 13 packages follow (one package is edged in black)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00FF" | 71 00
| 113
| ALIGN=LEFT | 113 packages possible
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | transformation matrix, xx term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 2F BD 3B B3
| -0.000000...
| ALIGN=LEFT | transformation matrix, xy term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 81 BC 40 34
| 0.000000...
| ALIGN=LEFT | transformation matrix, xz term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 2C BD 3B 33
| 0.000000...
| ALIGN=LEFT | transformation matrix, yx term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | transformation matrix, yy term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | BA F4 6E 33
| 0.000000...
| ALIGN=LEFT | transformation matrix, yz term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 81 BC 40 B4
| -0.000000...
| ALIGN=LEFT | transformation matrix, zx term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | B7 F4 6E B3
| -0.000000...
| ALIGN=LEFT | transformation matrix, zy term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 00 00 80 3F
| 1.000000
| ALIGN=LEFT | transformation matrix, zz term
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 9D A7 A4 41
| 20.581842
| ALIGN=LEFT | x-position
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 0D AE 4B 41
| 12.729993
| ALIGN=LEFT | y-position (height)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 45 B5 A7 C3
| -335.416168
| ALIGN=LEFT | z-position
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 9D A7 A4 41
| 20.581842
| ALIGN=LEFT | x-position again
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 0D AE 4B 41
| 12.729993
| ALIGN=LEFT | y-position (height) again
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 45 B5 A7 C3
| -335.416168
| ALIGN=LEFT | z-position again
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" | D9 0F C9 3F
| 1.570796
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C800C8" | 00 00
| 0
| ALIGN=LEFT | flag node ID
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C87C64" | 00 01
| 256
| ALIGN=LEFT | unknown
|}
;Transformation matrix
;Transformation matrix
:A 3x3 matrix is the canonic way to define linear transformations of 3D stuff
:A 3x3 matrix is the canonic way to define linear transformations of 3D stuff
:(rotations, scaling, shearing, mirroring, in every possible combination)
:(rotations, scaling, shearing, mirroring, in every possible combination)
:I'm not sure what 3D data is implied here; it's more obvious in, e.g., [[OBD:CRSA|CRSA]] or [[OBD:ENVP|ENVP]].
:I'm not sure what 3D data is implied here; it's more obvious in, e.g., [[OBD:CRSA|CRSA]] or [[OBD:ENVP|ENVP]].
<HR>
<CENTER>[[OBD:ONCV|<==]] <B>ONFA File</B> [[OBD:ONGS|==>]]</CENTER>
<HR>




[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> ONFA File
{{OBD_File_Footer | type=ONFA | prev=ONCV | next=ONGS | name=Imported Flag Node Array | family=Level | family=Global}}

Revision as of 21:24, 10 September 2007

ONI BINARY DATA
ONCV << Other file types >> ONGS
ONFA : Imported Flag Node Array
switch to XML:ONFA page
Overview @ Oni Stuff
OBD.png


Onfa a.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 99 02 00 665 00665-.ONFA
0x04 lev_id 01 00 00 06 3 level 3
0x08 char[20] AD DE dead unused
0x1C int16 0D 00 13 used elements in the array
0x1E int16 71 00 113 array size
First element (black outline)
0x00 float 00 00 80 3F 1.000000 transformation matrix, xx term
0x04 float 2F BD 3B B3 -0.000000... transformation matrix, xy term
0x08 float 81 BC 40 34 0.000000... transformation matrix, xz term
0x0C float 2C BD 3B 33 0.000000... transformation matrix, yx term
0x10 float 00 00 80 3F 1.000000 transformation matrix, yy term
0x14 float BA F4 6E 33 0.000000... transformation matrix, yz term
0x18 float 81 BC 40 B4 -0.000000... transformation matrix, zx term
0x1C float B7 F4 6E B3 -0.000000... transformation matrix, zy term
0x20 float 00 00 80 3F 1.000000 transformation matrix, zz term
0x24 float 9D A7 A4 41 20.581842 x-position
0x28 float 0D AE 4B 41 12.729993 y-position (height)
0x2C float 45 B5 A7 C3 -335.416168 z-position
0x30 float 9D A7 A4 41 20.581842 x-position again
0x34 float 0D AE 4B 41 12.729993 y-position (height) again
0x38 float 45 B5 A7 C3 -335.416168 z-position again
0x3C float D9 0F C9 3F 1.570796 unknown (1.57 = pi/2)
0x40 int16 00 00 0 flag node ID
0x42 int16 00 01 256 unknown


Transformation matrix
A 3x3 matrix is the canonic way to define linear transformations of 3D stuff
(rotations, scaling, shearing, mirroring, in every possible combination)
I'm not sure what 3D data is implied here; it's more obvious in, e.g., CRSA or ENVP.


ONI BINARY DATA
ONCV << Other file types >> ONGS
ONFA : Imported Flag Node Array
Global file