Raytracing with concave objects

amirishere
Posts: 7
Joined: Wed Mar 26, 2008 9:26 am

Raytracing with concave objects

Post by amirishere »

I am planning to do ray tracing with concave objects and wanted to know which approach would be faster:
1) Decomposing into convex meshes.
2) Using bsp maps. Is that possible with ray tracing?
3) Using the convex meshes themselves. ie btBvhTriangleMesh ... I think?
4) Any other proposed method.
Murphy
Posts: 32
Joined: Fri Aug 31, 2007 6:36 am

Re: Raytracing with concave objects

Post by Murphy »

I just use the convex mesh (btBvhTriangleMeshShape) and the speed of casting rays seems fast enough.
amirishere
Posts: 7
Joined: Wed Mar 26, 2008 9:26 am

Re: Raytracing with concave objects

Post by amirishere »

Ok I had confined myself to the raycast demo where the bullet internals are used to do raycasting without looking at other possibilities. After your comment I went and had another look and found the btCollisionWorld::ClosestRayResultCallback.
Thanks
Lets go and see what this has in store.