IrrPhysx 0.3 - Nvidia Physx 2.8.1 wrapper

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You'll have a choice of capsule or box controllers (though I'm not really sure where box controllers are useful... probably is some situation!)

Stair climbing is something that I'll have to test out actually so thanks for that, hadn't considered it!

EDIT:
Actually stair climbing should work fine really as the capsule controller will walk up and over small boxes, I'll make sure that the necessary parameters are exposed though so you can tweak them for your own setups.
Image Image Image
Austin
Posts: 4
Joined: Wed Mar 18, 2009 5:45 pm

Post by Austin »

404 on the source
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yup it's always 404'd.. Sio2 hasn't been around since posting it either so I've not been able to get hold of it to get it into the real IrrPhysx :(
Image Image Image
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

It looks awesome... i downloaded and launched it, after 1 s fps slow down from 300 to 3... it speed up to 400fps when there is no fluids... how can i fix it?


Some of errors:

Code: Select all

Physx acceleytot hardware not found, simulation wikk be done in software

Code: Select all

IrrPhtysx PERFOMANCE WARNING - could not create fluid in hardware. Creating a software fluid

Code: Select all

Invalid Operaiton: Attempt to create PhysX hardware when physX hardware not accesible
..etc
balor
Posts: 5
Joined: Wed Mar 04, 2009 4:48 pm
Location: PL

Post by balor »

JP wrote: bit of info for everyone waiting for character controllers, seems like i've managed to get them working pretty well, just gotta do some tidying up on the implementation then i may well release a new version with this in.
JP, I just can't wait to see the 0.3 version with character controllers!! I'm using your physx wrapper in my present project and I'm really up to see these controller implemented :D
Personally I think that's the last essential thing in IrrPhysX to be implemented, fluids etc. are just an extra to me :)

Btw. IrrPhysX 0.2 works great for me! Great job!! Just dunno why I needed to recompile sources to force it to work with my VS2008 compiler.
JP wrote:that's basically my plan from now is to release a new version as soon as there's a new feature
Wise, wise...
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well character controlls should be out pretty soon hopefully... I'm having an absolute nightmare with normal actors and setting their rotations each frame... basically if the rotation values aren't within -45 to +45 it just borks up horribly and rotates manically on all axes until it gets back into that range... bizarre and annoying... That's all that's holding me back from the next release really so I'm gonna hopefully get a bash at it tomorrow on my day off from work and if I can't get it working properly I'll probably just take out the rotation stuff for now and release again and get it fixed in the future (hopefully!), it's not an essential part of the next release so that should be fine.

Malgodur, there's no error really. You computer does not have hardware available that will accelerate Physx (i.e. a Physx PPU card or a recent GeForce GFX card which supports Physx acceleration). So that means all the calculations are done on the CPU, which is generally fine but it's not ok for fluids as they need a lot of calculation time so will kill the performance on a system without hardware acceleration (sio2 explains this in his post).

Having said that the last bit you post about the invalid operation is something to be slightly concerned about in a way, possibly an oversight by sio2, not much of a problem though as no one can use the fluid stuff as the source isn't available!
Image Image Image
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

I tried to compile sio example without fluids, compiler coulld not find physxloader.lib .... where can i download that file?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You need to install the necessary Physx SDK and system software as described in the proper IrrPhysx thread, did you not read that? If you have done that and it's still not working then possibly you've got a different path to Sio2 so check the linker settings and make sure the paths are correct for where you installed Physx.
Image Image Image
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

I just fixed it, there was wrong link in vcproj.....

Omg, old game example still crash after loading flagpole_physx.ms3d,
new gameexample compiled with removed fluids crash with irrlicht.dll bug..

Code: Select all

?createDevice@irr@@YAPAIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@@Z
Please help me...
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Compiled with wrong version of Irrlicht? Sio2 may have been using Irrlicht 1.4.2, are you using Irrlicht 1.5?
Image Image Image
Steel Style
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Post by Steel Style »

Well Jp it's seem that's basicly controller are not made to avoid rotation, as far I know that what I saw in PhysX Doc. In my projet I just put a capsule controller for movement then I handled rotation via the SceneNode.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I've got no problems with the character controller rotation, that works a treat, at least on just the Y axis, not tried it on multiple axes... It's just normal actors like boxes which I can't seem to keep updating their rotations without them freaking out... :s
Image Image Image
fmx

Post by fmx »

I had the same problems when i used Physx in my (non-irrlicht) game last year - I couldn't set the correct angles for physx-actors because PhysX always gave weird results.
I tried with eular rotations, matrices and also with quaternions, but the results were always the same.

Apparantly physx does some of its own internal calculations to determine orientation. Now that i think about it, maybe you could try relative (object space) rotations?
Have you asked on NVidia's forum yet?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Aye I've asked for help on the Phsyx forums but they're really useless... No one really reads them I don't think...
Image Image Image
flyrxue
Posts: 3
Joined: Tue Jul 11, 2006 1:33 am

where to download irrphysx V0.3?help me&#6528

Post by flyrxue »

where to download irrphysx V0.3?help me!
who can give me a copy?thanks!
my email:flyrxue@163.com
thanks again!
Post Reply