[Odejava] Third Party Collision library

Hi all,
In the Ode docs, it says that the ODE has two systems, the Physics Simulation System, and the Collision system.

It also says that you dont have to use their collision system, all you have to do is give:

Normal of contact
Position of Contact
Depth of Contact

to the simulation to work. Since ODE doesn’t handle TriangleAccurate collision detection on dynamic bodies. I was thinking of integrating jME’s own collision system with ODE’s simulation system.

Has anyone had any experience with this? I would greatly appreciate it…

DP

I believe Justin (of j3d.org) got Odejava working with a custom collision library, or at least looked into it.

Will.

I’ve looked into it, but couldn’t get it working currently. There’s a number of requirements for this to work that are incorrectly implemented in the core of odejava right now.

The biggest issue is that the native API calls are the wrong way around. The odejava bindings to the native calls have the native calls going from Java to the native code. However, they need to be the other way around so that the native code can call Java code.

I have intentions of looking into this, but I’ve been exceedingly busy for the last couple of weeks getting ready and then participating in the I/ITSEC conference. Now that things have cleared up, I will be heading back into the odejava work to get a few other bits cleaned up (common logging etc) to get ready for Xj3D M10 release within the month. I doubt I’ll be able to solve the custom collision detection code within that timespan though.

I am seriously considering this as an option to combine ODE and jME even furthur and stop data redundancy. E.g. I initialise a Terrain in jME. It has its own set of vertices. Now i have to copy the data over to ODE so it can do collision. And with large indoor maps, its not going to be pretty :slight_smile:

Thats why im doing it. Its also possible to get trimesh-trimesh collision detection too.

If you could keep me posted on your progress Mithrandir, I would appreciate it. Also if you need any help with the matter (to do the labourious tasks :P) then im right here :slight_smile:

DP