In this project we add bounding volume hierarchy (BVH) support to accelerate our ray tracer.
Build BVH for all triangular mesh objects in the scene.
Use BVH to avoid unnecessary triangle intersection computation.
Report render times with and without BVH.
The following source code files are provided to help you with this and upcoming projects. You are not required to use them, but it is highly recommened that you use some of them. Some of these files include additional code as compared to the same files in the previous project, so make sure to download them all again.
objects.h: Includes the description of the Sphere, Plane, and Triangular Mesh classes used by the xmlload.cpp file.