Realistic Ray Tracing

Homework 1 - Monte Carlo Summation
Homework 2 - Monte Carlo Integration
Homework 3 - Macbeth Color Checker XYZ
Homework 4 - Macbeth Color Checker
Homework 5 - Cornell Box
Homework 6 - Ward BRDF
Homework 7 - Mixture Density
Homework 8 - Participating Medium
Homework 9 - Rayleigh Scattering
Homework 10 - Subsurface Scattering
Homework 11 - Dielectric Material
Homework 12 - Final Image

Homework 11 - Path Trace Dielectric Materials

This extension to my path tracer enables a user to define dielectric materials such that refraction may occur. The images below show a generic use of the dielectric, by inserting several spheres within the cornell box with transmissive properties. The index of refraction for the spheres increases from 1.2 to 1.6 as the balls get higher in the air. The second image repeats this scene, however, it uses a refraction index that ranges between 1.4 and 1.5 for the different wavelengths of incoming light. The third image another use of the dielectric, to imitate a fisheye lens. Here, the camera is flipped upside down and a refractive sphere is placed in front of it (between the camera and the scene). After playing around with the size of the sphere, index of refraction, and the distance, the fisheye lens was achieved.
Single Refractive Index
Wavelength Dependent Refractive Index
Fish Eye Scene