Overflow in AABB

lily
Posts: 3
Joined: Fri Jul 27, 2007 4:23 pm

Overflow in AABB

Post by lily »

Hi,

some of my cars were disappearing and I find that it was due to an Aabb overflow, thanks to the comments in btDiscreteDynamicsWorld::updateAabbs().

After investigations, just init the predictedTrans fix it.
But I could not tell you why in some cases it wasn't set properly, and I don't know if I have just moved the bug somewhere else.

Code: Select all

void	btDiscreteDynamicsWorld::integrateTransforms(btScalar timeStep)
{
	BEGIN_PROFILE("integrateTransforms");
	btTransform predictedTrans;
	predictedTrans.setIdentity(); <==========
lily
Posts: 3
Joined: Fri Jul 27, 2007 4:23 pm

Re: Overflow in AABB

Post by lily »

Hi again, not fixed at all in fact...

I use a compound with a boxshape like in the vehicledemo.
I try to find which is the first variable which toggle the overflow, I find a lot of -1.#IND000 in body origin, basis and linear velocity. The first one to have this value seems to be the velocity, but I dont' succeed finding what is causing such a value.

The simulation behave correctly, except this -1.#IND000 which pop when it wants, propagates and kill my car :(

I you have an idea feel free to answer. thanks.
DevO
Posts: 95
Joined: Fri Mar 31, 2006 7:13 pm

Re: Overflow in AABB

Post by DevO »

Hello,

Are you using bt32BitAxisSweep3 ???

If yes then try to replace this line in btAxisSweep3.cpp

Code: Select all

:btAxisSweep3Internal<unsigned int>(worldAabbMin,worldAabbMax,0xfffffffe,0x7fffffff,maxHandles,pairCache)
with this one

Code: Select all

:btAxisSweep3Internal<unsigned int>(worldAabbMin,worldAabbMax,0xeffffffe,0xefffffff,maxHandles,pairCache) ///!!!
I was getting AABB overflow with btStaticPlaneShape some times in old Bullet version with out this change!
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Overflow in AABB

Post by Erwin Coumans »

Can this problem be reproduced in a demo of the the latest Bullet 2.62?

If so, please attach a (modified) zipped demo .cpp to this topic.

Thanks in advance,
Erwin