Difference between btOptimizedBvh and btDbvt

sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Difference between btOptimizedBvh and btDbvt

Post by sparkprime »

I thought it was possible to modify a bvh triangle mesh too? Is the only difference that you can add things to the bvh used by compound shape? Why can there not be some unification there?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: New btInternalEdgeUtility has been added

Post by Erwin Coumans »

Please don't keep on adding off-topic discussions to the btInternalEdgeUtility topic, it takes me too much time to keep on splitting posts. Just start a new topic next time.
sparkprime wrote:I thought it was possible to modify a bvh triangle mesh too? Is the only difference that you can add things to the bvh used by compound shape? Why can there not be some unification there?
btBvhTriangleMeshShape is a static structure and the btOptimizedBvh/btQuantizedBvh is designed for static structures with no change in topology. The btOptimizedBvh supports refitting without changing the topology.

btCompoundShape is a dynamic structure and it has a btDbvt, which is a dynamic AABB tree that can deal with change in topology.

Those acceleration structures are optimized for different purposes, and we have no plans to mix them up or unify them for Bullet 2.x. Bullet 3.x is a different story.
Thanks,
Erwin