What do i need to run on GPU with PhysX-3.2.1?

“Sorry for doubleposting! I have post this first at OpenGL thread and don’t know how to move it.”

Hi,

I am new at gpraphics programming and trying out the PhysX-3.2.1 SDK. I created a PxRigidStatic plane and am dropping PxRigidDynamic actors (spheres/boxes) on it. Everything works fine and the physics seems to behave correctly but it only runs on CPU.

I have read some documentation parts and looked at the sample code but it’s to complex and hugh for beginners. So I have some questions:

Do I need a PxParticleSystem to force computing physics on GPU?

If yes, do I need CudaContextManager and CUDA?

Does someone have a very simple and small example or a really good tutorial?

I would appreciate any help.

Thanks in advance.

Regards
Nik

I created a PxRigidStatic plane and am dropping PxRigidDynamic actors (spheres/boxes) on it
Only particles and cloth support GPU acceleration.

Thanks,

but I have another question.

Would it increase the performance if I use the PxParticleSystem to drop the actors?

Regards

No, they are 2 different things. One is to simulate particles, while the others are to simulate rigid bodies. Unless you want your dropped actors to behave like particles. But you shouldn’t worry about running rigid bodies on GPU as PhysX is able to simulate a few hundreds to thousands rigid bodies, depending on different scenarios.