[ODE] How does everyone resolve world collision?

Adam D. Moss adam at gimp.org
Sat Jun 25 11:40:00 MST 2005

Vast wrote:
> I know I use one _HUGE_ trimesh to represent my 3d world, but what about 
> everyone else? What are other possibilities, and what did people do to 
> resolve the collision detection with the world before trimesh collision 
> was checked in into ODE?

I've been using ODE without trimeshes for a few years.  What I do
is place (in the modelling program, in separate layer) a big static
hashspaced soup of boxes and spheres around the place to approximate
the world geometry mesh for collision.

While it's straightforward to get reasonable results this way,
it's also extremely boring, time-consuming and somewhat imperfect
in various ways, especially as worlds get more complex.

I'm still taking this approach for moveables, but am currently
moving towards using a runtime-simplified world mesh for collision
with static geometry.  I expect that this world mesh will be modelled
as submeshes for each of the collision material types, mostly out of
toolchain considerations.  Apart from that, I expect that I will use
the one-giant-collision-trimesh approach as far as possible, as OPCODE's
internal representation is very good, though I'm a little worried that
this will produce a much-too-sloppy AABB on the ODE side, causing too
many redundant collision callbacks and probes.  Still too early for me to

Adam D. Moss   -   adam at gimp.org

More information about the ODE mailing list