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.
Raytracing with concave objects
-
- Posts: 32
- Joined: Fri Aug 31, 2007 6:36 am
Re: Raytracing with concave objects
I just use the convex mesh (btBvhTriangleMeshShape) and the speed of casting rays seems fast enough.
-
- Posts: 7
- Joined: Wed Mar 26, 2008 9:26 am
Re: Raytracing with concave objects
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.
Thanks
Lets go and see what this has in store.