Week 8 Projection
Week 8 Projection
Overview
• Parallel projection
– As used in engineering
and architectural Fig: Three parallel-projection views of an
object, showing relative proportions from
drawings different viewing positions.
– Shows accurate
dimensions
• Perspective projection
– Objects far away are
shown smaller than
nearby same size objects
Depth Cueing
• Choose a viewing
position (place the
camera)
• Decide on camera
orientation
– Direction and rotation
(up direction)
• Select
– View point (or viewing
position, eye position,
camera position)
P0=(x0,y0,z0)
– View-up vector V to
define yview
– Direction to define zview
• Then, a scalar
parameter is used to set
the position of the view
plane at coordinate zvp
along zview axis
• In parallel projection,
coordinate positions are
transferred to view plane
along parallel lines
– orthogonal/orthographic
– oblique
• For perspective projection,
coordinates are transferred
to view plane along lines
that converge at a point
Orthogonal Projections
• If projection direction is
parallel to zview
– xp=x, yp=y
• An infinite pyramid of
vision is chopped off by
near and far clipping
planes and we get a
truncated pyramid (or
frustum)
Perspective-Projection
Transformation Matrix
• Cannot directly apply a matrix and get the result
• 2 steps are required
– First, calculate the homogeneous coordinates using
perspective projection matrix
• Ph=Mpers P
– Then, after normalization and clipping, divide by h
(homogeneous parameter, h=zprp-z)
• sz (scaling) and tz (translation) z prp zvp 0 x prp x prp z prp
z prp zvp y prp y prp z prp
factors for normalizing projected z M pers
0
coordinate values (they depend on 0 0 sz tz
the selected normalization range 0 0 1 z prp
Symmetric Perspective
Projection Frustum
• If the line from perspective
reference point through clipping
window center (centerline) is
perpendicular to view plane, we
have a symmetric frustum
• Clipping window can be specified
by
– width and height, or
– field-of-view angle and aspect ratio
• With a symmetric frustum,
perspective transformation is a
mapping to orthogonal
coordinates (figure on next slide)
Fig: A symmetric frustum view volume is mapped to an
orthogonal parallelepiped by a perspective-projection
transformation.
Oblique Perspective-Projection Frustum
• Centerline not
perpendicular to view
plane
• First, transform this into
a symmetric frustum (z-
axis shearing)
• Then proceed as before