CS184: Niels Joubert
 
   
  Niels Joubert's Foundations of Graphics web page.
'to make, little by little, the faulty good, the good better, and the better perfect.'
 
 
Negative Space Follows...

Assignment 3

This assignment examines simple shading models - specifically, the Phone Illuminiation Model. Source Code will be posted after the due date. For now, enjoy the pretty pictures!

Diffuse Material with Single Light Source

./shader -kd 0.4 0.8 0.5 -pl 2.0 2.0 1.5 0.1 0.4 0.9

Specular Material with Single Directional Light Source

./shader -ks 0.4 0.8 0.5 -dl 2.0 2.0 1.5 0.1 0.4 0.9 -sp 20

Specular Material with Single Point Light Source

./shader -ks 0.4 0.8 0.5 -pl 2.0 2.0 1.5 0.1 0.4 0.9 -sp 20

Specular and Diffuse Material with Single Light Source

./shader -kd 0.4 0.8 0.5 -ks 0.4 0.8 0.5 -pl 2.0 2.0 1.5 0.1 0.4 0.9 -sp 20

Multiple Light Sources

./shader -kd 0.7 0.7 0.7 -ks 0.7 0.2 0.2 -pl 4.0 0.0 2.0 0.7 0.1 0.1 -pl 0.0 4.0 2.0 0.4 0.5 0.9 -pl -4.0 -4.0 1.0 0.4 0.8 0.5 -pl 0.0 0.0 1.0 0.4 0.5 0.9 -sp 20.0

Assignment 2 Extra

I also implemented a simple animation of lights - moving the primary light source by either increading or decreasing its (x,y) position through keyboard interaction. Unfortunately I do not have a nice animated GIF of this up yet...
Bump Mapping
I hoped to implement actual bump mapping. I did not finish the bump map implementation itself, but wrote the hooks for preturbing normals to create a rough surface. A comparison between non-bumpmapped and bumpmapped: