CS7650 -- Program 3

Pankaj Nathani
pnathani@cs.utah.edu

Problem Statement

Assume the sensor is in the z=0 plane and its width is arranged from -1 to 1 and
it's height is between -(ny/nx) to (ny/nx). Emit photons uniformly from a sphere
with radius 0.1 and with center (0,0,0.1) and a uniform spectrum E(lambda) = constant.
For each photon:
  1. pick a random location on the sphere
  2. pick a random direction away from the sphere
  3. pick a random wavelength
  4. if the photon hits the sensor, do the same thing as in program 2

Solution & Results

From this assignment onwards, I have implemented two versions of tonemapping.
  1. First is Reinhard's tonemapping. I don't use L(white) factor which means all the luminance is brought within displayable range. I have chosen a value as 2.0
  2. Second is simple clamping the maximum value of luminance by a factor a where 0 < a <= 1. Any luminance above the clamping value is set to white.
1 million photons 20 million photons

Above images have been tonemapped by Reinhard's operator.