Search the Community
Showing results for tags 'tod file format'.
Found 1 result
-
tod file format
mue posted a topic in Thirdwire: Strike Fighters 2 Series - Mods & Skinning Discussion
For those who may be interested... this is what I found out about the tod file format. Maybe someone can help me to fill the gaps. number variable type description of bytes 4 integer number of solid objects 4 integer number of alpha objects n objects data (see below) for each object: 4 integer ? 4 integer number of vertices 4 integer number of triangle vertices = 3 * number of triangles 4 integer texture id ? 32 * number of vertices vertex data (see below) 2 * number of triangle vertices triangle data (see below) 4 float ? 4 float object width ? 4 float object length ? 4 float object height ? 4 float rotation angle around z axis (in radians) ? 4 float ? 4 float object center position x ? 4 float object center position y ? 4 float ? 4 float ? for each vertex 4 float position x 4 float position y 4 float position z 4 float normal x 4 float normal y 4 float normal z 4 float texture coordinate u ? 4 float texture coordinate v ? for each triangle 2 short integer vertex index 2 short integer vertex index 2 short integer vertex index For testing purposes I extracted and displayed the object meshes from the vietnamC1.tod and vietnamG1.tod files (I think from the vietnam expansion pack). See the pictures below.