0% found this document useful (0 votes)
9 views

2-D Viewing

The document discusses 2D viewing transformations which involve mapping a 2D scene description defined in world coordinates to device coordinates using a window-to-viewport transformation. This transformation selects a clipping window region of the scene to display and then maps those objects to a viewport region on the display device, allowing the user to control which parts of the scene are shown and their position and size on the display.

Uploaded by

akanshalg1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

2-D Viewing

The document discusses 2D viewing transformations which involve mapping a 2D scene description defined in world coordinates to device coordinates using a window-to-viewport transformation. This transformation selects a clipping window region of the scene to display and then maps those objects to a viewport region on the display device, allowing the user to control which parts of the scene are shown and their position and size on the display.

Uploaded by

akanshalg1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

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

You might also like