This project shows the results of casting rays from a spherical light in a random direction from random points on the light. An infinite plane with an aperature containing a biconvex lense is placed between a sensor and the light. In addition, a red sphere is placed next to the light. Importance sampling is used to send rays towards the pinhole after bouncing off the sphere. Because of the high dynamic range of the images, I used tone-mapping by clamping to see the red sphere. The final images are gamma corrected.
I computed the focal point using the thin lense equations. For this scene, I used a focal length of 0.67 which resulted in radii of size 0.6733 for the lense with an aperature of 0.035 (35mm).