Archived

This topic is now archived and is closed to further replies.

HDATA

.X files and triangles ...

Recommended Posts

HDATA    122
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,

Share this post


Link to post
Share on other sites
DerMeister    122
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

Share this post


Link to post
Share on other sites
supagu    148
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

Share this post


Link to post
Share on other sites