In this project one diffuse red sphere and a plane contained a pinhole were added to the scene in the previous project. The photons that hit the red sphere were reflected or absorbed probabilistically. The sphere also moved so we could capture motion blur. I didn’t use color gamma correction this time.
 
Project 4 - Pinhole Camera
575M photons
static sphere
1B photons
static sphere
Preliminary results
While I was generating the final images, I discovered that my code has some bugs. First, my lambertian reflection was not working properly and I was not normalizing the colors in the right way.
Final results
 
When also showing the light sphere, we can’t see the red sphere because of the relative energy between them, so I opted for not showing it when applying motion blur. 4 billions photons were emitted in all images.
 
static sphere without light sphere
static sphere with light sphere
motion blur