Local Illumination: Assigments


Required

1 - Get the library libshade.a . Save the file shade.tgz , decompress it with gunzip and use tar to create the directory "./i3d/base/shade" . Compile and install the library.

2 - Write a program that computes the diffuse illumination model at one point on a surface and different positions of a light source. Make the angle between the surface normal and the light direction vary between 0 and 90 degrees. The program should print the light source position and the value computed by the model.

3 - The same as in (3) for the specular illumination model.


Optional

4 - Write a interactive graphics interface for (2).

4 - Write a interactive graphics interface for (3).