Created with C++ and OpenGL
Libraries used- GLAD, GLFW, GLM, JSON, STB
Here's a BVH Tree Depth Level 5 Visualization
Other Examples
References:
https://threejs.org/examples/webgl_raycaster_bvh.html
https://en.wikipedia.org/wiki/Bounding_volume_hierarchy
https://www.haroldserrano.com/blog/visualizing-the-boundary-volume-hierarchy-collision-algorithm