Sign in to follow this  
stupid_programmer

Question about index buffers

Recommended Posts

I'm realizing that the .x format is not doing everything I want. Specificly I want to do more with material settings but still use ID3DXMesh to hold the actual mesh. So I'm trying to come up with a design and have a question about the index buffer. The index buffer doesn't actually have to be in any real specific order? Other then groups of three indicies need to form a triangle with clockwise winding. For example, the first set of indices is for a triangle facing front and the second set is for a triangle facing back. Once loaded into the mesh I can create a adjanency and then optimze the mesh in place.

Share this post


Link to post
Share on other sites
MJP    19786
Indeed the order doesn't matter, if you Optimize the mesh later it will be re-sorted anyway.

However keep in mind that if you use the Effect Instances capability of the .x format, you can have any number of arbitrary parameters of any type. They're designed to be used as default parameters for an Effect, but you could use the values for anything.

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