how would i make this simulate on the gpu in bullet physics 3 i not understand how to implement the gpu rigidbody pipeline
btCollisionShape* fallShape = new btCapsuleShape(capsule_radius, capsule_height);
fallShape->calculateLocalInertia(mass, fallInertia);
btRigidBody::btRigidBodyConstructionInfo fallRigidBodyCI(mass, fallMotionState, fallShape, fallInertia);
btRigidBody* fallRigidBody = new btRigidBody(fallRigidBodyCI);
Basic bullet physics rbd to open cl gpu
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Basic bullet physics rbd to open cl gpu
You can't access the OpenCL experimental physics pipeline through the Bullet 2.x API, it is a full rewrite. There is some OpenCL demo in the ExampleBrowser that you can enable, but you will need to build OpenCL knowledge to use it (and possibly fix kernel compilation on your platform).
-
- Posts: 73
- Joined: Fri May 01, 2015 8:23 pm
Re: Basic bullet physics rbd to open cl gpu
do you now of any good places to learn OpenCL?Erwin Coumans wrote:You can't access the OpenCL experimental physics pipeline through the Bullet 2.x API, it is a full rewrite. There is some OpenCL demo in the ExampleBrowser that you can enable, but you will need to build OpenCL knowledge to use it (and possibly fix kernel compilation on your platform).