OBD:QTNA: Difference between revisions

661 bytes removed ,  18 July 2010
m
no edit summary
No edit summary
 
mNo edit summary
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> QTNA File
{{OBD_File_Header | type=QTNA | prev=PSUI | next=SNDD | name=Quad Tree Node Array | family=Level | align=center}}




<CENTER>[[OBD:PSUI|<==]] <FONT SIZE=5>QTNA File</FONT> [[OBD:SNDD|==>]]<BR>
[[image:qtna_a.gif]]
<FONT SIZE=2>Quad Tree Node Array - Level File</FONT></CENTER>




http://www.fh-eberswalde.de/user/dkriesch/onistuff/images/qtna_a.gif
{{Table}}
{{OBDth}}
{{OBDtr| 0x00 | res_id  |FF0000| 01 46 02 00 | 582            | 00582-.QTNA }}
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 06 | 3              | level 3 }}
{{OBDtr| 0x08 | char[20] |00FF00| AD DE      | dead          | unused }}
{{OBDtr| 0x1C | int32    |00FFFF| C1 1D 00 00 | 7617          | array size }}
{{OBDtrBK}}
{{OBDtr| 0x00 | int32hb  |FFC8C8| 3A 09 00 80 | 2362, high bit | negative u, negative v child index }}
{{OBDtr| 0x04 | int32hb  |FFFFC8| 3B 09 00 80 | 2363, high bit | positive u, negative v child index }}
{{OBDtr| 0x08 | int32hb  |C8FFC8| 01 00 00 00 | 1              | negative u, positive v child index }}
{{OBDtr| 0x0C | int32hb  |C8FFFF| 54 09 00 80 | 2388, high bit | positive u, positive v child index }}
|}




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
;Child index
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
:If the high bit is not set then the child index is the index of another quadtree node (into the same array). Otherwise it is the index of an [[OBD:OTLF|OTLF]] entry.
| WIDTH=15% | <B>Hex</B>
;U and V meaning
| WIDTH=15% | <B>Translation</B>
:X aligned node - U = Y, V = Z
| WIDTH=70% | <B>Meaning</B>
:Y aligned node - U = X, V = Z
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:Z aligned node - U = X, V = Y
| BGCOLOR="#FF0000" | 01 46 02 00
:;Note
| 582
::The alignment of a node depends on the leaf face that referenced it because there is no orientation information in a quadttree node.
| ALIGN=LEFT | 00582-.QTNA
|- 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" | C1 1D 00 00
| 7617
| ALIGN=LEFT | 7617 packages follow (one package is edged in black)
|- 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" | 3A 09
| 2362
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 80
| 32768
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 3B 09
| 2363
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 00 80
| 32768
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 01 00
| 1
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 00 00
| 0
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 54 09
| 2388
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 00 80
| 32768
| ALIGN=LEFT | unknown
|}
 


<HR>
<CENTER>[[OBD:PSUI|<==]] <B>QTNA File</B> [[OBD:SNDD|==>]]</CENTER>
<HR>


{{OBD_File_Footer | type=QTNA | prev=PSUI | next=SNDD | name=Quad Tree Node Array | family=Level}}


[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> QTNA File
{{OBD}}