Jump to content

View more

Image of the Day

「筋肉兄貴のスーパーラン!」
兄貴に立ちはだかるダンボール・・・(´・ω・`)
ムズい・・激ムズって感じにそろそろ変わってきます。
(o・ω・o)
 #indiedev  #indiegame #screenshotsaturday https://t.co/xKIzRQMdHm
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Physx - concave mesh

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 DDoS   Members   

312
Like
0Likes
Like

Posted 23 April 2013 - 09:30 AM

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 ?



#2 MaxDZ8   Members   

4990
Like
0Likes
Like

Posted 24 April 2013 - 03:14 AM

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.


Previously "Krohm"





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.