OBD:QTNA: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
No edit summary
Line 33: Line 33:
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 3A 09
| BGCOLOR="#FFC8C8" | 3A 09 00 80
| 2362
| 2362, high bit
| ALIGN=LEFT | unknown
| ALIGN=LEFT | negative u, negative v child index
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 80
| BGCOLOR="#FFFFC8" | 3B 09 00 80
| 32768
| 2363, high bit
| ALIGN=LEFT | unknown
| ALIGN=LEFT | positive u, negative v child index
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 3B 09
| BGCOLOR="#C8FFC8" | 01 00 00 00
| 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
| 1
| ALIGN=LEFT | unknown
| ALIGN=LEFT | negative u, positive v child index
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 00 00
| BGCOLOR="#C8FFFF" | 54 09 00 80
| 0
| 2388, high bit
| ALIGN=LEFT | unknown
| ALIGN=LEFT | positive u, positive v child index
|- 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
|}
|}


 
;Child index
: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.
;U and V meaning
:X aligned node - U = Y, V = Z
:Y aligned node - U = X, V = Z
:Z aligned node -  U = X, V = Y
:;Note
::The alignment of a node depends on the leaf face that referenced it because there is no orientation information in a quadttree node.
<HR>
<HR>
<CENTER>[[OBD:PSUI|<==]] <B>QTNA File</B> [[OBD:SNDD|==>]]</CENTER>
<CENTER>[[OBD:PSUI|<==]] <B>QTNA File</B> [[OBD:SNDD|==>]]</CENTER>

Revision as of 19:21, 13 March 2007

Main Page >> Oni Binary Data >> File Types >> QTNA File


<== QTNA File ==>
Quad Tree Node Array - Level File


qtna_a.gif


Hex Translation Meaning
01 46 02 00 582 00582-.QTNA
01 00 00 06 3 level 3
AD DE dead not used
C1 1D 00 00 7617 7617 packages follow (one package is edged in black)
Below follows the first package.
3A 09 00 80 2362, high bit negative u, negative v child index
3B 09 00 80 2363, high bit positive u, negative v child index
01 00 00 00 1 negative u, positive v child index
54 09 00 80 2388, high bit positive u, positive v child index
Child index
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 OTLF entry.
U and V meaning
X aligned node - U = Y, V = Z
Y aligned node - U = X, V = Z
Z aligned node - U = X, V = Y
Note
The alignment of a node depends on the leaf face that referenced it because there is no orientation information in a quadttree node.

<== QTNA File ==>


Main Page >> Oni Binary Data >> File Types >> QTNA File