A single vertex position (FMeshVert), packed into one 32-bit word.
11 bits for X and Y and 10 for Z, each a fixed-point value - X and Y divide
by 8, Z by 4 - and each sign-corrected by subtracting 256 above the midpoint.
The packing costs precision but quarters the size of a mesh, which mattered a
great deal in 1998.
The layout is game-specific rather than version-specific: Deus Ex widens it
to 64 bits, 16 bits per axis at 1/256 precision, which cannot be told apart
from the standard form by the package version alone. Choosing between them
would need engine-fork detection, which this reader does not attempt, so
the Deus Ex unpacking is recorded here:
A single vertex position (
FMeshVert), packed into one 32-bit word.11 bits for X and Y and 10 for Z, each a fixed-point value - X and Y divide by 8, Z by 4 - and each sign-corrected by subtracting 256 above the midpoint. The packing costs precision but quarters the size of a mesh, which mattered a great deal in 1998.
The layout is game-specific rather than version-specific: Deus Ex widens it to 64 bits, 16 bits per axis at 1/256 precision, which cannot be told apart from the standard form by the package version alone. Choosing between them would need engine-fork detection, which this reader does not attempt, so the Deus Ex unpacking is recorded here: