Some problems with Trimesh shapes (no wireframe and assert)

IFMaster_2005

05-06-2008 20:50:54

Hello, i'm trying to create a trimesh shape with my application, and it works, but the debug drawer don't render the shape as wireframe.
I'll take a look at the OgreBullet code and the drawWireFrame function almost the code is comented, if i uncomment the code, can i see the trimesh shape?

Another problem is, if i try to create a dynamic rigidbody with a trimesh shape, and assertion is trowed, it seems something about localInertiaTensor, but i really dont know what it is, but if i ignore the assert, the application works well (or at least that is what i think).

Thanks in advance for your help (and again sorry about my poor english).

IFMaster_2005

06-06-2008 21:14:22

It seems i solve the problem with the assert, really at this moment i dont need dynamic objects with a trimesh as a shape, the asserts doesn't be trowed when static shapes are used.

But I still without seeing the trimesh shapes, i hope some one can help me with these because i need it in order to see if the shapes are in the correct place, if any one knows another way to see the shapes it will be very usefull for my project.

Again thanks in advance and sorry about my poor english.

IFMaster_2005

08-06-2008 18:50:02

No one?

I create the trimesh in Ogre in order to see it, but at this moment, in my application, OgreBullet tells me the entities are colliding, but the visual meshes are not colliding, i need some method to see the trimeshes with the debug drawer.

adam23

08-06-2008 21:34:58

I've had a hard time getting the debug drawer to work correctly. I'll add a ton of rigid body dynamics objects to a scene, and only a few of them will render with there wireframe collision mesh. I've never been able to get trimesh collisions to work. I'm hoping someone will respond to this with an answer to your problem, but i am in the same situation.

IFMaster_2005

09-06-2008 15:36:10

Seems this problem affects to more people :P I will try to uncomment the code in the drawWireFrame method and recompile.

Thanks any way for your reply.