The final project includes support for normal mapping on both sphere and plane objects. In 3D computer graphics, normal mapping, or Dot3 bump mapping, is a texture mapping technique used for faking the lighting of bumps and dents – an implementation of bump mapping. It is used to add details without using more polygons.
The depth of field is controlled by 2 variables: focal length and Aperture. The focal length of the lens is the distance between the lens and the image sensor when the subject is in focus. The aperture can add dimension to your photos by controlling depth of field.
Other features include refraction, reflection and texture mapping of the surface. A phong diffused rendering model is also supported by the program. In addition, the program also allows scale, rotate and translate for all objects.
A bounding volume hierarchy (BVH) is a tree structure on a set of geometric objects.It is used to support several operations on sets of geometric objects efficiently, such as in collision detection and ray tracing. After implementing the tree structure the raytracing has become a lot faster