r/GraphicsProgramming • u/JBikker • Sep 25 '26
TinyBVH 1.9.0 Now Available
TinyBVH is a header-only, dependency-free library for BVH construction and traversal.
Version 1.9.0 for the first time is out-performing Intel's Embree!
Using it is as simple as:
BVH bvh;
bvh.Build( (bvhvec4*)myTriData, triangleCount );
bvh.Intersect( ray );TinyBVH can be used from C/C++, WebGPU and Python. Generated BVHs can be used in OpenGL (compute), OpenCL, Vulkan and DirectX12.
New in 1.9.0:
- Greatly improved ARM NEON support for Android & macOS
- Templated doube/float support
- Ray bundle support (WiVeC), including TLAS/BLAS traversal
- Accurate voxel intersections
- Hair rendering example (roving capsules)
- Global refactoring, AI assisted
- Vulkan and DXR benchmarks
- Improved included threadpool
- Optimizations to CWBVH
- ...and lots more.
Check it out: https://github.com/jbikker/tinybvh
90
Upvotes
View all comments
Show parent comment
3
u/JBikker Sep 25 '26
That should be pretty easy. You can just turn every box into 12 triangles and build a BVH over it. If you also have moving objects (the player in the video) you can put that in a separate BVH and build a TLAS over the BVH of the level and the BVH for the player. TinyBVH comes with short examples demonstrating concepts like those.