CS488 - Introduction to Computer Graphics - Lecture 7

Public Service Announcements

  1. Assignment 2 due 4 June, one week from today.

Perspective Projection

Projecting to the image plane by similar triangles

Why would you want something different?

  1. You might want to clip against coordinate-aligned planes.
  2. You might want to preserve occlusion.

Just for fun let's try something.

The Bottom Row

In an affine transformation the bottom row is always (0,0,...,0,1).

What happens when you change it?

You get

  1. A denominator that is not 1, that is not even a simple number.
  2. A Mobius transformation, as close as you can get to linear without being linear.
  3. Mobius transformations and matrices are closely linked.

Recovering Similar Triangles

To get 1/zw try (0,0,1,0). The matrix is

  1. Singular
  2. Single means that the dimension is being reduced.

The View Frustrum

"Frustrum" because I get frustrated trying to draw it.

Make a Pencil of Lines Parallel

  1. Send the eye to infinity,
  2. without changing the image plane.
  3. What does infinity mean?

Where did the Near and Far Planes Go?

  1. Where did infinity go? (0,0,zs+1,1)

Scale on (x,y) to Get (w/2, h/2, z, 1) --> (1, 1, z, 1)

Translate on z to Get (x, y, (n+f)/2, 1) --> (x, y, 0, 1)

Scale on z to Get (x, y, (n-f)/2, 1) --> (x, y, -1, 1) and (x, y, (f-n)/2, 1) --> (x, y, 1, 1)


Return to: