Sign in to follow this  
JesusGumbau

Efficient trimesh collisions in ODE

Recommended Posts

JesusGumbau    124
Hi you all, I have an small question about ODE physics engine: I want to integrate it into my game engine, which is the most efficient way to setup the scenary geometry (very big triangle soup)? Should I create only one TriMesh object and pass it into ODE? Or maybe should I split the geometry intro small pieces and pass them all to ODE as smaller trimesh objects? (in order to benefit from QuadTree or hash table Spacing)? Thats the only question I have about ODE. Thanks in advance.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Helou!

I am thinking this same problem right now.

My suggestion: create new geometry class for the scenery (In ODE manual: 10.8. User defined classes).

Any comments?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Just noticed, I cannot use single geom for whole scenery, because if AABB too big (for example x is from -1000 to 1000) ode generates some errors:

ODE Message 3: LCP internal error, s <= 0 (s=nan)
ODE Message 3: LCP internal error, s <= 0 (s=nan)
ODE Message 3: LCP internal error, s <= 0 (s=nan)
ODE Message 3: LCP internal error, s <= 0 (s=nan)

So maybe I'll just manually generate all contacts of other eoms with scenery.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this