btBvhTriangleMeshShape assert failure

Post Reply
fullmetalcoder
Posts: 29
Joined: Mon May 19, 2008 5:01 pm

btBvhTriangleMeshShape assert failure

Post 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?
reltham
Posts: 66
Joined: Fri Oct 12, 2007 6:28 pm
Location: San Diego

Re: btBvhTriangleMeshShape assert failure

Post by reltham »

I got this one when I have invalid vertex/index data.

Also, how are you creating one?
fullmetalcoder
Posts: 29
Joined: Mon May 19, 2008 5:01 pm

Re: btBvhTriangleMeshShape assert failure

Post 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...
Post Reply