Game Development Community

PhysX - TGE Integration

by Kirk Haynes · in Torque Game Engine · 12/05/2006 (8:39 am) · 6 replies

I'm working on integrating PhysX into my TGE game. Can't get the horse out of the gate, need some assistance. Looking for anyone that has been able to get the PhysX SDK to load and run in a Visual Studio 2005 project.

#1
12/05/2006 (10:00 am)
This might help you VERY much ;)
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10258

Regards
Bardur
#2
12/05/2006 (11:05 am)
Or this one if you want mac and linux:

garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11767

*giggle*. It's ODE, not Ageia, but whatever :-)

Gary (-;
#3
12/05/2006 (11:44 am)
The problem I'm having is getting the PhysX SDK to load in Visual Studio 2005.

Here are the two current problems associated with using PhysXSDK 2.6.2, TGE 1.5, and Visual Studio 2005 from a clean copy TGE 1.5 SDK, and the PhysX 2.6.2 SDK (PhysX_2.6.2_SDK_Core.exe, PhysX_2.6.2_Tools.exe, and PhysX_6.10.25_SystemSoftware.exe on my Windows XP Pro)

1) Error 1 fatal error C1189: #error : custom definition of NX_CALL_CONV for your OS needed! c:\program files\ageia technologies\ageia physx sdk\v2.6.2\sdks\foundation\include\nx.h 34

It looks like the solution is to include WIN32 in the Preprocessor Definitions, is this correct?

Current Preprocessor Definitions for TGE 1.5 Debug(Win32): UNICODE;TORQUE_DEBUG;_CRT_SECURE_NO_DEPRECATE

Will adding WIN32 cause problems with TGE?

After putting WIN32 in the Preprocessor Definitions and creating a basic class to handle loading I run into the next problem.

2) NxCreatePhysicsSDK is returning NULL with error code NXCE_PHYSX_NOT_FOUND.
#4
12/05/2006 (12:29 pm)
@Kirk Haynes

I'm glad that there are people working on integrating PhysX into TGE. I've begun reading thrut the docs and working thru the tutorials in my spare time.
#5
12/05/2006 (12:58 pm)
Once I get past this first step, I think the integration will go very quickly. Unfortunately I'm quite stuck at the moment simply getting it to load. Perhaps I'll drop back to 2.5.1 and see if I can get that to work.
#6
12/14/2006 (3:41 pm)
I fixed the problem. I installed the wrong PhysX system software. I installed the correct version which is 6.11.01 and it works now. I expect to have PhysX integrated into my TGE game by Jan 2007.