KinematicController + bug + comments + triangleGeometry

lombera14

30-09-2009 21:52:16

Hello everyone!!!

I'm recently learning about BloodyMess, namely version 1.5.5 since I believe it's a very good and useful project with a great future but just if all of us give a piece of our effort for achieving this. Keep in mind PhysX and OGRE are powerful engines.

Looking for an answer for my question I read a thread in this forum

(viewtopic.php?f=6&t=10804) in which things got hot because of a "bug", so to speak, in KinematicController class.

So, I decided to track down that bug in order to find an answer and guess what??, the problem was in the KinematicController's constructor class where two lines were commented, apparently unintentionally. Those lines are the ones who create the shape and insert it into the prototype, without which you can't create actors. That's why actor was always NULL. Please let me know if those lines were commented intentionally.

So, I fixed this and after rebuilding the lib, the KinematicController class became functional again.

So I really hope people can now get advantages of this class.

On the other hand, as I said I'm new using NxOgre, I have a question I would like somebody answer to me.
The point is that even when now KinematicController is functional, it doesn't collide with scene geometries, namely
triangleGeometries. Collisions with convex objects are perfect.

I know probably the point is that as no one of them does physics......but probably Betajean have thought a workaround for this

Is there something I'm currently missing???? or Do I need to enable some flags or something like this??.

I will appreciate any help you can give me

Thanks in advance.

Lombera

betajaen

30-09-2009 22:01:13

Thanks for your interest, and your tip.

The other day, I tried to get it working with SceneGeometries and didn't get far. Other things have diverted me from trying to get back to it.

I'll get to it though. One of the milestones of NxOgre 1.6.0 is to have a working Kinematic Controller.

lombera14

30-09-2009 22:30:50

Hi Betajaen!!!

Wow, what a quick response!!!. People acknowledge things like this.

As for collisions of KinematicControllers against SceneGeometries, is there something I can do in the meanwhile???. I'm not as much as an expert but I have some experience working with physic engines, so I should be able of understanding the most of things.

Thanks in advance.

Lombera

betajaen

30-09-2009 22:38:37

No. I wrote it based off the PhysX Character Controller source code, which is a bit of a mess and spread out over many files. Don't get me wrong, it's pretty good, it's just I wish Ageia/NVIDIA cleaned up a bit and added some comments.

I expect it's something stupid. I need to set up a good testing framework to test it with first though, my new Ogre Cake code is a good basis for that. Then I'm sorted.


However, I need to finish off CCD Skeletons and cleaning up the mesh serialisation code in Detritus first!

lombera14

30-09-2009 23:04:52

Ok, that's good. I also expect it's a stupid issue. I can wait, no problem at all. Just wish you success with the other stuffs you are currently doing

Well, If it's not much to ask, I would like you keep me updated about your progress with this issue.

Thanks in advance

Lombera

betajaen

30-09-2009 23:09:39

Usually I do, and I tend to give out my changes to NxOgre now very quickly now - thanks to github.