2-D Viewing
Outline
• Viewing
• Viewing Transformation
• Windows to Viewport Transformation
Viewing
● A graphics package allows a user to specify which part of a defined picture is to be
displayed and where that part is to be placed on the display device
● 2D viewing deals with the procedures for displaying views of a two-dimensional
picture on an output device
● A view for a 2D picture is selected by specifying a region of the xy plane that contains the
total picture or any part of it
● Picture parts within the selected areas are then mapped onto specified areas of the
device coordinates
Viewing Transformation
2-D Viewing Pipeline
https://www.google.com/csis.pace.edu
Viewing Transformation(Cont.….)
● The mapping of a two-dimensional, world-coordinate scene description to device
coordinates is called a 2D viewing transformation
● window-to-viewport transformation or the windowing transformation
Windows to Viewport Transformation
Windows to Viewport Transformation(Cont.….)
Windows to Viewport Transformation(Cont.….)
Windows to Viewport Transformation(Cont.….)
Windows to Viewport Transformation(Cont.….)
Windows to Viewport Transformation(Cont.….)
Windows to Viewport Transformation(Cont.):Other representation
Windows to Viewport Transformation(Cont.….)
Windows to Viewport Transformation(Cont.….)
Ques.
Sol.
Windows to Viewport Transformation(Cont.….)
Windows to Viewport Transformation(Cont.….)
Ques.
Sol. Try to solve the problem by your self
Summary
● Objects inside the clipping window are mapped to the viewport; viewport is
then positioned within display window
● Changing the position of a viewport, we can view objects at different
positions on the display area of an output device
● Changing the size of viewports, we can change the size and proportions of
displayed objects; zoom in and zoom out effects
● A section of a two-dimensional scene that is selected for display is called a
clipping window because all parts of the scene outside the selected section are
“clipped” off
Resources
• https://csis.pace.edu/
• https://www.cg.tuwien.ac.at/courses/CG1
• https://web.iitd.ac.in/~achawla/public_html/429/transformations