UFO: Alien Invasion
|
#include <qfiles.h>
Data Fields | |
byte | v [3] |
byte | unused |
byte dMD2TriangleVertex_t::v[3] |
scaled byte to fit in frame mins/maxs The three bytes represent the x, y, and z coordinates of this vertex. This is not the "real" vertex coordinate. This is a scaled version of the coordinate, scaled so that each of the three numbers fit within one byte. To scale the vertex back to the "real" coordinate, you need to first multiply each of the bytes by their respective float scale in the dMD2Frame_t structure, and then add the respective float translation, also in the dMD2Frame_t structure. This will give you the vertex coordinate relative to the model's origin, which is at the origin, (0, 0, 0)
Definition at line 73 of file qfiles.h.
Referenced by R_ModLoadAliasMD2MeshIndexed(), and R_ModLoadAliasMD2MeshUnindexed().