Code changes and debug shapes

omek

22-06-2010 09:42:51

Hi,
1) I'm using ogre bullet and made some changes to the code, to allow different Ogre/Bullet scale and to allow offset between the Graphic Mesh to the Rigid Body.
I would like to submit my changes back if anyone is interested.
Can anyone tell me how to do it?

2) I still have a bug which I think is not related to the changes I made.
If I turn the debug shapes on and off few times with a call to setShowDebugShapes. some times the debug shapes stop showing and even if I call :

setShowDebugShapes(false);
setShowDebugShapes(true);

afterward, they are not rendered.
Has anybody has any idea why this happen?

Thanks
Omek

Fish

22-06-2010 13:00:49

1) You can submit patches to the patch tracker. For offsetting the mesh from the rigidbody you may want to consider using two separate nodes, one for the rigidbody and a child node for the mesh.

2) Are you using the latest Bullet source from SVN? There was a patch applied for a similar issue.

- Fish

omek

22-06-2010 15:17:09

1) I'll try, it may be a bit extensive patch.
I started with the solution you suggested but I also add the option to connect a CollisionObject to an Ogre Bone, and then there is no option to connect an intermediate node.

2) Yes, I'm using the latest version and I think my issue is a bit different.
When I with a debugger I see that the DebugShapes exist and are in the correct position, but they are not rendered (they are rendered on the first call to setShowDebugShapes(true), but subsequent calls to setShowDebugShapes(false); and then setShowDebugShapes(true); won't get them showing again.

-Omek