Sign in to follow this  
Calin

[Solved]Index Buffer confusion

Recommended Posts

I'm a little confused on this so I'm trying to clear it out. How many indices should the Vertex Buffer contain if the mesh has a Index Buffer and 128x128 vertices. I presume it would be 16384 VB-indices and 98304 IB-indices. I have a mesh this size. When I open it with a mesh viewer to check the idices I get some very high VB indices for some faces, like 57511,57512,57513 or 56559, 56560, 13350. Aren't they supposed to be under 16384? I though for a moment they are IB indices but it can't be, on some faces the indices are not succesive ( i.e 56559, 56560, 13350.) Thanks. [Edited by - Calin on March 15, 2006 6:22:28 AM]

Share this post


Link to post
Share on other sites
What do you mean your mesh has a resolution of 128x128? If you have a 16 bit IB, you can only reference a block of 65536 indices. You could have more than that number of vertices though, if you use BaseVertexIndex when rendering with DrawIndexedPrimitive.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this