Im having trouble getting my collision meshes to collide properly. Im able to create a GeomTrimesh for my ground using a height map and the collisions work great. But if I load a model, for example a 3ds model with the starfire loader, and then create a collision mesh from that the collisions dont work right (ie moving objects go through it usualy).

In the java3d api if I use a TriangleArray to create the collision mesh like this:

I'm not 100% sure that the version of ode we are using supports non-static tri-mesh. Also, I'm not sure if it has tri-mesh/tri-mesh support.

The better option, even if these options were supported is to approximate the shape with primitive Geoms for collission. In my tank game, I have the tank mesh files + XODE xml files which contain the primitive approximation of the tank (and also defines the joints etc). So my xith3d engine gets a nice mesh, ODE engine gets a few boxes. Using tri-mesh's without good reason (terrain for example is a good reason) is not advised as you'll lose out on performance. When you combine a few primitive Goems together you can still have quite realistic collission with complex shapes.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org