Adding Control of the View Volume

  • Remember, with the camera, we had a "view cone"
  • One way to form a projection matrix is make a matrix that maps coordinates in the eye space to the frustum.
  • In general, to form the projection matrix for frustum you need
  • Shifting coordinate systems
  • In the end, the transformation is
  • Viewing can also be accomplished via a field of view.
  • The camera
  • So in the demo look at the canvas constructor.