CS 7650 - Homework 3

In this assignment, we use a spherical light source to emit rays with random direction to the sensor. The random is done by selecting 2 angles of the spherical coordinate. Photons that fall inside the sensor board will also have a uniform-random generated wavelength. Then the rest of program just behaves like homework 2. Below are the result images, they are all bright at the center and faded out farther away.

100 Rays



10K Rays



1M Rays



10M Rays



20M Rays



50M Rays



70M Rays



100M Rays