Jump to content
  • Advertisement

Archived

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

HDATA

.X files and triangles ...

This topic is 5599 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!