Jump to content
  • Advertisement
Sign in to follow this  
experiment

DX Mesh to physics library

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

DX Meshes are pretty cool, so are physics simulations in games, so I was thinking it would be even cooler if you could just use DX Meshes with a physics library that's designed to handle them.. Anyone knows of such library..?

Share this post


Link to post
Share on other sites
Advertisement
No. A triangular mesh that's used for rendering makes a very poor physics collision object, because the polycount is far too high. It's much more common to build the collision geometry up as a set of primitives.

Share this post


Link to post
Share on other sites
Indeed, your average comcave mesh is pretty expensive to handle in physics simulations. This is precisely why physics SDK's like PhysX provide tools that allow you to simply meshes or create convex hulls. Although with PhysX if you did want to make a convex mesh directly from your D3DX mesh, it's pretty easy to do so. All you do provide a pointer to your vertices and your indices, and then have the API "cook" a mesh to be used in your physics simulation.

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!