Sign in to follow this  
Followers 0
DDoS

Physx - concave mesh

1 post in this topic

hi, we're using physx for a small racing game. since our cars are working now we want to include a mesh for the racing track

I know i can do that with a height field, but i'd prefer to import a (convex) triangle mesh. since the complete "racing level" is a concave mesh (and physx only likes convex meshes) i guess i have to split my static racing level mesh into convex meshes

am i correct? how can i achieve that ?

0

Share this post


Link to post
Share on other sites

I don't use PhysX myself but I'd be very surprised if it had such limitation.

You will likely have to look into triangolar meshes. Tri-soups. Generic Triangle meshes. I don't know how they are called.

In general, it should have 

  1. Specific shapes such as sphere, box, cylinder
  2. convex hull
  3. tri-soups

I have some google hits on a thing called PxTriangleMeshGeometry

Again, I don't know for PhysX (I use bullet) and I advice you to use them as little as possible. They're quite slower than standard hulls. Decimating triangle count is a must (I generally decimate by 4).

However, keep in mind that their continuity information between adjacent faces is often the only way to make stuff roll or slide correctly.

So, triangle soups suck. But we need them and use them anyway.

0

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  
Followers 0