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

CSCI 441
Computer Graphics
Spring 2018



ASSIGNMENT 9

The goal of this assignment is to familiarize yourself with skyboxes, mouse control of the camera, and environment mapping.

Modify the example program for the chapter on environment mapping (Chapter 9, Environment Mapping, posted on the website) so that the camera position responds to mouse input. Remember that you will need to make sure the skybox "moves" with the camera so that it always appears distant. It should not move as the camera rotates, though.

In addition, assume that the torus has a texture on it. You may use the brick or other textures from past examples, or use one of your own. Instead of having a purely reflective surface, you should use a weighted combination of the texture on the torus and the texture from the skybox cube map.


Submit your java source code, and GLSL files to the Moodle dropbox for assignment 9. 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.

PUT YOUR NAME ON ALL YOUR FILES!!



Page last updated: March 21, 2018