Jump to content
  • Advertisement
Sign in to follow this  
Matt Aufderheide

Batching D3DX meshes

This topic is 4622 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 my d3d engine i am using serveal hundred meshes for grass rendering. I dynamically reposition the meshes based on distance to camera. This way i can have apparently continuous fields of grass without using millions of models. But I am wondering if there is a way to optimize this further by batching all these meshes together and draw them all with one draw call. Is there an efficient way to batch D3DX Meshes? It seem I could use D3DXConcatenateMesh, but this seems like it is slow, plus i dont get the expected results. Is the best method? or is there a better way? Or is it just too much of a pain to batch meshes that are going to be moved around dynamically?

Share this post


Link to post
Share on other sites
Advertisement
Hmm, does anyone have any pointers on how to use D3DX Meshes with instancing mehtods? It seems D3DX has no interface native for this purpose, and i have to convert meshes to index buffers..

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!