Courses‎ > ‎Computer Graphics‎ > ‎Konstantinovich‎ > ‎

2019-05-01 Lights but no moving camera or actions.

posted May 1, 2019, 10:15 AM by Konstantinovich Samuel
Due: 8am Monday 5/6

Implement the Phong Reflection model with flat shading. (Note: if you look up information online, do not confuse this with Phong Shading).
  • You should be calculating I once per polygon.
  • Remember to limit I to be in the range [0, 255]. Some of the sub calculations must be restricted to [0,255] so that negative values do not cancel out light.
  • There are a lot of user-defined values in lighting calculation, eventually, we will to be able to set them in our scripts. For now, pass them around to the necessary functions, and set them in either your main/parser functions. This is modeled in the provided source code.
  • Once again, our robot friend is not a great test for lighting, boxes in general are not good since they have very few polygons. 
github repo: mks66-lighting
Comments