Cannot use single-precision meshes in double-precision mode

ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway

Cannot use single-precision meshes in double-precision mode

Post by ola »

Hi,

I'm using Bullet with double precision mode, in my application, but still have various render meshes that uses single precision floats for their vertexes. Recently I started optimizing the collision shapes and started using the btTriangleIndexVertexArray to re-use these meshes.

That didn't work, as Bullet then assumes the meshes are in double precision mode too. So I made a patch, which is attached to this issue:
http://code.google.com/p/bullet/issues/detail?id=213
With this it's possible to select the mode (either float or double) for the mesh.

Best regards,
Ola