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:
- pick a random location on the sphere
- pick a random direction away from the sphere
- pick a random wavelength
- 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.
- 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
- 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.