Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Feb 10, 2017 5:08 pm 
Offline

Joined: Mon Aug 15, 2016 7:11 pm
Posts: 4
Hi,
I want to find out if two arbitrary triangle meshes collide.
I don't need it to be fast, as I'm not going to run it in real-time, but as a batch simulation, but I want it to be accurate.
I was using btGImpactMeshShape, which works correctly for most meshes, but for some of them it does not detect collisions (although debug drawing them I can see they are clearly colliding).

Are there any knobs in gImpact to make it accurate at the cost of the speed?
Alternatively, can I make btBvhTriangleMeshShape detect collisions with other btBvhTriangleMeshShapes?

Thanks in advance,
Piotr


Top
 Profile  
 
PostPosted: Fri Feb 10, 2017 6:14 pm 
Offline
User avatar

Joined: Tue Sep 30, 2014 6:03 pm
Posts: 300
Location: San Francisco
I don't know much about btGImpactMeshShapes but do I know btBvhTriangleMeshShapes cannot collide against each other.

If you aren't running real-time why don't you spend pre-processing time to generate convex decompositions of your mesh shapes and use that data to create accurate collection of btConvexHullShapes that are stored in a btCompoundShape?


Top
 Profile  
 
PostPosted: Mon Feb 13, 2017 8:50 am 
Offline

Joined: Mon Aug 15, 2016 7:11 pm
Posts: 4
Thanks for the suggestion.
I hope it won't lead to explosion in number of convex hull shapes, especially for shapes with many smooth convex surfaces (e.g. toroidal ones).
But there's only way too find out. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Google [Bot] and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group