[ODE] which method is best for large scale terrains?

Geoff Carlton gcarlton at iinet.net.au
Tue Oct 3 16:23:59 MST 2006

Matthew Reid wrote:
> Hi.
> I need a way to do fast collision detection on large terrain (2048x2048 
> quads or more). I've tried the terrainY contribution, but performance with 
> this is very poor. A single ray check across the terrain can potentially 
> lead to millions of calls to the getHeight() callback, and even for a single 
> vehicle with about 200 calls, my game performance takes a huge hit (25% 
> performance drop).
I wonder if the new trimesh geom optimises "straight down" ray tests?  
I'm not sure if it does, but it would reduce each vertical ray test to a 
single getHeight() call.  It might be worth checking out.


More information about the ODE mailing list