I have created an object in a 3D Program called Anim8or. Anim8or is a very very simple program, doesn’t do much other than create 3D objects. One of their nice features, though, is the .C file exporter. It exports the entire object to a .c file containing a few numeric variable arrays. The variables hold ALL of the inforation to create the object.
They are:
I’d guess that the mesh01_indices variable holds indices of triangles. So it has numberOfTriangles*3 entries, and each triplet references the vertex data arrays for that triangle except material stuff, which has it’s own indices. Try it with a simple model consisting only of triangles and see if the number of indices and number of vertices match up.
<edit>
btw, remember you can only use a single index for all vertex attributes in OpenGL, so you have to duplicate a vertex if it has to have different attributes per face.
</edit>
[This message has been edited by harsman (edited 09-24-2001).]