[SOLVED] CS45500 Homework 4

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon hw4-0uygxm.zip (5050.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

This assignment uses model transformations on the P, N, and W models 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.matrix.mult(Matrix.translate(u, v, w));
      position.matrix.mult(Matrix.rotate(theta, _,_,_));  // choose any axis
      position.matrix.mult(Matrix.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.

  • hw4-0uygxm.zip