This assignment makes use of the files contained in this zip file. This assignment is due Thursday, October 26.
This assignment uses model transformations on the 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 the models contained in the zip file (that will make it easier to duplicate the animation).
For this assignment, you should do all the transformations of a model using the model-to-camera matrix in the Position
object that holds the Model
object.
In the renderer_6.zip 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 (where position
is the Position
object holding the Model
object).
position.translate(u, v, w); position.rotate(theta, _,_,_); position.translate(-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 version of OfflinePNW.java
.
This assignment is due Thursday, October 26.