Original Post
I can say that the book is excellent and exactly what I needed. These days I''m trying to load an ms3d file using book''s code. In fact I''m rewriting the code in order to focus on the format. But I have problems. I am trying to make a class for static models so I have used the code to load the vertices,the faces,the meshes and the materials.I use the same procedure with book''s in order to read the file till the joints section and then I stop. There is no problem with reading the vertices. The number which I read from the file (using the "thug jump.ms3d" file) is indeed 502 which is the number MilkShape shows for the file(in model statistics). But the number of triangles isn''t right. I read from the file a number of 32000 and something and MilkShape shows 982 triangles for the model. So if I try to use memcpy() to copy the triangles in memory which I have allocated before, using that number of triangles, the program crashes!I can''t find what''s wrong since the code seems absolutely right ( after all it''s exactly like book''s, I "parse" the file exactly the same way) , so if anyone has an idea what''s wrong,please help me.And something else:Where can I find the MS3D specification?
Thanks in advance