Stage vertex formats 0x01 and 0x03 (st03, the Lost Palace)
| bytes | 0x01 (24 B) | 0x03 (32 B) |
|---|---|---|
| 0–11 | position, 3 × f32 | same |
| 12–15 | packed normal (below) | same |
| 16–19 | UV, 2 × s16 / 4096 | same |
| 20–23 | shade colour, BGRA8 | same |
| 24–31 | — | tangent @24, binormal @28, packed like the normal |
- Packed normal (u32): signed
11:11:10, X in bits 0–10, Y in 11–21, Z in
22–31, each divided by 1023/1023/511, pointing
out of the surface (not
negated). Verified on st03: 98.3 % decode to
unit length; the plaza floor under the player
start decodes to +Y and the undersides above it
to −Y, and normals agree with the triangle
winding once every buffer’s triangles are
reversed (see pdconv’s header comment). Until
11-02 the converter negated the normal and kept
the game’s order, which turned whole stages
inside out (floors −Y; drawn double-sided, it
only showed in lighting). Inspect raw vertices
with
pdconv --stats. - Shade colour: always grey on st03 (R=G=B; mean 0.875, p10 0.5, p90 1.0), alpha is not opacity. It is baked shadowing, not the light colour.
- Lighting: the stage is lit at runtime by the stage’s light script (see “Stage light script” and “Stage shaders” below); the shade colour multiplies the whole lit result.
- Textures on st03 are DXT1/DXT5; decoding them as standard BC1–3 (R in the high 565 bits) is correct. An R/B swap looked closer to the footage only because the lighting was missing.