Expand description
KVX voxel models (Ken Silverman’s format) used by Blood for 3D items and decorations.
Layout of the first (full-detail) mip level:
i32 numbytes, xsiz, ysiz, zsiz, xpivot, ypivot, zpivot (pivots in 8.8 fixed point),
i32 xoffset[xsiz+1], u16 xyoffset[xsiz][ysiz+1], then per column a list of slabs
{u8 ztop, u8 zleng, u8 cull, u8 colors[zleng]}. Offsets are relative to the start of
the xoffset table. The file ends with a 768-byte palette (ignored: colours are indices
into the game palette).