2/14/2016 310482: Graphics Programming Seree Chinodom

Slides:



Advertisements
Similar presentations
Computer Graphics Prof. Muhammad Saeed. Hardware (Display Technologies and Devices) III Hardware III Computer Graphics August 1,
Advertisements

Computer Graphics- SCC 342
Computer Graphics HARDWARE. LCD Displays Thinner and lighter. No tube or electron beams. Blocking/unblocking light through polarized crystals. Crystals.
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.
March 1, 2009Dr. Muhammed Al-Mulhem1 ICS 415 Computer Graphics General Graphics Systems Dr. Muhammed Al-Mulhem March 1, 2009 Dr. Muhammed Al-Mulhem March.
CATHODE RAY TUBE.
Display Hardware Yingcai Xiao Display Hardware Yingcai Xiao.
Java ThreadsGraphics Programming Graphics Programming: Graphics Devices.
Graphics Device Principles B.Sc. (Hons) Multimedia ComputingMedia Technologies.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Displays, Devices Week 12, Mon 17 Nov 2003.
Graphics Device Principles B.Sc. (Hons) Multimedia ComputingMedia Technologies.
EET 450 – Advanced Digital Video Display Systems.
Imaging Science Fundamentals Chester F. Carlson Center for Imaging Science Display Systems Viewing Images.
1 Video Display Devices Display Hardware Video display devices Input devices Locator Devices Keyboard devices.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 1 SPRING 2015 DR. MICHAEL J. REALE.
Terms 1. VGA VGA - Short for Video Graphics Array, VGA is a popular display standard developed by IBM and introduced in 1987 VGA provides 640 x 480 resolution.
Monitors and Sound Systems section 3A This lesson includes the following sections: · Monitors · PC Projectors · Sound Systems.
Graphics Hardware Display (CRT, LCD,…) Graphics accelerator
Introduction to Computer Graphics CS 445 / 645 David Brogan
1 Hardware Devices Display Hardware Video display devices Hard-copy devices Input devices Locator Devices Keyboard devices Valuator Devices Choice Devices.
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-2 CAD Systems Industrial Engineering Department King Saud University.
Prof.Dr. Aydın Öztürk
David Luebke9/10/2015 CS 551 / 645: Introductory Computer Graphics David Luebke
Lecture 03 Fasih ur Rehman
CSIT 301 (Blum)1 Monitors. CSIT 301 (Blum)2 Monitors The monitor is the primary output device for a PC. The additional circuitry needed for a computer.
1/1/20001 Topic >>>> Scan Conversion CSE Computer Graphics.
CHAPTER TWELVE DISPLAY TECHNOLOGY (I) CRT & LCD T.J.Iskandar Abd Aziz Adapted from Notes Prepared by: Noor Fardela Zainal Abidin Revised on Sept
University College Dublin1 Output devices COMP 3003.
CHAPTER 2 GRAPHICS HARDWARE.
GRAPHICS HARDWARE.
Lecture No. 3.  Screen resolution  Color  Blank space between the pixels  Intentional image degradation  Brightness  Contrast  Refresh rate  Sensitivity.
Computer Graphics Hardware
 PLASMA DISPLAY MONITOR  RASTOR VS RANDOM SCAN  INTERLACING AND NON- INTERLACING.
Overview of Graphics Systems. Cathode-ray Tube (CRT) - colors are represented using Red, Green, and Blue components - the CRT has a mechanism for.
CS 445 / 645: Introductory Computer Graphics David Brogan Image from:
COMP541 Video Monitors Montek Singh Oct 2, 2015.
Hardware used in Multimedia Systems. Hardware demands on multimedia systems Multimedia puts huge demands on a computer system, so designers and users.
Introduction to Graphical Hardware Display Technologies
 Video Display Devices Video Display Devices  Cathode-ray tube (CRT) Monitors Cathode-ray tube (CRT) Monitors  Display Technologies Display Technologies.
David Luebke12/3/2015 CS 551 / 645: Introductory Computer Graphics David Luebke
Display Technology INFO410 & INFO350 S Jack Pinches INFORMATION
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,
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.
Introduction to Computer Graphics CS 445 / 645 Lecture 2 General Graphics Systems Lecture 2 General Graphics Systems Daniel Rozin, Wooden Mirror (1999)
10/19 Monitors CRT monitors: Flat-panel displays Electron guns
Computer Graphics.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
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.)
CS 445: Introduction to Computer Graphics David Luebke University of Virginia Display Technologies, Mathematical Fundamentals.
Computer Graphics Lecture -02. Frame Buffer The image being displayed is stored in a dedicated system memory area that is often referred.
Computer Graphics Lecture 02 Graphics Systems Taqdees A. Siddiqi
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.
1 COMP541 Video Monitors Montek Singh Mar 11, 2016.
The Cathode Ray Tube Monitor
How Does Your TV Work? A brief introduction.. Two Amazing Things about the Brain 1.Connecting the dots Pixels and resolution 2.Connecting the frames 15.
CAD Display Devices J. M. Dave Assistant Professor
COMP541 Video Monitors Montek Singh Oct 7, 2016.
Computer Graphics Lecture 4 Computer Graphics Hardware
COMP541 Video Monitors Montek Singh Sep 15, 2017.
Overview of Graphics Systems: I
Overview of Graphics Systems
Introduction to Computer Graphics CS 445 / 645
Overview of Graphics Systems
Overview of Graphics Systems
CATHODE RAY TUBE.
Graphics Systems SUBJECT: COMPUTER GRAPHICS LECTURE NO: 02 BATCH: 16BS(INFORMATION TECHNOLOGY) 1/4/
COMP541 Video Monitors Montek Singh Feb 6, 2019.
Chapter 2 Overview of Graphics Systems
CATHODE RAY TUBE By Dr. Vaibhav Jain Associate Professor, Dept. of Physics, D.A.V (PG) College, Bulandshahr, U.P., India.
Presentation transcript:

2/14/ : Graphics Programming Seree Chinodom

2/14/2016 Display Technologies l Cathode Ray Tubes (CRTs) –Most common display device today –Evacuated glass bottle –Extremely high voltage –Heating element (filament) –Electrons pulled towards anode focusing cylinder –Vertical and horizontal deflection plates –Beam strikes phosphor coating on front of tube

2/14/2016 Electron Gun l Contains a filament that, when heated, emits a stream of electrons l Electrons are focused with an electromagnet into a sharp beam and directed to a specific point of the face of the picture tube l The front surface of the picture tube is coated with small phospher dots l When the beam hits a phospher dot it glows with a brightness proportional to the strength of the beam and how often it is excited by the beam

2/14/2016 Display Technologies: CRTs l Vector Displays –Early computer displays: basically an oscilloscope –Control X,Y with vertical/horizontal plate voltage –Often used intensity as Z l Name two disadvantages Just does wireframe Complex scenes  visible flicker

2/14/2016 Display Technologies: CRTs l Raster Displays –Raster: A rectangular array of points or dots –Pixel: One dot or picture element of the raster –Scan line: A row of pixels

2/14/2016 Display Technologies: CRTs l Raster Displays –Black and white television: an oscilloscope with a fixed scan pattern: left to right, top to bottom –To paint the screen, computer needs to synchronize with the scanning pattern of raster n Solution: special memory to buffer image with scan-out synchronous to the raster. We call this the framebuffer.

2/14/2016 Display Technologies: CRTs l Phosphers –Flourescence: Light emitted while the phospher is being struck by electrons –Phospherescence: Light emitted once the electron beam is removed –Persistence: The time from the removal of the excitation to the moment when phospherescence has decayed to 10% of the initial light output

2/14/2016 Display Technologies: CRTs l Raster Displays –Frame must be “refreshed” to draw new images –As new pixels are struck by electron beam, others are decaying –Electron beam must hit all pixels frequently to eliminate flicker –Critical fusion frequency n Typically 60 times/sec n Varies with intensity, individuals, phospher persistence, lighting...

2/14/2016 Display Technologies: CRTs l Raster Displays –Interlaced Scanning –Assume can only scan 30 times / second –To reduce flicker, divide frame into two “fields” of odd and even lines 1/30 Sec 1/60 Sec Field 1 Field 2 Frame

2/14/2016 Display Technologies: CRTs l Raster Displays –Scanning (left to right, top to bottom) n Vertical Sync Pulse: Signals the start of the next field n Vertical Retrace: Time needed to get from the bottom of the current field to the top of the next field n Horizontal Sync Pulse: Signals the start of the new scan line n Horizontal Retrace: The time needed to get from the end of the current scan line to the start of the next scan line

2/14/2016 Display Technology: Color CRTs l Color CRTs are much more complicated –Requires manufacturing very precise geometry –Uses a pattern of color phosphors on the screen: –Why red, green, and blue phosphors? Delta electron gun arrangementIn-line electron gun arrangement

2/14/2016 Display Technology: Color CRTs l Color CRTs have –Three electron guns –A metal shadow mask to differentiate the beams

2/14/2016 Display Technology: Raster l Raster CRT pros: –Allows solids, not just wireframes –Leverages low-cost CRT technology (i.e., TVs) –Bright! Display emits light l Cons: –Requires screen-size memory array –Discreet sampling (pixels) –Practical limit on size (call it 40 inches) –Bulky –Finicky (convergence, warp, etc)

2/14/2016 Display Technology: LCDs l Liquid Crystal Displays (LCDs) –LCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E field –Crystalline state twists polarized light 90º

2/14/2016 Display Technology: LCDs l Transmissive & reflective LCDs: –LCDs act as light valves, not light emitters, and thus rely on an external light source. –Laptop screen: backlit, transmissive display –Palm Pilot/Game Boy: reflective display

2/14/2016 Display Technology: Plasma l Plasma display panels –Similar in principle to fluorescent light tubes –Small gas-filled capsules are excited by electric field, emits UV light –UV excites phosphor –Phosphor relaxes, emits some other color

2/14/2016 Display Technology l Plasma Display Panel Pros –Large viewing angle –Good for large-format displays –Fairly bright l Cons –Expensive –Large pixels (~1 mm versus ~0.2 mm) –Phosphors gradually deplete –Less bright than CRTs, using more power

2/14/2016 Display Technology: DMDs l Digital Micromirror Devices (projectors) –Microelectromechanical (MEM) devices, fabricated with VLSI techniques

2/14/2016 Display Technology: DMDs l DMDs are truly digital pixels l Vary grey levels by modulating pulse length l Color: multiple chips, or color-wheel l Great resolution l Very bright l Flicker problems

2/14/2016 Display Technologies: Organic LED Arrays l Organic Light-Emitting Diode (OLED) Arrays –The display of the future? Many think so. –OLEDs function like regular semiconductor LEDs –But with thin-film polymer construction: n Thin-film deposition or vacuum deposition process…not grown like a crystal, no high-temperature doping n Thus, easier to create large-area OLED sheet

2/14/2016 Display Technologies: Organic LED Arrays l OLED pros: –Transparent –Flexible –Light-emitting, and quite bright (daylight visible) –Large viewing angle –Fast (< 1 microsecond off-on-off) –Can be made large or small l OLED cons: –Not quite there yet (96x64 displays…) –Not very robust, display lifetime a key issue

2/14/2016 Raster Scan Displays l Beam of electrons deflected onto a phosphor coated screen – Phosphors emit light when excited by the electrons – Phosphor brightness decays -- need to refresh the display – Phosphors make up screen elements called pixels

2/14/2016 Basic Definitions Raster: A rectangular array of points or dots. Pixel (Pel): One dot or picture element of the raster Scan line: A row of pixels Video raster devices display an image by sequentially drawing out the pixels of the scan lines that form the raster.

2/14/2016 Frame Buffers l A frame buffer may be thought of as computer memory organized as a two-dimensional array with each (x,y) addressable location corresponding to one pixel. l Bit Planes or Bit Depth is the number of bits corresponding to each pixel. l A typical frame buffer resolution might be 640 x 480 x x 1024 x x 1024 x 24

2/14/ Bit Memory, Monochrome Display (Bitmap Display)

2/14/ Bit Color Display

2/14/2016 True Color Display Red Blue bitplanes, 8 bits per color gun = 16,777,216

2/14/2016 Color Map Look-Up Tables Extends the number of colors that can be displayed by a given number of bit-planes RG B RED GREEN BLUE Pixel displayed at x', y' Pixel in bit map at x', y' 0 x 0 y x max y Frame bufferLook-up tableDisplay

2/14/2016 Pseudo color 2 8 x 24 Color Map LUT

2/14/2016 Drawing l Most computer generated images made up of geometric primitives (polygons, lines, points) l Application draws them by setting bits in the framebuffer l Most graphics applications involve scene database management Scene Database Graphic Application Device Driver Framebuffer Display

2/14/2016 A DDA Line Drawing Function Line(int x1, int y1, int x2, int y2) { int dx = x1 - x2, dy =y2 -y1; int n = max(abs(dx),abs(dy)); float dt = n, dxdt = dx/dt, dydt = dy/dt; float x = x1, y = y1; while (n--) { DrawPoint( round(x), round(y) ); x +=dxdt; y +=dydt; }

2/14/2016 We Can Do Better Than That... l Get rid of all those nasty floating point operations l The idea: find the next pixel from the current one l So which of the green pixels is next?

2/14/2016 The Key l We’re only ever going to go right one pixel, or up and right one pixel (if the slope of the line is between 0 and 1). Call these two choices “E” and “NE” l Let’s think of pixels as “lattice points” on a grid l Given an X coordinate, we only need to choose between y and y+1 (y is the Y coordinate of the last pixel)

2/14/2016 The Midpoint Test l Look at the vertical grid line that our line intersects l On which side of the midpoint (y+1/2) does the intersection lie? l If it’s above the midpoint, go NE, otherwise go E

2/14/2016 Our Example

2/14/2016 Implicit Functions l Normally, a line is defined as y= mx +b l Instead, define,F(x,y) = ax +by + c and let the line be everywhere where F(x,y) = 0 l Now, if F(x,y) > 0, we’re “above” the line, and if F(x,y) < 0, we’re “below” the line

2/14/2016 Who Cares? l We can evaluate the implicit line function at the midpoint to figure out where to draw next! l In fact, we can use the last function evaluation to find the next one cheaply! l For ANY x, y: F(x + 1,y) - F(x,y) = a F(x + 1,y + 1) - F(x,y) = a - b

2/14/2016 Midpoint Algorithm Line(int x1, int y1, int x2, int y2) { int dx = x2 - x1, dy =y2 -y1; int e = 2*dy - dx; int incrE = 2*dy, incrNE = 2*(dy- dx); int x = x1, y = y1; DrawPoint( x, y ); while (x < x2) { x++; if ( e <= 0 ) { e += incrE; } else { y++; e += incrNE; } DrawPoint( x, y ); } l “e” holds the implicit function evaluation at each x value (actually, it’s multiplied by 2, but all we care about is the sign). Easy extension for lines with arbitrary slopes