OBD:QTNA: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{OBD_File_Header | type=QTNA | prev=PSUI | next=SNDD | name=Quad Tree Node Array | family=Level | align=center}} | |||
[[image: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 }} | |||
|} | |||
;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. | |||
| | |||
{{OBD_File_Footer | type=QTNA | prev=PSUI | next=SNDD | name=Quad Tree Node Array | family=Level}} | |||
{{OBD}} |
Latest revision as of 00:22, 18 July 2010
|
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 |