.X files and triangles ...

Started by
2 comments, last by HDATA 21 years ago
Hello, In a part of my program i need to get the model triangles (faces) ... How can i be able to access .x triangles ?! Regards,
Advertisement
As far as I am concerned, if you load an x file mesh, then you may have a pointer to a ID3DXMesh, which has a method for returning its number of faces. It''s ID3DXBaseMesh::GetNumFaces(), that simply returns a DWORD with the number of faces...

Hope this helps, if not, tell us more of the situation, i.e: the way you are loading your mesh...

No matter where you go... &this
No matter where you go... &this
you can make call to something like:
LockVertexBuffer
and
LockIndexBuffer

in the mesh class (look in the doco)
and then u can read the polys
Thanks alooot supagu and DerMeister for helps

This topic is closed to new replies.

Advertisement