btCompoundShape vs. btGImpactCompoundShape?

Which is better?

btGImpactCompoundShape/btGImpactConvexDecompositionShape
1
25%
btCompoundShape
3
75%
 
Total votes: 4

kate
Posts: 41
Joined: Thu Jan 08, 2009 11:20 am
Location: London, UK

btCompoundShape vs. btGImpactCompoundShape?

Post by kate »

Hi,

I just wondered if anyone had done a comparison of Bullet's own btCompoundShape, vs. the GIMPACT btGImpactCompoundShape/btGImpactConvexDecompositionShape - in particular, for convex decomposition. They both seem to serve the same purpose... so is one faster? More stable? Simpler to implement?

I'm trying to work out which one to use and am feeling too lazy right now to try to implement both ;)

Thanks!

Kate
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: btCompoundShape vs. btGImpactCompoundShape?

Post by Erwin Coumans »

It is best to just use the btCompoundShape.

We added GIMPACT because of btGImpactMeshShape, but it came with btGImpactCompoundShape/btGImpactConvexDecompositionShape too.

btGImpactCompoundShape/btGImpactConvexDecompositionShape will be likely deprecated in a future release.
Thanks,
Erwin
kate
Posts: 41
Joined: Thu Jan 08, 2009 11:20 am
Location: London, UK

Re: btCompoundShape vs. btGImpactCompoundShape?

Post by kate »

Hi Erwin,

Thanks for clarifying (again!); I thought that might be the case but saw that some people on here had mentioned using the GIMPACT version, so wondered if there was a reason to do so. I'll stick with btCompoundShape.

Kate
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: btCompoundShape vs. btGImpactCompoundShape?

Post by sparkprime »

I tried the decomposition gimpact shape but I found it to be very unstable. However it seems to work in the demo for the rabbits so it may be my triangle meshes are unsuitable. I didn't track the problem down as the standard gimpact triangle mesh seemed to work very well.

If possible I would be using a Bullet compound of standard Bullet shapes though. I have a very nice bowling pin that's made out of a cylinder, 2 spheres and a cone. It's very fast and behaves very realistically.