Lecture 1 Computer Graphic. People remember 10% of what they read 20% of what they hear 30% of what they see 50% of what they hear and see 80% of what.

Slides:



Advertisements
Similar presentations
Chapter 5 – Part 2 Input and Output
Advertisements

Computer Graphics- SCC 342
Introduction to Raster scan display C A E D C Computer Aided Engineering Design Centre.
Lecture 1 Computer Graphics Hardware Basic graphics hardware –Display devices –Video controller –Memory –CPU –System bus Graphics Hardware # 1 CG show.
CGMB214: Intro. To Computer Graphics
Overview of Graphic Systems
Output Primitives Computer Graphics.
1 Lecture 2 Main components of graphical systems Graphical devices.
Java ThreadsGraphics Programming Graphics Programming: Graphics Devices.
Graphics Device Principles B.Sc. (Hons) Multimedia ComputingMedia Technologies.
Graphics Device Principles B.Sc. (Hons) Multimedia ComputingMedia Technologies.
EET 450 – Advanced Digital Video Display Systems.
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphicsIntroduction Dr. Eng. Farag Elnagahy
Ch 1 Intro to Graphics page 1CS 367 First Day Agenda Best course you have ever had (survey) Info Cards Name, , Nickname C / C++ experience, EOS experience.
Computer Graphics Hardware and Software Lecture Notes, CEng 477.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 1 SPRING 2015 DR. MICHAEL J. REALE.
Monitors and Sound Systems section 3A This lesson includes the following sections: · Monitors · PC Projectors · Sound Systems.
CAP4730: Computational Structures in Computer Graphics Overview of Graphics Systems Chapter 1.
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-2 CAD Systems Industrial Engineering Department King Saud University.
1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 46 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 46 Computer Graphics Introduction II.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Basics of a Computer Graphics System Introduction to Computer Graphics CSE 470/598 Arizona State University Dianne Hansford.
Lecture 03 Fasih ur Rehman
Peripherals The term peripherals refers to all hardware devices that are attached to your computer and are controlled by your computer system Peripherals.
1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.
1 Computer Graphics Week3 –Graphics & Image Processing.
Graphics System 2011, Fall.
BY Kamran Yousaf Computer Graphics & Animation. BY Kamran Yousaf Contents Introduction Usage, Application & Advantages Video Display Devices Output Devices.
University College Dublin1 Output devices COMP 3003.
Lecture No. 3.  Screen resolution  Color  Blank space between the pixels  Intentional image degradation  Brightness  Contrast  Refresh rate  Sensitivity.
Computer Graphics Hardware
1 Computer Graphics Part 2: Images. 2 What is an image?  An image is the graphical and visual representation of some information that can be displayed.
UNIT I 2D PRIMITIVES INTRODUCTION 1 SNSCE/IT/ARUNA.
Graphics Systems and OpenGL. Business of Generating Images Images are made up of pixels.
COMPUTER GRAPHICS Hochiminh city University of Technology Faculty of Computer Science and Engineering CHAPTER 01: Graphics System.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
CSE 494/598 Intro to Applied Computer Graphics Anshuman Razdan DCST AR's Web Page AR's Web Page
1 Computer Graphics Week2 –Creating a Picture. Steps for creating a picture Creating a model Perform necessary transformation Lighting and rendering the.
Hardware used in Multimedia Systems. Hardware demands on multimedia systems Multimedia puts huge demands on a computer system, so designers and users.
INT 840E Computer graphics Introduction & Graphic’s Architecture.
Lecture # 4 Output Devices. Output Devices Devices that convert machine language into human understandable form. Output can be in display form, on paper.
Introduction to Graphical Hardware Display Technologies
Institute for Visualization and Perception Research 1 © Copyright Haim Levkowitz Graphics Systems Overview Video display devices … Input devices.
 Video Display Devices Video Display Devices  Cathode-ray tube (CRT) Monitors Cathode-ray tube (CRT) Monitors  Display Technologies Display Technologies.
Computer Fundamentals MSCH 233 Lecture 5. The Monitor A Monitor is a video screen that looks like a TV. It displays both the input data and instructions,
Overview of Graphics System
Computer Graphics & Multimedia
K.B.H.POLYTECHNIC,MALEGAON CAMP, MALEGAON. Computer Hardware & Maintenance. S.Y.C.M/I.F Guided By :- Mr.K.S.Pawar. Lecturer in Computer Department.
1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)
Computer Graphics.
Week 9 Monitors and output to the screen. Monitors, also known as Visual display units (V.D.Us) Desktop computers contain a Cathode Ray Tube (C.R.T.)
Name Enrolment no.: Dhruti Desai Khushboo Desai Sneha Gangwani Rajul Shah
Computer Graphics Lecture -02. Frame Buffer The image being displayed is stored in a dedicated system memory area that is often referred.
1.  The primary output device in a graphics system is a video monitor. These monitors are based on Cathode Ray Tube (CRT) design.  CRT is a vacuum tube/electron.
Computer Graphics CC416 Lecture 02: Overview of Graphics Systems: Raster & Random Displays – Chapter 2 Dr. Manal Helal – Fall 2014.
Graphic Systems. Basic Graphics System Input devices Output device Image formed in FB [Edward Angel, Interactive computer Graphics, 2009]
The Cathode Ray Tube Monitor
CAD Display Devices J. M. Dave Assistant Professor
COMP413: Computer Graphics Overview of Graphics Systems Chapter 1.
Computer Graphics: An Introduction
Computer Graphics Lecture 3 Computer Graphics Hardware
Overview of Graphics Systems
Graphics Systems.
Overview of Graphics Systems
Overview of Graphics Systems
گرافيک کامپيوتري فصل اول : مقدمه ای بر گرافیک کامپیوتری (A Survey of Computer Graphics) فصل دوم: مروری بر سیستم های گرافیکی (Overview of graphic systems)
Graphics Systems SUBJECT: COMPUTER GRAPHICS LECTURE NO: 02 BATCH: 16BS(INFORMATION TECHNOLOGY) 1/4/
Chapter 2 Overview of Graphics Systems
Overview of Graphics Systems
Presentation transcript:

Lecture 1 Computer Graphic

People remember 10% of what they read 20% of what they hear 30% of what they see 50% of what they hear and see 80% of what they hear, see and say 90% of what they hear, see, say and touch

What is Computer Graphics? A field of study that deals with the pictures generated by a computer and the tools used to make and present them. 1. Information becomes more communicative when its represented graphically 2.A huge number of numbers may be replaced by a simple graph or chart diagram 3. visual form of data may be more relevant to realize their characteristics 4. creation of engineering designs and architectural blue-print may be fully automated 5.Mathematical models of hyperspace can be easily realized using computers 6.Using motion dynamics simulation experiments of moving objects can be performed Some of major advantages of computer graphics

Operations of Computer Graphics 1. Creation of elementary objects: The fundamental element of any graphical object is a pixel or picture element. Its an isolated a black or colored dot. 2. Creating Basic Shapes: Basic shapes are components of object boundaries. These can be defined by mathematical functions. Examples include line segments, circle, triangle, rectangular,etc 3. Creating solid objects: Solid boundaries in 2D or 3D can be produced by combining above-mentioned components. 4. Sizing and positioning: using geometrical transformations, object or their parts can be resized, and their position and orientation can be changed. Geometrical operations includes translation, rotation, scaling, reflection, shearing,etc

5. Projection on 2D: Projection is a specific transformation that converts 3D object description into its 2D representation. 6. Shading and coloring : To give a real look to the objects rendering process are applied.For a black and white objects this method is called shading, and for colored objects it is called coloring and rendering. 7. Viewing and clipping : sometime only a part of object(s) needs to be viewed. This done by viewing and clipping. Objects can be zoomed in and out. 8.Hidden surface elimination: real objects do not show their back surfaces so while producing object surfaces from their mathematical representations, we need to eliminate the back surface

Basic Graphics System Input devices Output device Image formed in frame buffer

 Powerful processor to perform primitive graphical operations  Memory (Frame buffer memory )  Input devices eg. mouse, keyboard (trackball, joystick, etc )  Output devices eg., monitor, screen, audio (multiple screens, HMD, multiple speakers)  A complete computer system consists of many components  We shall focus on video display devices Graphic System INPUTPROCESSING DISPLAY/ OUTPUT Mouse Tablet and stylus Force feedback device Scanner Live video streams Screen Paper-based printer Video recorder Projector VR/AR headset Memory

Overview of Graphics Systems Images Hardware ◦Input Systems ◦Output Systems Software ◦OpenGL

Two Dimensional Images  Images (at least the ones in this class) are two dimensional shapes.  The two axes we will label as X (horizontal), and Y (vertical). X Axis Y Axis (0,0) +X +Y

Hardware Pipeline InputOutputComputation We want to draw a rectangle, how do we describe it to a computer? Model (n) - object description that a computer understands.

Partition the space (7,3) (7,9) (14,3) (14,9) 1. Define a set of points (vertices) in 2D space. 2. Given a set of vertices, draw lines between consecutive vertices.

Record every position Bitmap - a rectangular array of bits mapped one-to-one with pixels.

Position relative Vector display system - graphical output system that was based on strokes (as opposed to pixels). Also known as: random, calligraphic, or stroke displays.

Representing Objects Most common method is the VERTEX method. Define the object as a set of points with connectivity information. Why is connectivity important? Connectivity - information that defines which vertices are connected to which other vertices via edges. Edge - connects two vertices

Model file for rectangle v 4 e (7,3) (7,9) (14,3) (14,9)

Input Devices Locator Devices Keyboard Scanner –Images –Laser Cameras (research)

Computation Stage Now that we have a model of what we want to draw, what goes on inside the computer to generate the output? InputOutputComputation Transformations Rasterization

Computation Stage Computation Transformations Rasterization Model Transformed Model Output

How do we store this? We would like to allocate memory to hold the results of the computation stage.

Framebuffer Framebuffer - A block of memory, dedicated to graphics output, that holds the contents of what will be displayed. Pixel - one element of the framebuffer

Framebuffer How big is the framebuffer? What is the largest image you can display? How many pixels are there? How much memory do we need to allocate for the framebuffer?

Framebuffer in Memory If we want a framebuffer of 640 pixels by 480 pixles, we should allocate: framebuffer = 640*480 bits How many bit should we allocate? Q: What do more bits get you? A: More values to be stored at each pixel. Why would you want to store something other than a 1 or 0?

Framebuffer bit depth How many colors does 1 bit get you? How many colors do 8 bits get you? –Monochrome systems use this (green/gray scale) What bit depth would you want for your framebuffer? bit depth - number of bits allocated per pixel in a buffer

Framebuffer bit depths Remember, we are asking “how much memory do we allocate to store the color at each pixel?” Common answers: –16 and 32 bits

Bit depths 16 bits per pixel (high color) –5 bits for red, 5/6 bits for green, 5 bits for blue –potential of 32 reds, 32/64 green, 32 blues –total colors: bits per pixel (true color) –8 bits for red, green, blue, and alpha –potential for 256 reds, greens, and blues –total colors: (more than the eye can distinguish) Let’s look at Display Control Panel

Memory unsigned byte framebuffer[640*480*3]; framebuffer = [ …]

Graphic Card Memory How much memory is on our graphic card? –640 * 480 * 32 bits = 1,228,800 bytes –1024 * 768 * 32 bits = 3,145,728 bytes –1600 * 1200 * 32 bits = 7,680,000 bytes How much memory is on your graphics card? As a side note: PlayStation 1 has 2 MB RAM. How do they do it? What is the TV resolution? 1 bit alpha, no z buffer.

Output We have an image (framebuffer or model), now we want to show it. Display –Vector –Raster Scan InputOutputComputation

Framebuffer -> Monitor The values in the framebuffer are converted from a digital (1s and 0s representation, the bits) to an analog signal that goes out to the monitor. A video card’s RAMDAC performs this operation, once per frame. This is done automatically (not controlled by your code), and the conversion can be done while writing to the framebuffer.

Pixels Pixel - The most basic addressable image element in a screen –CRT - Color triad (RGB phosphor dots) –LCD - Single color element Screen Resolution - measure of number of pixels on a screen (m by n) –m - Horizontal screen resolution –n - Vertical screen resolution

Raster Displays Cathode Ray Tubes (CRTs), most “tube” monitors you see. Very common, but big and bulky. Liquid Crystal Displays (LCDs), there are two types transmissive (laptops, those snazzy new flat panel monitors) and reflective (wrist watches).

Cathode-ray tubes (CRT) Base Connector Pins Y deflect x deflect Phosphor Electron Gun Focusing System Control grid voltage

Cathode Ray Tubes (CRTs) Heating element on the yolk. Phosphor coated screen Electrons are boiled off the filament and drawn to the focusing system. The electrons are focused into a beam and “shot” down the cylinder. The deflection plates “aim” the electrons to a specific position on the screen.

scan line - one row on the screen interlace vs. non-interlace - Each frame is either drawn entirely, or as two consecutively drawn fields that alternate horizontal scan lines. vertical sync (vertical retrace) - the motion of the beam moving from the bottom of the image to the top, after it has drawn a frame. refresh rate - how many frames are drawn per second. Eye can see 24 frames per second. TV is 30 Hz, monitors are at least 60 Hz. Beam Movement

Graphics Types Vector Graphics Specify the content of the image using Primitive shapes such points, lines, circles, etc. Their size Their positions Resolution independent Has to be translated into a raster image before displayed (rendering) OpenGL, SVG, PS, VRML, etc. Raster Graphics Specify the content as a 2D array of pixels (picture elements) Resolution dependent Often provides rich details Bmp, gif, jpeg, etc.

Vector stands for line. A set of line drawing instructions are stored in memory The electron beam is directed only to parts of the screen where the picture is to be drawn. Random-Scan (Vector) displays MoveTo (300,800) LineTo (700,800) LineTo (500,300) LineTo (300,800)

Raster Scan Displays Developed in the early seventies. It is today's dominant hardware technology. Almost all graphics systems are raster-based. raster A picture is produced as an array – the raster – of picture elements. Pixels This elements are called Pixels or Pels (Picture Elements). A pixel corresponds to a location, or small area, in the image. refresh bufferframe buffer Collectively, the pixels are stored in a part of memory called the refresh buffer or frame buffer.

Refresh Rate Definition: Definition: The number of times per second the image is redrawn. refresh rate The entire contents of the frame buffer are displayed on the CRT at a rate high enough to avoid flicker. This rate is called the refresh rate. For a human to see a steady image on most CRT displays, the same path must be retraced, or refreshed, by the beam at least 60 times per second. Current raster-scan displays perform refreshing at the rate of 60 to 80 frames per second, although some systems now have refresh rates of up to 120 frames per second. Refresh rates are described in units of cycles per second, or Hertz (Hz), where a cycle corresponds to one frame (i.e. a refresh rate of 60 frames per second = 60 Hz).

The Frame Buffer x y Display surfaceFrame buffer at (800,600) pixel at address (x,y)

Some Applications Of Computer Graphics Some of the application areas which make heavy use of computer graphics are: Computer aided design Scientific visualisation Films Games Virtual/Augmented Reality NOTE: There are lots more and there is huge overlap between these different areas

Computer Aided Design ( CAD )

GAME

Film

Scientific Visualization

Virtual/Augmented Reality