How do I get total Vertices from a mesh????
Hi, i would like to know how to get the total number of vertices within a particular mesh. Is there a specific function for this or do i have to access the vertex info?
Thanks.
D3DX mesh? If that is the case than there are functions for retrieving the number of vertices, faces, etc.
Hi the FireSoul,
Depending on if you use Managed DirectX or DirectX
[The Methods/Functions]
Native DirectX
ID3DXMesh::GetNumVertices Method : Retrieves the number of vertices in the mesh.
Managed DirectX
BaseMesh.NumberVertices Property : Retrieves the number of vertices in a mesh.
If you have any more questions please don't hestitate to ask.
Depending on if you use Managed DirectX or DirectX
[The Methods/Functions]
Native DirectX
ID3DXMesh::GetNumVertices Method : Retrieves the number of vertices in the mesh.
Managed DirectX
BaseMesh.NumberVertices Property : Retrieves the number of vertices in a mesh.
If you have any more questions please don't hestitate to ask.
Cheers!, i just thought it would be easier to ask here than to go searching for half an hour :).
Thanks again.
O yea, and its just normal direct x ( not managed).
Thanks again.
O yea, and its just normal direct x ( not managed).
hi,
you don't need half an hour, just open the SDK docs at ID3DXMesh. I did this right now :)
GetFVF if probably what you need now.
kp
you don't need half an hour, just open the SDK docs at ID3DXMesh. I did this right now :)
GetFVF if probably what you need now.
kp
Quote:Original post by FireSoul
is there a method for getting the number of bytes per vertex?
To complement what kovacsp said about ID3DXMesh::GetFVF() - you'll probably want to use D3DXGetFVFVertexSize() to decode the return value...
hth
Jack
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement