-
Notifications
You must be signed in to change notification settings - Fork 0
3_Poly Type Flags
VincentNL edited this page Dec 13, 2021
·
14 revisions
Strip and polygon parameters are determined by bit flags as follows:
| Bit 0 | Bit 1 | Bit 2 | Bit 3 | Bit 4 | Bit 5 | Bit 6 | Bit 7 | Bit 8 | |
|---|---|---|---|---|---|---|---|---|---|
| 0 | Front_Face_Culling | Culling: No | Sprite (Quad): No | Triangles: No | Strip: No? | Super_Vertex_Index: No | Goraud Shading: No | Reuse_Global_Params: No | Env maps: No |
| 1 | Back_Face_Culling | Culling: Yes | Sprite (Quad): Yes | Triangles: Yes | Strip: Yes? | Super_Vertex_Index: Yes | Goraud Shading: Yes | Reuse_Global_Params: Yes | Env map: Yes |
Environmental map To enable requires model MAGIC value at offset 0x00, being 0x04 or 0x05
Please note the values have been reversed by setting up specific debug modes against thousands of model data, therefore it's subject to change / updates as we find new parameters.
Credits: Egregiousguy for creating the awesome Excel bitflag form used for instant preview and data entry! MetalliC for providing missing bitflags + naming parameters!
| Type | Value |
|---|---|
| A | 0a 00 00 00 |
| B | 11 00 00 00 |
| C | 12 00 00 00 |
| D | 13 00 00 00 |
| E | 16 00 00 00 |
| F | 31 00 00 00 |
| G | 31 01 00 00 |
| H | 32 00 00 00 |
| I | 33 00 00 00 |
| J | 43 00 00 00 |
| K | 49 00 00 00 |
| L | 4a 00 00 00 |
| M | 51 00 00 00 |
| N | 52 00 00 00 |
| O | 53 00 00 00 |
| P | 56 00 00 00 |
| Q | 5a 00 00 00 |
| R | 69 00 00 00 |
| S | 6a 00 00 00 |
| T | 71 00 00 00 |
| U | 71 01 00 00 |
| V | 72 00 00 00 |
| W | 72 01 00 00 |
| X | 73 00 00 00 |