Search found 31 matches

by Nacho
Tue Jul 20, 2010 2:08 pm
Forum: General Bullet Physics Support and Feedback
Topic: Error serializing
Replies: 4
Views: 3512

Re: Error serializing

I see that in bFile::parseInternal, the search for 'SDNA' is in all file, not only the header of chunk: char *blenderData = mFileBuffer; int sdnaPos=0; char *tempBuffer = blenderData; for (int i=0; i<mFileLen; i++) { // looking for the data's starting position // and the start of SDNA decls if (!mDa...
by Nacho
Tue Jul 20, 2010 12:31 pm
Forum: General Bullet Physics Support and Feedback
Topic: Error serializing
Replies: 4
Views: 3512

Re: Error serializing

Hi Erwin,

I'm sorry but the file size is about 7'7 Mb (compressed) and the size of attachment is limited to 2 Mb. Can I send you by other way?


Thanks,
Nacho.
by Nacho
Wed Jul 14, 2010 11:17 pm
Forum: General Bullet Physics Support and Feedback
Topic: Error serializing
Replies: 4
Views: 3512

Error serializing

Hi, I use serialize utility for save my btBvhTriangleMeshShape. Generally, it works. But now I've found a problem: Sometimes, when serializing btQuantizedBvh (btQuantizedBvh::serialize), the values in m_quantizedContiguousNodes .m_quantizedAabbMax[..] and m_quantizedContiguousNodes .m_quantizedAabbM...
by Nacho
Sat Jun 12, 2010 4:13 pm
Forum: General Bullet Physics Support and Feedback
Topic: btCollisionShape::setLocalScaling seems to have no effect
Replies: 4
Views: 4174

Re: btCollisionShape::setLocalScaling seems to have no effec

In the btCylinderShape class, the virtual method setLocalScaling is no overwrite, and when you call it, the btConvexInternalShape::setLocalScaling is calling, that only set the m_localScaling member. Copy setLocalScaling from btCapsuleShape.h to btCylinderShape.h (for example after getRadius method)...
by Nacho
Thu May 13, 2010 12:01 pm
Forum: General Bullet Physics Support and Feedback
Topic: debugDrawObject "logic" from btCollisionWorld to btIDebugDra
Replies: 2
Views: 2645

debugDrawObject "logic" from btCollisionWorld to btIDebugDra

Hi, Should it be possible to change the draw forms of each primitive from btCollisionWorld::debugDrawObject to btIDebugDraw. Nowadays, in btCollisionWorld::debugDrawObject there are things like: case CAPSULE_SHAPE_PROXYTYPE: { const btCapsuleShape* capsuleShape = static_cast<const btCapsuleShape*>(s...
by Nacho
Tue Mar 09, 2010 8:22 am
Forum: General Bullet Physics Support and Feedback
Topic: Bug adding contact point with scaled cylinder shape
Replies: 2
Views: 2456

Re: Bug adding contact point with scaled cylinder shape

ups! Indeed, I do that mistake. :oops:

Thanks for open my eyes.
Nacho.
by Nacho
Mon Mar 08, 2010 10:12 am
Forum: General Bullet Physics Support and Feedback
Topic: Bug adding contact point with scaled cylinder shape
Replies: 2
Views: 2456

Bug adding contact point with scaled cylinder shape

Hi, I see that when a capsule collide with a scaled cylinder, the distance1 in btPersistentManifold is erroneous. In btGjkPairDetector::getClosestPointsNonVirtual, before call output.addContactPoint, the data is computed correctly, but in btManifoldResult::addContactPoint, the localA and localB are ...
by Nacho
Mon Feb 15, 2010 11:30 am
Forum: General Bullet Physics Support and Feedback
Topic: btSphereShape Question
Replies: 2
Views: 2385

Re: btSphereShape Question

It's normal to see two pyramids and no, that is not the way bullet makes approximation to a sphere. It's only for render purpose.

See btIDebugDraw::drawSphere. You can derivate your own DebugDrawer class and write your sphere draw function.

Nacho
by Nacho
Thu Sep 17, 2009 2:42 pm
Forum: General Bullet Physics Support and Feedback
Topic: Easy question about Ray Test
Replies: 3
Views: 3061

Re: Easy question about Ray Test

In btCollisionWorld::ClosestRayResultCallback there is a member called m_collisionObject (really is member of RayResultCallback class). It tells you the collide object. btCollisionObject* pColObject=ray.m_collisionObject; When you get it, you would want know if it is a rigid body, a ghost...: if( pC...
by Nacho
Mon Jun 08, 2009 10:13 pm
Forum: General Bullet Physics Support and Feedback
Topic: Link errors with VS2008
Replies: 4
Views: 4874

Re: Link errors with VS2008

The LNK2005 errors are because you are using /MD and /MDd, as you say, but in Bullet lib you are using other runtime lib format (/MT or /MTd). You must use Bullet ReleaseDLL. It generates .lib, no .dll because the only diference is the "Runtime Library" option. If you need MSVCR90.dll libr...
by Nacho
Mon Apr 27, 2009 11:31 am
Forum: General Bullet Physics Support and Feedback
Topic: Quaternion's values...
Replies: 1
Views: 3103

Re: Quaternion's values...

The limits for the quaternion's values are [0,1] when it represent a rotation. The quaternion must be unitary to represent rotation: sqrt(Qx*Qx+Qy*Qy+Qz*Qz+Qw*Qw)=1 If the rotation axis (unitary) for quaternion is ax, ay, az and rotation angle around axis is angle, then, the quaternion's components ...