Shading - Writeup
Phil Katz and Stephen St.Vincent
home   |   images
Lab description


Lab summary:

For this lab, we gave our graphics library the ability to handle lights and shading. We can handle both ambient lighting and point-source lighting. To do this, we created a light object that has a position, type, and color, and placed these in our environment. We did not implement including the lights in the modules, so any movement of lights must be handled separately using matrix transformations.

We then implemented Gouraud shading, accumulating the contributions from each light source. Below is the required image, which was created from a polygon file. After several hours of tinkering and debugging, it's finally perfect.


Required image
Questions:
  1. What extensions did you do for this assignment, how did you do them, and how well did they work?
    We did not do any extensions for this lab.