Montana Tech of The University of Montana
Computer Science & Software Engineering

CSCI 441
Computer Graphics
Spring 2018



ASSIGNMENT 7

The goal of this assignment is to familiarize yourself with lighting objects and getting user input via the mouse.

Modify the lit torus example from the book, posted on our website, so that the position of the light changes based on the movement of the mouse. Use the example for Blinn-Phong lighting This assignment is similar to exercise 7.1 at the end of the chapter in your text (although that one uses Gouraud lighting).

Hint: Your class will need to implement at least one additional Listener, and you will have to implement the methods for that interface.


Submit your java source code, and GLSL files to the Moodle dropbox for assignment 7. If there are any special requirements for compiling and running your code (such as a specific directory structure), make sure that you specify this in the comments of your code. If there is no special reason (like preserving a directory structure) for zipping your code, please, don't. I use a script to print out assignments for grading, and archive files mess with it.



Page last updated: March 02, 2018