• Advertisement

Archived

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

Mesh->DrawSubset

This topic is 6181 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

In the ID3DXBaseMesh object, there is a method that you use to draw a polygon of a mesh, DrawSubset(PolygonNumber), as most of you know. My question is, how would you get the coordinates of the points of the subset that you are drawing ? This is essential for collision detection and Y correction since nobody on the face of the earth has any info on using D3DXIntersect (which I can''t get to work).

Share this post


Link to post
Share on other sites
Advertisement
G''day!

Check out ID3DXBaseMesh::GetAttributeTable. It will give you a list of the subsets and their Vertex offsets & counts. Then you can grab the VB and poke away.


Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites

  • Advertisement