CSE P576 Project 3 – Photometric Stereo

By Liam McGrath

 

My Lighting Direction and Depth calculations were not correct, so I loaded in the sample’s for these pictures.

 

I think I have a bug in normalOnSphere, which causes my lighting calculations to come out wrong.  My other lighting methods appear to be correct.  My normal calculations appear to be correct.  My albedos corrections appear to be correct.  It took me quite a while to figure out how to solve the depths, so I wasn’t able to debug that part of the code.  makeMMatrix errors at runtime, but hopefully I had the right idea there.