Game Development Community

Help with physx add into build

by Kirchgessner · in Torque 3D Professional · 04/14/2010 (10:52 pm) · 6 replies

Using the full template to start a new build of 1.0.1 and having lots of trouble. Ive gotten the source files added to the engine (t3d\physics\physx) and the other two additional projects nxCharacter nxuStream, so far I see no differences between the that one and mine. Whenever I run the engine It starts, I click play, select the level, and then it crashes. Read the console log, it states

UDP initialized on port 0
% - Initializing Tools
% - Initializing Tools Base
% - Initializing Base Editor
% - Initializing World Editor
- Initializing Datablock Editor
% - Initializing Debugger
% - Initializing Decal Editor
% - Initializing Gui Builder
% - Initializing Material Editor
% - Initializing Mesh Road Editor
% - Initializing Particle Editor
% - Initializing Physics Tools
No physics plugin exists.
% - Initializing River Editor
- Initializing Road and Path Editor
% - Initializing Shape Editor
Engine initialized...
Window focus status changed: focus: 1

Then nothing loads.
Im running Win7 64bit, this is the first attempt at building with physx into it. All previous attempts at adding source worked flawlessly, with tried and working builds. Seems Im missing something?
Any ideas will be greatly appreciated.

#1
04/15/2010 (4:22 am)
Set the environment variable $PHYSX_SDK_PATH, with the path of your PhysX installation.

And add to your: YOURPROJECTFOLDER/buildFiles/config/project.conf
/ / We support both bullet and physx
includeModule ( 'bullet');
includeModule ( 'physx');

after the line
addProjectDefine("WIN32");

Regenerate your project with: YOURPROJECTFOLDER/generateProjects.bat

Then reopen the project with VisualStudio and rebuild all.
#2
04/15/2010 (4:48 pm)
Thanks that worked great.
Curious things are happening and not sure why tho.

I get character bouncing when touching certain sides, and I also get indestructible objects? (same object in physx demo blow apart like they are supposed to)
#3
04/15/2010 (10:52 pm)
Quote:I get character bouncing when touching certain sides, and I also get indestructible objects?

This question was asked before here, and no one seems to want to answer. As i said in the thread i linked, i believe it has something to do with the PyshX-players-collision screwing up.

Hopefully someone (who knows) will answer this question, or else PhysX is almost useless... Sorta...
#4
04/16/2010 (9:41 pm)
Also does anyone know where to grab the physx plugin for max that torque needs? I downloaded the new one from nvidia but everything i export crashes. So I tried the open source 1.0.5 exporter and joints dont work.

Thanks.

Also Im trying to debug the jumpy issues with this, not sure where to begin but Im looking between this and the tgea one to see whats the differences.
#5
04/17/2010 (12:23 pm)
Brian, what version of Max are you using ?

2008:
http://docs.torquepowered.com/torque-3d/official/content/documentation/Artist%20Guide/Max%20Guides/pxplugin2008.dlm

2009:
http://docs.torquepowered.com/torque-3d/official/content/documentation/Artist%20Guide/Max%20Guides/pxplugin2009.dlm
#6
04/17/2010 (3:50 pm)
2009 but ive tried downloading that dlm by itself (doesnt work). I also tried installing 1.0.5 and replacing the dlm and the joints are still busted. So i don't know what to do with it all.

Has anyone ever gotten the 2.0 exporter working with torque? I tried it but had no luck, I might have to try it again.