6 char ID[4]; //id of file, always "IDP3"
7 int Version; //i suspect this is a version
9 char FileName[68]; //sometimes left Blank...
10 //65 chars, 32bit aligned ==
12 int BoneFrame_num; //number of BoneFrames
13 int Tag_num; //number of 'tags' per BoneFrame
14 int Mesh_num; //number of meshes/skins
15 int MaxSkin_num; //maximum number of unique skins
17 int HeaderLength; //always equal to the length of
19 int Tag_Start; //starting position of
21 int Tag_End; //ending position of
22 //tag-structures/starting
23 //position of mesh-structures
24 int FileSize; //size of file
30 char Name[64]; //name of 'tag' as it's usually
31 //called in the md3 files try to
32 //see it as a sub-mesh/seperate
34 //sometimes this 64 string may
35 //contain some garbage, but
36 //i've been told this is because
37 //some tools leave garbage in
38 //those strings, but they ARE
40 float Postition[3]; //relative position of tag
41 float Rotation[3][3]; //the direction the tag is facing relative to the rest of the model
52 char Creator[16]; //i think this is the
54 //but i'm only guessing.
60 char ID[4]; //id, must be IDP3
61 char Name[68]; //name of mesh
63 //32 bit aligned == 68 chars
64 int MeshFrame_num; //number of meshframes
66 int Skin_num; //number of skins in mesh
67 int Vertex_num; //number of vertices
68 int Triangle_num; //number of Triangles
69 int Triangle_Start; //starting position of
70 //Triangle data, relative
71 //to start of Mesh_Header
72 int HeaderSize; //size of header
73 int TexVec_Start; //starting position of
74 //texvector data, relative
75 //to start of Mesh_Header
76 int Vertex_Start; //starting position of
77 //vertex data,relative
78 //to start of Mesh_Header
79 int MeshSize; //size of mesh
85 char Name[68]; //name of skin used by mesh
87 //32 bit aligned == 68 chars
93 int Triangle[3]; //vertex 1,2,3 of triangle
100 float TexVec[2]; //Texture U/V coordinates of vertex
107 //!!!important!!! signed!
108 signed short Vec[3]; //vertex X/Y/Z coordinate
109 unsigned char EnvTex[2]; //enviromental mapping texture coordinates