Page 1 of 1

Chainmail simulations with Bullet Physics

Posted: Mon Dec 24, 2012 4:24 pm
by RBD
A couple of chainmail (maille armour) simulations using Bullet Physics:

YouTube: Festive chainmail physics simulation test
YouTube: Chainmail and Basket of Balls in Cornell Box

Metals parts procedurally composed out of compound btCapsuleShape primitives.

Re: Chainmail simulations with Bullet Physics

Posted: Thu Jan 03, 2013 8:16 pm
by magicchicken
Wow!

I have been trying to weeks to build just a chain that looks half that good. Just creating this section of the chain would be nice:
Image

I saw you say that you're not using constraints. You just build the shapes and place them to interlock, and let the collision system handle the rest? What class of collisionShapes are you using? Any code snippets you can share regarding the properties you set on each body?

Re: Chainmail simulations with Bullet Physics

Posted: Sun Jan 06, 2013 4:20 pm
by RBD
All metal parts, except spheres, are btCompoundShape composed of btCapsuleShape primitives, including the chains; no special properties...

The full details on the chain: each metal ring is one btCompoundShape composed of 8 btCapsuleShape primitives (could use as little as 6 or as many as desired); (physics shapes are invisible / don't have any mesh) the visible render mesh is simply a stretched torus (as high or low resolution as you need); the centre of gravity is in the middle and mass is material density multiplied by the volume of a cylinder of the same length; the more load you put on a chain, the higher you will need sim steps (and/or sub-steps); note that btCapsuleShape work best when margin is the entire radius (might become the default in the future, see issue 446).
Image

Re: Chainmail simulations with Bullet Physics

Posted: Sun Feb 10, 2013 3:14 pm
by charles_west
If I may ask, what method did you use to integrate Bullet with Blender? Did you use the Blender game engine or roll your own solution?

Thanks.

Re: Chainmail simulations with Bullet Physics

Posted: Sat Feb 16, 2013 8:58 pm
by RBD
Using built-in Blender Game Engine.