CS 45500 - Programming Assignment 3

This assignment makes use of the files contained in this zip file. This assignment is due Monday, October 24.

This assignment uses model transformations on your P, N, and W models (from the last assignment) to create an animation.

In the zip file there is an animation file, animation.gif and an outline of a Java program OfflinePNW.java. You should complete the Java program so that it replicates the animation. For the P, N, and W letters, use your models from the last assignment. For this assignment, you should do all the transformations of the models using the model-to-camera matrix in each Model object.

In the renderer_5 zip file there are several examples of using translations and rotations to create animations. Here is the most important thing to remember. If you want to rotate a model around the point (a,b,c) in the model's coordinate system, and you want this rotation to happen at the point (u,v,w) in the camera coordinate system, then you would do that with the following three transformations.

      model.modelTranslate(u, v, w);
      model.modelRotate(theta, _,_,_);
      model.modelTranslate(-a, -b, -c);

In the zip file there is a folder animation frames that contains all the frames from animation.gif. These individual frames make it a bit easier for you to figure out exactly what is happening in the animation.

Turn in a zip file called CS455Hw3Surname.zip (where Surname is your last name) containing your versions of P.java, N.java, W.java, and OfflinePNW.java.

This assignment is due Monday, October 24.