Bullet Cloth Simulation
Presented by: Justin Hensley
Implemented by: Lee Howes
Course Agenda
OpenCL Review!
OpenCL Development Tips!
OpenGL/OpenCL Interoperability!
Rigid body particle simulation!
<15 minute Break>!
Bullet cloth!
!
Galaxy n-body simulation!
!
Visualization with OpenCL!
!
Questions!
!
Bullet physics
• An open source physics SDK for games (http://bulletphysics.org)
- Popular physics SDK
- Zlib license for copy-and-use openness
- Development led by Erwin Coumans of AMD (formerly at Sony)
- Cloth, rope, and deformable volumes
• Collaborations on GPU acceleration
- Cloth/soft body and fluids in OpenCL and DirectCompute
- Fully open-source contributions
• Includes
- Rigid body dynamics, e.g.
- Ragdolls, destruction, and vehicles
- Soft body dynamics
© Copyright Khronos Group, 2010 - Page 3
OpenCL physics is…
Rigid bodies
Fluids
Cloth
© Copyright Khronos Group, 2010 - Page 4
Introducing cloth simulation
• A subset of the possible set of soft bodies
• For real-time generally based on a mass/spring
system
- Large collection of masses (particles)
- Connect using spring constraints
- Layout and properties change properties of cloth
© Copyright Khronos Group, 2010 - Page 5
Springs and masses
• Three main types of springs
- Structural
- Shearing
- Bending
© Copyright Khronos Group, 2010 - Page 6
Springs and masses
• Three main types of springs
- Structural
- Shearing
- Bending
© Copyright Khronos Group, 2010 - Page 7
Springs and masses
• Three main types of springs
- Structural
- Shearing
- Bending
© Copyright Khronos Group, 2010 - Page 8