Jump to content

OBD:AGQG: Difference between revisions

332 bytes removed ,  8 June 2008
m
cleaning up flags
(object id stuff)
m (cleaning up flags)
Line 24: Line 24:
{{OBDtr | 0x28 | color  |C8FFC8| 02 07 09 00 | 2, 7, 9, 0  | byte-swapped ARGB color for 3rd vertex }}
{{OBDtr | 0x28 | color  |C8FFC8| 02 07 09 00 | 2, 7, 9, 0  | byte-swapped ARGB color for 3rd vertex }}
{{OBDtr | 0x2C | color  |C8FFC8| 06 15 1E 00 | 6, 21, 30, 0 | byte-swapped ARGB color for 4th vertex }}
{{OBDtr | 0x2C | color  |C8FFC8| 06 15 1E 00 | 6, 21, 30, 0 | byte-swapped ARGB color for 4th vertex }}
{{OBDtr | 0x30 |bitset32|C8FFFF| 00 00 08 02 | 0, 0, 8, 2  | flags (see below this table) }}
{{OBDtr | 0x30 |bitset32|C8FFFF| 00 00 08 02 | 0, 0, 8, 2  | flags; used values:
{{OBDtr | 0x34 | int32  |FFC8FF| FF FF FF FF | -1          | object ID and type to which this quad belongs (see [[ONOA]] for details); -1 if it does not belong to an object }}
|}
 
 
;Triangles
:Many quads are in fact triangles: the last two vertices have the same [[OBD:PNTA|PNTA]] and [[OBD:TXCA|TXCA]] entries, and the ARGB color is (255, 205, 205, 205) (80% gray, 100% opaque). There is also a flag specifying that (see below).
;Flags
:0x'''01''' 00 00 00 - unknown
:0x'''01''' 00 00 00 - unknown
:0x'''02''' 00 00 00 - ghost (pathfinding volume separator, see [[OBD:AKVA|AKVA]] etc)
:0x'''02''' 00 00 00 - ghost (pathfinding volume separator, see [[OBD:AKVA|AKVA]] etc)
Line 37: Line 30:
:0x'''08''' 00 00 00 - stairs down
:0x'''08''' 00 00 00 - stairs down
:0x'''10''' 00 00 00 - stairs
:0x'''10''' 00 00 00 - stairs
:0x'''20''' 00 00 00 - set at runtime for Jell'Oed quads, never used in files
:0x'''40''' 00 00 00 - triangle (see above)
:0x'''40''' 00 00 00 - triangle (see above)
:0x'''80''' 00 00 00 - transparency (if 0 then alpha is ignored, color is just RGB shading)
:0x'''80''' 00 00 00 - transparency (if 0 then alpha is ignored, color is just RGB shading)
:0x00 '''01''' 00 00 - unknown, never used in files
:0x00 '''02''' 00 00 - two-sided
:0x00 '''02''' 00 00 - two-sided
:0x00 '''04''' 00 00 - unknown, never used in files
:0x00 '''08''' 00 00 - no collision
:0x00 '''08''' 00 00 - no collision
:0x00 '''10''' 00 00 - unknown, never used in files
:0x00 '''20''' 00 00 - invisible
:0x00 '''20''' 00 00 - invisible
:0x00 '''40''' 00 00 - no object collision
:0x00 '''40''' 00 00 - no object collision
Line 50: Line 39:
:0x00 00 '''01''' 00 - no occlusion
:0x00 00 '''01''' 00 - no occlusion
:0x00 00 '''02''' 00 - danger
:0x00 00 '''02''' 00 - danger
:0x00 00 '''04''' 00 - set at runtime for quads hidden with *env_show*, never used in files
:0x00 00 '''08''' 00 - vertical collision: slope < 70°
:0x00 00 '''08''' 00 - vertical collision: slope < 70°
:0x00 00 '''10''' 00 - horizontal collision: slope > 70°
:0x00 00 '''10''' 00 - horizontal collision: slope > 70°
:0x00 00 '''20''' 00 - unknown, never used in files
:0x00 00 '''40''' 00 - ignore grid
:0x00 00 '''40''' 00 - ignore grid
:0x00 00 '''80''' 00 - no decal
:0x00 00 '''80''' 00 - no decal
Line 61: Line 48:
:0x00 00 00 '''08''' - sound-transparent
:0x00 00 00 '''08''' - sound-transparent
:0x00 00 00 '''10''' - impassable
:0x00 00 00 '''10''' - impassable
:0x00 00 00 '''20''' - unknown, never used in files
}}
:0x00 00 00 '''40''' - unknown, never used in files
{{OBDtr | 0x34 | int32  |FFC8FF| FF FF FF FF | -1          | object ID and type to which this quad belongs (see [[ONOA]] for details); -1 if it does not belong to an object }}
:0x00 00 00 '''80''' - unknown, never used in files
|}
 
;Triangles
:Many quads are in fact triangles: the last two vertices have the same [[OBD:PNTA|PNTA]] and [[OBD:TXCA|TXCA]] entries, and the ARGB color is (255, 205, 205, 205) (80% gray, 100% opaque). There is also a flag specifying that.
 
;Flags
At runtime the following flag values are also used:
:0x00 00 '''04''' 00 - set at runtime for quads hidden with *env_show*, never used in files
:0x'''20''' 00 00 00 - set at runtime for Jell'Oed quads, never used in files
 
;Projection plane flags
;Projection plane flags
These 2 flags can be 00, 01, 10 and 11. That means the values 0,1,2 and 3 which have the following meanings:
These 2 flags can be 00, 01, 10 and 11. That means the values 0,1,2 and 3 which have the following meanings:
708

edits