Computer Graphics Raster Devices Transformations Areg Sarkissian.

Slides:



Advertisements
Similar presentations
Graphics Pipeline.
Advertisements

Image Data Representations and Standards
Flash Animation Using Linear Transformations By Kevin Hunter Kevin Hunter Marcus Yu Marcus Yu.
TRANSFORMATIONS.
CS 4363/6353 INTRODUCTION TO COMPUTER GRAPHICS. WHAT YOU’LL SEE Interactive 3D computer graphics Real-time 2D, but mostly 3D OpenGL C/C++ (if you don’t.
Output Primitives Computer Graphics.
CMPE 466 COMPUTER GRAPHICS
University of North Carolina at Greensboro
Sep 21, Fall 2005ITCS4010/ Computer Graphics Overview Color Displays Drawing Pipeline.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
Sep 21, Fall 2006IAT 4101 Computer Graphics Overview Color Displays Drawing Pipeline.
IAT 3551 Computer Graphics Overview Color Displays Drawing Pipeline.
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphicsIntroduction Dr. Eng. Farag Elnagahy
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
CS 4731: Computer Graphics Lecture 8: 3D Affine transforms Emmanuel Agu.
CS 4731: Computer Graphics Lecture 21: Raster Graphics Part 2 Emmanuel Agu.
1.Introduction to Computer Graphics GMR lab. What is computer garphics? The generation of graphical output using a computer Refers to creation, Storage.
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-2 CAD Systems Industrial Engineering Department King Saud University.
Basic graphics. ReviewReview Viewing Process, Window and viewport, World, normalized and device coordinates Input and output primitives and their attributes.
Basic Graphics Concepts Day One CSCI 440. Terminology object - the thing being modeled image - view of object(s) on the screen frame buffer - memory that.
Transformations of Objects CVG lab. Introduction  Affine transformations : Affine transformations are a fundamental cornerstone of computer graphics.
1/1/20001 Topic >>>> Scan Conversion CSE Computer Graphics.
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
CSE 381 – Advanced Game Programming Basic 3D Graphics
Transformations Dr. Amy Zhang.
Tools for Raster Displays CVGLab Goals of the Chapter To describe pixmaps and useful operations on them. To develop tools for copying, scaling, and rotating.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Video Monitor Uses raster scanning to display images –Beam of electrons illuminates phosphorus dots on the screen called pixels. Starting at the top of.
CS 445 / 645 Introduction to Computer Graphics Lecture 3 Mathematical Primitives Introduction to Transformations Lecture 3 Mathematical Primitives Introduction.
2003CS Hons RW778 Graphics1 Chapter 5: Transforming Objects 5.2 Introduction to Transformations 5.2 Introduction to Transformations –Affine transformations.
Objectives Differentiate between raster scan display and random scan display.
MIT EECS 6.837, Durand and Cutler Graphics Pipeline: Projective Transformations.
Geometric Transformations
Graphics Systems and OpenGL. Business of Generating Images Images are made up of pixels.
OpenGL Conclusions OpenGL Programming and Reference Guides, other sources CSCI 6360/4360.
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
INT 840E Computer graphics Introduction & Graphic’s Architecture.
The Rendering Pipeline CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
1 Computer Graphics Week9 -3D Geometric Transformation.
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
Graphics: Conceptual Model Real Object Human Eye Display Device Graphics System Synthetic Model Synthetic Camera Real Light Synthetic Light Source.
Introduction to Computer Graphics Geometric Transformations
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
CS COMPUTER GRAPHICS LABORATORY. LIST OF EXPERIMENTS 1.Implementation of Bresenhams Algorithm – Line, Circle, Ellipse. 2.Implementation of Line,
Transformations of objects
II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.
2/28/2016 CS 551 / 645: Introductory Computer Graphics Framebuffer Mathematical Foundations The Rendering Pipeline.
Computer Graphics I, Fall 2010 Transformations.
OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Transformations. Transformations Introduce standard transformations ◦ Rotation ◦ Translation ◦ Scaling ◦ Shear Derive homogeneous coordinate transformation.
Modeling Transformations Mario Costa Sousa University of Calgary CPSC 453, Fall 2001 Mario Costa Sousa University of Calgary CPSC 453, Fall 2001.
Objectives Introduce standard transformations Introduce standard transformations Derive homogeneous coordinate transformation matrices Derive homogeneous.
Elements of Pictures Output primitives:
Introduction to Computer Graphics
Computer Graphics Overview
Computer Graphics Raster Devices Transformations
Transformations Objectives
Color Color is one of the most interesting aspects of both human perception and computer graphics. In principle, a display needs only three primary colors.
Graphics Fundamentals
Computer Graphics Raster Scan Display System, Rasterization, Refresh Rate, Video Basics and Scan Conversion.
Geometric Transformations for Computer Graphics
Transformations Ed Angel
Transformations Ed Angel Professor Emeritus of Computer Science
Isaac Gang University of Mary Hardin-Baylor
Presentation transcript:

Computer Graphics Raster Devices Transformations Areg Sarkissian

Raster Devices Most displays used for computer graphics are raster displays. The surface of raster displays has a certain number of pixels that it can show, such as 640 X 480 ~ 307,000 pixels All raster displays have a built-in coordinate system that associates a given pixel in an image with a given physical position on the display surface. The horizontal coordinate Sx increases from left to right, and the vertical coordinate Sy increases from top to bottom. They have an upside-down coordinate system. (0,0) (639,0) (0,479) Consist of three main parts: 1) Frame Buffer 2) Scan Controller 3) Digital to Analog Converter (DAC)

Frame Buffer A region of memory sufficiently large to hold all of the pixel values for display. A graphic card that is installed in a personal computer actually houses the memory required for the frame buffer. The display memory can be thought of a two dimensional array: mem[x][y]

Scan Controller & DAC The scan controller causes the frame buffer to send each pixel through a converter to the appropriate physical spot on the display surface. The scan controller addresses one pixel value, mem[x][y], in the frame buffer at the same time it addresses one position, (x, y), on the face of CRT. The converter takes a pixel value such as and converts it to the corresponding quantity that produces a spot for each red, green, and blue colors on the display. The dots are so close together that eye sees one composite dot and a single color that is the sum of the three component colors. Thus, the composite dot can be made glow in a total of 4x4x4=64 different colors.

Scan Controller & DAC Some of the more expensive systems have a frame buffer that support 24 planes of memory. Each of the DACs has eight input bits, so there are 256 level of red, green, blue. (16 million colors) Monochrom A single DAC converts pixel values in the frame buffer to voltage levels, which drive a single electron-beam gun. Note that 6 planes in frame buffer give 64 levels of gray.

Indexed Color and the Lookup Table A color lookup table (LUT), which offers a programmable association between a pixel value and the final displayed color The color depth is again six, but the 6 bits stored in each pixel go through an intermediate step before they drive the CRT. These bits are used as an index into a table of 64 values (LUT[0]…LUT[63]) Each LUT[i] contains a 15-bit value, which every five bits drives corresponding DAC. (Red, Green, Blue) The set of 2^15 possible colors that the system is capable of displaying is called its palette, so the palette for this system is 32K colors Since LUT has only 64 bits index, so it can only show 64 different color at a time on the screen.

Indexed Color

Coordinates Translation Usually the upside-down coordinates of raster displays are translated to a more familiar coordinates (Cartesian Coordinates) in programming languages, such as OpenGL. x y (0, 0)

Transformations Transformations are very useful in computer graphics in a number of situations: A scene can be fashioned by placing a number of instances of an object at different places and with different sizes using proper transformation. A single motif can be designed and then fashion the whole shape of an object by reflection, rotation, and translation of the motif. (ex. Snowflake) Helps a designer to view an object from different vantage points and make a picture from each one. In a computer animation, several objects must move relative to one another from frame to frame.

Transformations A transformation alters each point P in space (2D or 3D) into a new point Q by means of a specific formula or algorithm. An arbitrary point P in the plane is mapped to another point Q. We say that Q is the image of P under the mapping T. An object is being transformed by transforming each of its points using the same function T(P) for each point. Points are represented as: P Q=T(P) y x z P y x

Affine (or Linear) Transformations Types of Affine Transformations: Translation Scaling Reflection Rotation An affine transformation is represented by matrices.

Translation Translates a picture into a different position on a graphics display. The translation part of the affine transformation arises from the third column of the matrix for 2D and forth column for 3D. 2D3D Example: 2D translation 

Scaling Changes the size of a picture and involves two scale factors Sx and Sy for the x- and y-coordinates (Qx, Qy) = (SxPx, SyPy) Thus, the matrix for scaling is simply: Example: 2D 3D

Reflection If a scale factor is negative, then there is also a reflection about a coordinate axis. About x-axisAbout y-axis P Q=T(P) Example: reflection about x-axisx

2D Rotation The rotation of a figure about a given point through some angle. The matrix for 2D rotation about origin: Example: P=(x, y) and Q=T(P) P 60

3D Rotation The 3D rotation matrices about each coordinate: About x-axis (x-roll) About y-axis (y-roll) About z-axis (z-roll)

Rotation about an arbitrary point The result of this rotation will be product of three matrices. Step 1) Translation (a, b) to (0, 0) Step 2) Rotation point P about origin (0, 0) Step 3) Translation (0, 0) to (a, b) Example: (a, b) is an arbitrary point and P=(x, y) Step 1Step 2Step 3 (a, b) T(P)=Q P (0,0)

References Computer Graphics – Using OpenGL F.S Hill, Jr