Presentation is loading. Please wait.

Presentation is loading. Please wait.

2D Viewing Pipeline.

Similar presentations


Presentation on theme: "2D Viewing Pipeline."— Presentation transcript:

1 2D Viewing Pipeline

2 Learning Objectives 2D viewing pipeline The clipping window
Normalization and viewport transformations

3 2D Viewing Pipeline Procedures for displaying views of a two-dimensional picture on an output device: Specify which parts of the object to display (clipping window, or world window, or viewing window) Where on the screen to display these parts (viewport). Clipping window is the selected section of a scene that is displayed on a display window. Viewport is the window where the object is viewed on the output device.

4 (from Donald Hearn and Pauline Baker)
2D Viewing Pipeline (from Donald Hearn and Pauline Baker)

5 2D Viewing Pipeline 2D viewing pipeline
Construct world-coordinate scene using modeling-coordinate transformations Convert world-coordinates to viewing coordinates Transform viewing-coordinates to normalized-coordinates (ex: between 0 and 1, or between -1 and 1) Map normalized-coordinates to device-coordinates.

6 The Clipping Window The clipping window is most often a rectangular window. The clipping window can be seen as A viewing coordinate system is set-up in the world coordinate frame. Graphics systems provide functions to define a rectangular clipping window in world coordinates.

7 Normalization and Viewport Transformations
Two main approaches to 2D viewing: Mapping the clipping window into a normalized viewport involves scaling the clipping window to the size of the viewport then translating the origin of the clipping window to that of the viewport

8 Normalization and Viewport Transformations
(from Donald Hearn and Pauline Baker)

9 Normalization and Viewport Transformations
Two main approaches to 2D viewing: Mapping the clipping window into a normalized square Involves transforming the clipping window into a normalized square Then clipping in normalized coordinates (ex: -1 to 1) Then transferring the scene description to a viewport specified in screen coordinates. Finally positioning the viewport area in the display window.

10 Normalization and Viewport Transformations
(from Donald Hearn and Pauline Baker)

11 Normalization and Viewport Transformations
(from Donald Hearn and Pauline Baker)


Download ppt "2D Viewing Pipeline."

Similar presentations


Ads by Google