Ageia PhysX problem

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Ageia PhysX problem

Post by needforhint »

hello,
I have a problem integrating PhysX to irrlicht, but the heart of the probelm is in PhysX not irrlicht. When I call NxActor::setGlobalPose() function with a correct matrix parameter and then afterwards call NxActor::getGlobalPose() function I don't receive the matrix I was setting with setGlobalPose(). So how to set actor's matricies?
what is this thing...
Falcon
Posts: 36
Joined: Sun Jan 13, 2008 9:24 pm
Location: Z_California

Post by Falcon »

Would say that's not a problem for the Irrlicht forum. But just to let you know, I'm planning on using PhysX in my project, and Praetor is working on creating a new Wrapper for Irrlicht.
-< Dante >
< Industry Senior QA Tester>
< IT Project Manager>
< Independent Programmer>-
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

there are no forums about Ageia PhysX you see
what is this thing...
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Yeah. That is partly the right forum, but the wrong section. It is a good forum to ask on though because numerous people on here have worked with PhysX programming.

One thing you could do so that people can help you with your problem easier, is to post your code. I am almost certain that those setters and getters aren't the problem, but it is instead the code around it.
TheQuestion = 2B || !2B
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Halifax.Karma++();
gheft
Posts: 34
Joined: Mon Jul 30, 2007 4:11 am

Post by gheft »

when you call setGlobalPose() it only tells the simulation where to move the actor, it doesn't actually change the matrix. you won't get the matrix back until after you've called simulate and GetPhysicsResults()(maybe).

you might get weird results if you change the pose of a dynamic actor so you might want to use a kinematic actor(actor->raiseBodyFlag(NX_BF_KINEMATIC)) and use moveGlobalPose()

btw there is a forum on the ageia developer website, but its not very active...
Praetor
Posts: 42
Joined: Wed Jun 20, 2007 2:31 am

Post by Praetor »

Yeah, I'm working on a wrapper for irrlicht and PhysX, I'll post in the project announcement section when I have a version ready (not quite sure when, I'm gonna be busy over the next while, but I hope to make a good amount of progress this weekend). It'll be released under the same license as irrlicht (zlib).

Regarding the globalPose stuff my guess would be the same as gheft's, I think Ageia has to update before the getGlobalPose() function will return the correct value.
"Surely we don’t need to waste resources on pathfinding; they just need to walk along the shortest route from one place to another." - EA Producer
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Dorth wrote:Halifax.Karma++();
Huh? Good or bad karma?
TheQuestion = 2B || !2B
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Good, of course. And while we're on the subject...

Praetor.Karma++();
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Dorth wrote:Good, of course. And while we're on the subject...

Praetor.Karma++();
Ah, okay. Disregard my message to you then, I interpreted it wrong. Sorry. :lol:
TheQuestion = 2B || !2B
Post Reply