CS 684, Homework #7

Direct Lighting

Ryan Graham


The purpose of this assignment is to render the cornell box using direct lighting.
The luminance at a given point is aproximated by:

    L(x', lambda) =  S(x, x') * (R(x', lambda) / PI) * (cos(theta) * cos (theta') / ||x-x'||^2) * area_of_light

where:
         x' = the point in space at which to evaluate the luminance
         x  = a uniform random position on the light

                        | 1  if x' is not shadowed by another object
         S(x, x')  -|
                        | 0  Otherwise

         R(x', lambda)  = Objects reflected color based on the given light wavelength
         theta = angle between normal at x and L (the light vector)
         theta' = angle between the normal at x' and L
 

Here are the results:
 

49 samples/pixal
256 samples/pixal


Comments:  Ryan Graham