From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:BSP (Quake)" |
|---|
| claim | "A Quake BSP face (lump 7) is 20 bytes: int16 plane, int16 side, int32 first surfedge, int16 edge count, int16 texinfo, 4 light style bytes (255 = unused), int32 lightmap byte offset (-1 = none)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:BSP (Quake)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "dface_t" |
|---|
| size | "0x14" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "planenum" |
|---|
|
| offset | "0x2" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "side" |
|---|
| notes | "non-zero: face uses the back of the plane" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "firstedge" |
|---|
| notes | "index into surfedges" |
|---|
|
| offset | "0x8" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "numedges" |
|---|
|
| offset | "0xA" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "texinfo" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint8_t[4]" |
|---|
| name | "styles" |
|---|
| notes | "light styles, 255 = unused slot" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "lightofs" |
|---|
| notes | "byte offset into the lighting lump, -1 = no lightmap" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "WinQuake/bspfile.h dface_t, MAXLIGHTMAPS 4 (commit bf4ac42)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Face lump length is a multiple of 20 in all 23 LibreQuake v0.09-beta BSPs." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "BSP face" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:20:51.271Z" |
|---|
| verifications | |
|---|