Hi for all, I like share this BMD Structs from MU Client Models, maybe can be usefull to some person.
Code:#pragma pack(push, 1) typedef struct tagBMD_HEADER { BYTE signature[3]; // "BMD" BYTE encoding; // 0x0a = normal BYTE sourcefile[32]; // smd file name WORD value1; // number of materials (?) WORD value2; // ? WORD value3; // ? WORD vertexcount; // number of vertices WORD value5; // number of normals (?) WORD texcoordcount; // number of texturecoords DWORD facescount; // number of faces } BMD_HEADER; typedef struct tagBMD_VERTEX_DATA { float v1, v2, v3, v4; } BMD_VERTEX_DATA; typedef struct tagBMD_VALUE5_DATA { // normals (?) float v1, v2, v3, v4, v5; } BMD_VALUE5_DATA; typedef struct tagBMD_TEXCOORD_DATA { // texcoords float v1, v2; } BMD_TEXCOORD_DATA; typedef struct tagBMD_INDEX_DATA { // face indices BYTE type; BYTE unkwnon0; // vertex indices WORD i1; WORD i2; WORD i3; WORD unknown1; // ? WORD i4; WORD i5; WORD i6; WORD unknown2; // texture coordinate indices WORD i7; WORD i8; WORD i9; BYTE reserved[40]; } BMD_INDEX_DATA; #pragma pack(pop)



Reply With Quote


