Page 1 of 1

btBvhTriangleMeshShape assert failure

Posted: Wed Jul 30, 2008 6:32 pm
by fullmetalcoder
Why does btBvhTriangleMeshShape keep throwing me cryptic assert failures whenever I try to create one?

Code: Select all

src/BulletCollision/CollisionShapes/btOptimizedBvh.h:355: void btOptimizedBvh::quantize(short unsigned int*, const btVector3&, int) const: Assertion `point.getX() <= m_bvhAabbMax.getX()' failed.
Anyone knwos what may cause this and how to get rid of it?

Re: btBvhTriangleMeshShape assert failure

Posted: Wed Jul 30, 2008 8:15 pm
by reltham
I got this one when I have invalid vertex/index data.

Also, how are you creating one?

Re: btBvhTriangleMeshShape assert failure

Posted: Wed Jul 30, 2008 9:13 pm
by fullmetalcoder
Actually there are only a couple of meshes which lead to this assert failure... Most tri mesh load fine but this keeps failing whatever I try. The trouble is I really don't know what this mesh is for (I'm loading level data generically from a serialized scene graph) and what it looks like. As I'm loading it the exact same way I'm loading the others I have troubles figuring out what's wrong...