GRAPHICS PIPELINE

In this project I have used Matrix3D and Triangle classes provided by Professor McMillan.

REQUIREMENTS:

  • Normals are transformed correctly.
  • Backface culling is implemented.
  • Support for a directional and an ambient light sources is provided.
  • Per triangle shading with support for ambient and diffuse reflection (flat shading) is implemented.
  • Polygon clipping in z is implemented.
  • Z-buffering is implemented.


OPTIONAL:

  • Support for a point light source is provided.
  • Support for an arbitrary number of light sources is provided.
  • Specular reflections are added.
  • Per vertex shading using Gouraud interpolation is implemented.


APPLETS:



OBJECT FILES:



MY CODE: