W Randolph Franklin home page
... (old version)
ComputerGraphicsFall2010/ home page Login


Computer Graphics Fall 2010 group home


Homework 6, Due by email to Peter Honig Oct 14

This has lots of little math questions based on the lecture. They mostly require thinking, not just plugging in.

  1. (1 pt) Write the 4x4 homogeneous matrix for a projection onto the viewplane {$2x+2y+3z=6$} with the center of projection at (0,0,0).
  2. (1 pt) Write the 4x4 homogeneous matrix for a projection onto the viewplane {$z=0$} with the center of projection at (-1,-2,0).
  3. (1 pt) Write the 4x4 homogeneous matrix for a uniform scale by 4 followed by a 3D translation by (1,2,1).
  4. (2 pt) Write the 4x4 homogeneous matrix for a 3D translation by (1,2,1) followed by a uniform scale by 4.
  5. (1 pt) Normalize the 3D Cartesian vector (1,2,4).
  6. (2 pt) Write the vector equation for rotating points by {$180^\circ$} about the axis (3,4,0).
  7. (1 pt) What does the point (0,2,0) rotate to?
  8. (1 pt) If {$a=(7,5,6)$} then write {$a\cdot p a$} as a matrix depending on {$a$} times {$p$}.
  9. (1 pt) Write {$a\times p$} ditto.
  10. This {$M=\begin{pmatrix}.6&0&-.8\\0&\color{red}{0}&0\\-.8&0&-.6\end{pmatrix} $} is not a rotation matrix.
    1. (1 pt) Give 2 rules for being a rotation matrix that it violates.
    2. (1 pt) Change {$m_{2,2}$}, highlighted in red above, to make {$M$} a rotation matrix.
  11. (2 pt) This {$M=\begin{pmatrix}1&0&0\\0&-1&0\\0&0&-1\end{pmatrix} $} is a rotation matrix. What are the normalized axis and angle of rotation?
  12. (5 pt) Modify gasket3.c to use one call to glDrawElements. Before that, triangle should load vertices into one large array instead of drawing the triangle immediately. See if you can see any speed improvement.