CSCI 480/580 Lecture 17 - In-Class Problems

Recall that the cube mesh from A1 is centered at (0,0,0) and has side length 2.

  1. If the model, camera, and projection matrices are all the identity matrix (i.e., have no effect), come up with a 4x4 viewport transformation that lands the cube in the center of a 400x400 image.
  2. Assume we're using the viewport matrix from #1. Build a model transformation that centers a 40x40 cube at x=0, y=1, z=-4, rotated 30 degrees around the y axis.