OBD:QTNA

From OniGalore
Revision as of 00:22, 18 July 2010 by Iritscen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
ONI BINARY DATA
PSUI << Other file types >> SNDD
QTNA : Quad Tree Node Array
switch to XML:QTNA page
Overview @ Oni Stuff
OBD.png


Qtna a.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 46 02 00 582 00582-.QTNA
0x04 lev_id 01 00 00 06 3 level 3
0x08 char[20] AD DE dead unused
0x1C int32 C1 1D 00 00 7617 array size
First element (black outline)
0x00 int32hb 3A 09 00 80 2362, high bit negative u, negative v child index
0x04 int32hb 3B 09 00 80 2363, high bit positive u, negative v child index
0x08 int32hb 01 00 00 00 1 negative u, positive v child index
0x0C int32hb 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.


ONI BINARY DATA
PSUI << Other file types >> SNDD
QTNA : Quad Tree Node Array
Level file