Game Development Community

GMK and PhysX

by Yuri Dobronravin · in Game Mechanics Kit · 08/04/2009 (5:28 am) · 18 replies

I got a lot of emails about integration of GMK and PhysX library for T3D.

Some users were unable to build T3D with PhysX and got a bunch of linker error.
The root of the problem is that projects generated by Torque Box from "Full template" do not have any PhysX support by default.

Adding PhysX to a project is not very easy task (please refer to T3D docs and forums). But you can use a "PhysX Demo" instead of "Full Template" generated project as starting point to add GMK.

Otherwise you can use Bullet as physics library. Installing Bullet is easier than PhysX and you will need nothing but GMK installation package and GMK Programmers Guide instructions.

#1
08/14/2009 (11:15 pm)
Disregard what I previously said about instructions for Bullet. You guys are pretty thorough. But I would like to know is that you include both a bullet and bullet_2_75 directory for use. Since I know 2.75 is the newest version do you just use that?
#2
08/16/2009 (6:29 pm)
@yuri
I was wondering if the issue with PhysX was solved? I just tried installing GMK for beta 4 and received 2 linker errors!
#3
08/17/2009 (8:38 am)
@Ron Nelson
Bullet 2.75 and 2.74 version are included because there are some bugs in bullet 2.74 that were fixed in 2.75 version, however 2.75 crushes on certain machines. You should use the latest version (the one from bullet folder) and if it will crush on your machine revert to 2.74 version.
Hopefully guys from Bullet team will release a new update soon.

@Kory James
There's no issues with PhysX and GMK. It works on T3D with PhysX. You have to use "PhysX Demo" project as a starting point and apply GMK to it.
What link errors have you got?
#4
08/19/2009 (8:56 pm)
I was using the FPS(warrior camp). I'll just re-compile and move everything to the PhysX demo, thanks Yuri!
#5
08/20/2009 (3:31 am)
I was wondering if there was any chance you would be adding PhysX support to TGEA?
#6
08/20/2009 (8:28 am)
@Ron Nelson
PhysX can be ported to TGEA, it will require time, but it's possible to do. Can I ask why do you need this? Bullet is quite comprehensive solution and I see almost no advantage PhysX can provide. PhysX even doesn't have source code.
#7
08/20/2009 (1:39 pm)
Well my reason is retty simple. Duncan Gray and I did some work (Mostly Duncan) on a spline road system that uses polysoup collision. I was able to get it to work with PhysX Triangle Mesh Cooking system, but have had far from successful results with Bullet.
#8
08/20/2009 (10:41 pm)
Yeah nevermind, I figured it out. Thanks.
#9
09/12/2009 (7:15 pm)
@Yuri Dobronravin

>>however 2.75 crushes on certain machines.

What kind machines crash with final version of Bullet 2.75?
It requires SSE2, are people still using machines without this?

Thanks,
Erwin
#10
09/13/2009 (11:10 am)
nothing, nevermind
#11
09/14/2009 (9:10 am)
@Erwin Coumans
>What kind machines crash with final version of Bullet 2.75?
>It requires SSE2, are people still using machines without this?

I don't sure, however I've some users told me that they were unable to get 2.75 running with 2.74 running just fine. Maybe it's because of 2.75 beta status.

#12
09/14/2009 (2:10 pm)
There have been no reports of problems running Bullet 2.75 on the Bullet physics forums or google issue tracker (http://bullet.googlecode.com)

Do you have contact information for any of those users?

>>Maybe it's because of 2.75 beta status.
Bullet 2.75 final version is released now.

Thanks a lot,
Erwin
#13
09/15/2009 (8:33 am)
Erwin!!!

I only recently realized who are you :)
I'm very pleased to see you here at our forum.

Guys, he's a creator of Bullet Physics!!!


Bullet is a great product. I personally think it's the best physics lib available and I encourage users to choose bullet instead of other libs.

I will try to contact these users, to find out what was the problem and whether it has been fixed already.
#14
11/15/2009 (10:29 am)
I have a couple questions about Bullet included with GMK.

first there are to bullet folder included with GMK. One is just bullet and one is Bullet 2.74. what version is the plain bullet folder?

second with 2.75 out should I get that and use it over the 2.74, unless the unversioned folder is 2.75. If so what parts from the download are needed for use with GMK. there seems to be alot of extra things in the download.

#15
11/15/2009 (11:39 am)
I downloaded version 2.75 of Bullet and compiled my own libraries. I then substituted the newest files from the download for the ones that are included in the GMK. Earlier versions of Bullet had a problem with AMD processors so I use the latest version available.
#16
11/15/2009 (3:23 pm)
so if I want to use whats in the GMK folder do I use the folder called Bullet or Bullet_2_74
#18
11/16/2009 (8:52 am)
thanks, thats what I did. testing things a bit now.