Jump to content
  • Advertisement
Sign in to follow this  
stupid_programmer

Question about index buffers

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

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
Advertisement
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
Thanks, I would probably just stick with .x but messing around a bit with the Max SDK has got me interested in creating a exporter. Even if it will probably be functionally less advanced as the .x format.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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