What about physics on GPU?

What about physics on GPU?

fxstudios's picture

Hello.

I just want to ask about GPU physics with Havok? I know that Havok Physics dont have its GPU based physicscalculations. But can I do them myself? As I know GPU calculations can be done throught shaders.

P.S.

I am sorry for my bad english.

Thanks,

Pavel

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
sean.thurston's picture

Hi Pavel,

I'm not sure how feasible this would be. I also don't believe you would be able to do it yourself.

Thanks,
Sean

Developer Support Engineer Havok www.havok.com
fxstudios's picture
Hi, Sean I thought that is possible. Because I tried to make my own physics engine with GPU physicscomputations.But myphysics engine was not good, joints were not working correct. And after some timeI chose Havok to use it in my engine and game. So as I understand its hard to optimize computations throught GPU. But are there any other ways to make full optimize on CPU. For example when objects on scene more than 2000, and speed do not slows down. Like I saw that in Leadwerks Engine 2 http://ru.youtube.com/watch?v=L4mk-z-Yjww&feature=related. P.S. I thought about GPU calculations are possiblewith Havok Physics after that video http://ru.youtube.com/watch?v=IJ0HNHO5Uik&feature=related
sean.thurston's picture

Hi Pavel,

I didn't mean it wasn't possible to do physics on the GPU in general (sorry for any confusion). I just didn't think you would be able to do it using Havok PC XS.

As far as performance goes, it is going to be based on the kind of shapes you are using, collision quality, type of simulation(multithreaded, continuous). There are a lot of factors. The docs are a good place to look for this information. You can try the Havok Physics->Miscellaneous->Performance Tips and Common Errors. There are other bits about performance throughout the docs. You can try running the Physics->Test->Performance demos to get some idea of what you can do. Although like I said performance is going to need to be optimized with the simulation in mind.

I hope this helps.

Thanks,
Sean

Developer Support Engineer Havok www.havok.com
fxstudios's picture
Thank you Sean for your fast reply. Ihope your tips would help me in my game development.

Thanks,

Pavel

Login to leave a comment.