2D Viewing Pipeline.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

DEPARTMENT OF INFORMATION TECHNOLOGY
Okay, you have learned … OpenGL drawing Viewport and World Window setup main() { glViewport(0,0,300,200); glMatrixMode(GL_PROJECTION); glLoadIndentity();
CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1 Emmanuel Agu.
Java ThreadsGraphics Programming Graphics Programming: Windows, Viewports & Clipping.
Okay, you have learned … OpenGL drawing Viewport and World Window setup main() { glViewport(0,0,300,200); glMatrixMode(GL_PROJECTION); glLoadIndentity();
Graphics Pipeline.
Computer Graphic Creator: Mohsen Asghari Session 2 Fall 2014.
Three Dimensional Viewing
CMPE 466 COMPUTER GRAPHICS Chapter 8 2D Viewing Instructor: D. Arifler Material based on - Computer Graphics with OpenGL ®, Fourth Edition by Donald Hearn,
2 D viewing Prepared by Elizabeth Isaac DCS, RSET.
CMPE 466 COMPUTER GRAPHICS
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphics Two Dimensional Viewing Dr. Eng. Farag Elnagahy
Introduction to constructive graphics Basic ideas - Coordinate systems - Graphics viewing pipeline.
CMPE 466 COMPUTER GRAPHICS
3D Concepts UNIT 3. 3-D Coordinate Spaces Remember what we mean by a 3-D coordinate space x axis y axis z axis P y z x Right-Hand Reference System.
Graphics Programming Graphics Programming: Transformations.
1 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine.
2-Dimension Viewing and Clipping
Basic graphics. ReviewReview Viewing Process, Window and viewport, World, normalized and device coordinates Input and output primitives and their attributes.
UniS CS297 Graphics with Java and OpenGL Viewing, the model view matrix.
1 CMT Fundamentals of Computer Graphics Revision Dr. Xiaohong Gao BG---Room 2C23 Week 11.
Two-Dimensional Viewing
Advanced Computer Graphics Three Dimensional Viewing
Computational Biology, Part E Basic Principles of Computer Graphics Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Two Dimensional Viewing
2 COEN Computer Graphics I Evening’s Goals n Discuss the mathematical transformations that are utilized for computer graphics projection viewing.
Camera. Content Coordinate systems and transformations Viewing coordinates Coordinate transformation matrix Projections Window and viewport Acknowledgments:
OpenGL Conclusions OpenGL Programming and Reference Guides, other sources CSCI 6360/4360.
University of Palestine Computer Graphics ITGD3107 Prepare: Mohammed J. el-masre Nidal M. El-Borbar Supervision:
1 Computer Graphics Week9 -3D Geometric Transformation.
Transformational Geometry CS418 Computer Graphics John C. Hart.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Viewing CS418 Computer Graphics John C. Hart. Graphics Pipeline Homogeneous Divide Model Coords Model Xform World Coords Viewing Xform Still Clip Coords.
Introduction to Computer Graphics Chapter 6 – 2D Viewing Pt 1 1.
CS 325 Introduction to Computer Graphics 02 / 26 / 2010 Instructor: Michael Eckmann.
Three-Dimensional Viewing Hearn & Baker Chapter 7
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Viewing and Projection
Viewing and Projection
CS552: Computer Graphics Lecture 6: Viewing in 2D.
2D Viewing.
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
A.Aruna/Assistant Professor/SNSCE
Lecture 13: Raster Graphics and Scan Conversion
1 By Dr. HANY ELSALAMONY.  We have seen how to create models in the 3D world. We discussed transforms in lecture 3, and we have used some transformations.
Perspective View Volume View Volume Far Near Window Far Near Window Center of Projection Center of Projection (a) Original Orientation (b) After Transformation.
Coordinate Systems Lecture 20 Wed, Oct 15, Object Coordinates Each object has its own “local” coordinate system, called object coordinates. Normally.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Two-Dimensional Viewing Hearn & Baker Chapter 6
Three Dimensional Viewing
Computer Graphic 2 D Viewing.
Transformations contd.
Coordinate Reference Frames
Graphics Fundamentals
Two-Dimensional Viewing
Computer Graphics Viewing
2D Viewing & Clipping 한신대 류승택
Normalizing Transformation (I)
Unit 4 3D Viewing Pipeline Part - 2
Lecture 18 Fasih ur Rehman
WINDOWING AND CLIPPING
Three Dimensional Viewing
WINDOWING AND CLIPPING
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
3D Graphics.
Two Dimensional Viewing and Clipping.
THREE-DIMENSIONAL VIEWING II
THREE-DIMENSIONAL VIEWING
Presentation transcript:

2D Viewing Pipeline

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

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.

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

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.

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.

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

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

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.

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

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