







































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































































Position
Up vector
Look vector
Note that with look and up vectors, we know the orientation of the camera
the frustum will be
Note that the width angle can be inferred from the aspect ratio and the height angle
camera’s view. Only render objects within the two
planes
Front clipping plane
Back clipping plane
Width angle
Height angle
Sometimes referred to as “World-to-Eye” transform.
The idea is to create a matrix such that we make the
camera:
Position
Up vector
Look vector
Note that with look and up vectors, we know the orientation of the camera
Analogous to the size of film used in a camera
Determines the ratio of width to height displayed on
screen
Square window has a ratio of 1:
Movie theater “letterbox” is 2:
NTSC television is 4:3, and HDTV is 16:
Determines the amount of perspective distortion, from
no distortion (parallel projection) to high distortion (wide-angle lens)
In a frustum, there are two viewing angles: width and
height angles (but given the aspect ratio, we just need one of these two values to infer the other)
So far, given what we have, our projector rays will
extend to infinity (and therefore an infinite volume)
Now we need to bound the volume with a front and a
back using near and far clipping planes
Why do we need the clipping planes?
Too much distortion Objects block the view
!! If we do, objects will appear upside down and inside-out because of the perspective transform
Objects will be tiny, but cost the same amount of time to render as objects close by
Clipping planes need to be carefully placed. We’ll
discuss the technical reasons later.
Sometimes in games you can see behind a wall, even though your
camera is not colliding with the wall. This is because the wall is closer than the near plane
One way to avoid this glitch is to do fading of objects that are very close
to the near plane
Objects near the specified
focal length are rendered
sharply (in focus)
Objects away from the focal
length (either too close or
too far) are blurred