Warp_Z - widberg/fmtk GitHub Wiki

Chum World WARP
ImZouna Warp_Z

Skybox

struct Warp_Z : ResourceObject_Z {
    u32 flags;
    Vec3f vertices[8];
    f32 one;
    std::assert(one == 1, "one != 1");
    u32 zero;
    std::assert(zero == 0, "zero != 0");
    f32 radius;
    std::assert(radius == 50, "radius != 50");
    Name_Z material_anims[6];
    Name_Z node;
    std::assert(node == 0, "node != 0");
    DynArray_Z<Name_Z> anim_frames;
    std::assert(anim_frames.size == 0, "anim_frames.size != 0");
};

Faces made up of hardcoded indices of the vertices array.

<0, 1, 2, 3>
<4, 5, 6, 7>
<1, 2, 5, 6>
<0, 1, 4, 5>
<2, 3, 6, 7>
<0, 3, 4, 7>

Given the sample vertices from USA1.DPC's Warp_Z

(-50.0, -50.0,  50.0)
(-50.0, -50.0, -50.0)
( 50.0, -50.0, -50.0)
( 50.0, -50.0,  50.0)
(-50.0,  50.0,  50.0)
(-50.0,  50.0, -50.0)
( 50.0,  50.0, -50.0)
( 50.0,  50.0,  50.0)

The cube could look something like this

4------7.
|`.    | `.
|  `5--+---6
|   |  |   |
0---+--3.  |
 `. |    `.|
   `1------2
⚠️ **GitHub.com Fallback** ⚠️