Computer Graphics. Lecture 1 Introduction. Doç. Dr. Mehmet Göktürk

Similar documents
History of computer graphics

Choosing the right course

CSE328 Fundamentals of Computer Graphics: Concepts, Theory, Algorithms, and Applications

Graphics Hardware and Display Devices

CMP 477 Computer Graphics Module 2: Graphics Systems Output and Input Devices. Dr. S.A. Arekete Redeemer s University, Ede

Graphics Systems and Models

Image Formation. Introduction to Computer Graphics. Machiraju/Zhang/Möller/Klaffenböck

Image Formation. Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Homework Graphics Input Devices Graphics Output Devices. Computer Graphics. Spring CS4815

Computer Graphics Introduction. Taku Komura

Homework Graphics Input Devices Graphics Output Devices. Computer Graphics. Spring CS4815

What is Output? p Fig. 6-1 Next

Computer Graphics 1 Instructor Information. Books. Graphics? Course Goals and Outcomes. Where are computer graphics? Where are computer graphics?

VTU QUESTION PAPER SOLUTION UNIT -1 INTRODUCTION

Instructor. Goals. Image Synthesis Examples. Applications. Foundations of Computer Graphics. Why Study 3D Computer Graphics?

Overview. Computer Graphics CSE 167

Development of Computer Graphics

CS130 : Computer Graphics Lecture 2: Graphics Pipeline. Tamar Shinar Computer Science & Engineering UC Riverside

Computer Graphics Lecture 2

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Overview. Computer Graphics CS324. OpenGL. Books. Learning Resources. CS131 Notes. 30 Lectures 3hr Exam

Goals. Computer Graphics (Fall 2008) Course Outline. Course Outline. Course Outline. Demo: Surreal and Crazy World (HW 3)

Input: is any data or instructions that are used by a computer.

Sir Sadiq s computer notes for class IX. Chapter no 3. Input/Output Devices

640008: Computer Graphics

Input and Output Devices

Lahore University of Management Sciences. CS 452 Computer Graphics

Example: Resolution of 1024X 768 (1024 screens dots going across and 768 from top to bottom)

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

Topics and things to know about them:

U.C. Berkeley, EECS, Computer Science TAKE HOME EXAM. Your Class Computer Account: DO NOT OPEN THIS INSIDE SODA HALL -- WAIT UNTIL YOU ARE ALONE!

CHAPTER 1 Graphics Systems and Models 3

Computer Graphics - Chapter 1 Graphics Systems and Models

Development of Computer Graphics. mid 1950s SAGE air defense system command & control CRT, light pens

Display Technologies: CRTs Raster Displays

... Output System Layers. Application 2. Application 1. Application 3. Swing. UIKit SWT. Window System. Operating System

Evolution of Imaging Technology in Computer Graphics. Related Areas

Overview of Computer Graphics

Bulbul NUB 1. Outline. Week # 02. Standard Input & Output Devices. Input Device 6/3/2018

EF432. Introduction to spagetti and meatballs

Topic 0. Introduction: What Is Computer Graphics? CSC 418/2504: Computer Graphics EF432. Today s Topics. What is Computer Graphics?

National Chiao Tung Univ, Taiwan By: I-Chen Lin, Assistant Professor

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee

EF432. Introduction to spagetti and meatballs

Computer Graphics. Bing-Yu Chen National Taiwan University

Lahore University of Management Sciences. CS 452 Computer Graphics

Computer Graphics Solved MCQs -Part 2 MCQs Questions

Lecture 2: Digital Drawing. Computer Graphics and Imaging UC Berkeley CS184/284

U.C. Berkeley, EECS, Computer Science TAKE HOME EXAM. Your Class Computer Account: Your student ID #:

Computer Graphics and Visualization. Graphics Systems and Models

Simple Lighting/Illumination Models

Computer Graphics. Instructor: Oren Kapah. Office Hours: T.B.A.

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

The Traditional Graphics Pipeline

Computers Are Your Future

INTRODUCTION. Slides modified from Angel book 6e

Introduction to Computer Graphics. Knowledge basic concepts 2D and 3D computer graphics

Binghamton University. EngiNet. Thomas J. Watson. School of Engineering and Applied Science. State University of New York. EngiNet WARNING CS 560

Animation & Rendering

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13

Computers Are Your Future Prentice-Hall, Inc.

Course Title: Computer Graphics Course no: CSC209

Introduction Rasterization Z-buffering Shading. Graphics 2012/2013, 4th quarter. Lecture 09: graphics pipeline (rasterization and shading)

Arithmetic/logic Unit (ALU)

CS 464 Review. Review of Computer Graphics for Final Exam

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Lecturer Athanasios Nikolaidis

The Traditional Graphics Pipeline

20-Dec-16. Objectives Overview. What Is Output? Objectives Overview. What Is Output? Display devices. Discovering Computers 2012

Inside Your PC. Introduction to Computer Science. Polly Huang NTU EE

Lecture 4: Reflection Models

CMSC 435/634: Introduction to Graphics

The Traditional Graphics Pipeline

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

CIS 581 Interactive Computer Graphics

CS348B: Image Synthesis

Graphics and Interaction Rendering pipeline & object modelling

K Hinds Page - 1 Lecture 2

CS1101: Lecture 21. Organization: Input/Output. Lecture Outline. Buses. A simple personal computer. Buses

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

Survey in Computer Graphics Computer Graphics and Visualization

Chapter 9: Other Peripherals

Introduction to Visualization and Computer Graphics

Chapter Three. Hardware Basics: Peripherals

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

lecture 18 - ray tracing - environment mapping - refraction

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

Computer Graphics. Lecture 1 Introduction to Computer Graphics. Somsak Walairacht - Computer Engineering KMITL

Some Resources. What won t I learn? What will I learn? Topics

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Graphics for VEs. Ruth Aylett

COM337 COMPUTER GRAPHICS Other Topics

3D Rasterization II COS 426

Books: 1) Computer Graphics, Principles & Practice, Second Edition in C JamesD. Foley, Andriesvan Dam, StevenK. Feiner, John F.

Goals. Course Staff. Demo: Surreal (HW 3) Entertainment. Foundations of Computer Graphics (Spring 2012) Why Study 3D Computer Graphics?

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Pipeline Operations. CS 4620 Lecture 10

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner

Computer Graphics I Lecture 11

Transcription:

Computer Graphics Lecture 1 Introduction Doç. Dr. Mehmet Göktürk

Grading Policy Midterm 30% Final 40% Project & Homeworks 25% Attendance & Participation 5% Attendance & Participation is important for borderline students computer graphics expert M. Gokturk 2

Course Outline 1. Introduction, Survey of Computer Graphics (MG) 2. Overview of Graphics Systems, Graphics Hardware (MG) 3. Output Primitives, Drawing algorithms filling algorithms (MG) 4. 2D Geometric Transformations, 2D Viewing and Clipping algorithms (MG) 5. 3D Concepts (MG), Introduction to 3D object representations (MG) 6. 3D Geometric and Modeling Transformations, 3D Viewing (MG) 7. Visible Surface Methods (YG) 8. Illumination Models (YG) 9. Flat, Gouraud, Phong Shading (YG) 10. Texture, Bump Mapping (YG) 11. Object Space Algorithms (YG) 12. Color concepts (YG) M. Gokturk 3

Textbook Computer Graphics, Donald Hearn, M. Pauline Baker; Prentice Hall (C version or the old one) Prentice Hall; ISBN: 0135309247 TEXTBOOK IS REQUIRED!!! (copies are ok) M. Gokturk 4

Google-groups gyte-bil461 @ googlegroups.com Video supplements: http://nptel.iitm.ac.in/video.php? subjectid=106106090 M. Gokturk 5

What is Computer Graphics? Geometric Modeling Image Synthesis M. Gokturk 6

What is Computer Graphics? Hidden Surface Elimination M. Gokturk 7

What is Computer Graphics? Shadows M. Gokturk 8

What is Computer Graphics? Texture Mapping M. Gokturk 9

What is Computer Graphics? Complex Geometry M. Gokturk 10

What is Computer Graphics? Transparency M. Gokturk 11

What is Computer Graphics? Environment Mapping M. Gokturk 12

What is Computer Graphics? Games M. Gokturk 13

What is Computer Graphics? Medical Applications M. Gokturk 14

What is Computer Graphics? Computer Aided Design (CAD) M. Gokturk 15

What is Computer Graphics? Scientific Visualisation M. Gokturk 16

What is Computer Graphics? Films and Animation Pixar: Monster s Inc. Square: Final Fantasy M. Gokturk 17

A lot of stuff! M. Gokturk 18

Image Processing & Computer Vision Image enhancement Feature extraction Pattern recognition 3D model extraction IMAGE PROCESSING AND COMPUTER GRAPHICS ARE REVERSE IN RESPECTIVE DIRECTIONS??? M. Gokturk 19

Image Processing & Computer Vision Computer Graphics creates images from models while Image Processing creates models from images sharpened original edge map M. Gokturk 20

Why Study Computer Graphics? Graphics is cool I like to see what I m doing I like to show people what I m doing Graphics is interesting Involves simulation, algorithms, architecture I ll never get an Oscar for my acting But maybe I ll get one for my CG special effects Graphics is fun M. Gokturk 21

Questions???? (class participation is 5%) M. Gokturk 22

Display Technologies 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 M. Gokturk 23

Electron Gun Contains a filament that, when heated, emits a stream of electrons Electrons are focused with an electromagnet into a sharp beam and directed to a specific point of the face of the picture tube The front surface of the picture tube is coated with small phospher dots 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 M. Gokturk 24

Display Devices cathode deflected electron beam anode (phosphor) Vector display Only lines can be drawn. horizontal deflection amplifier electron beam Locations are converted to analog voltage applied to the deflection circuit of the CRT. Lines drawn by gradual change of voltage. Also known as random scan. Raster display Discrete grid of elements (frame buffers pixels). Arbitrary shapes can be drawn by setting the right elements. The frame buffer is scanned, one line at a time, to preserve the image on the CRT. M. Gokturk 25

Ivan Sutherland (1963) - SKETCHPAD pop-up menus constraint-based drawing hierarchical modeling M. Gokturk 26

Display hardware vector displays 1963 modified oscilloscope 1974 Evans and Sutherland Picture System raster displays 1975 Evans and Sutherland frame buffer 1980s cheap frame buffers bit-mapped personal computers 1990s liquid-crystal displays laptops 2000s micro-mirror projectors digital cinema other stereo, head-mounted displays autostereoscopic displays tactile, haptic, sound M. Gokturk 27

Display Technologies: CRTs Vector Displays Anybody remember Battlezone? Tempest? M. Gokturk 28

Display Technologies: CRTs Vector Displays Early computer displays: basically an oscilloscope Control X,Y with vertical/horizontal plate voltage Often used intensity as Z Name two disadvantages Just does wireframe Complex scenes visible flicker M. Gokturk 29

Display Technologies: CRTs 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 M. Gokturk 30

Display Technologies: CRTs 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 Solution: special memory to buffer image with scan-out synchronous to the raster. We call this the framebuffer. M. Gokturk 31

Display Technologies: CRTs Phosphorus Flourescence: Light emitted while the phosphor is being struck by electrons Phosphorescence: Light emitted once the electron beam is removed Persistence: The time from the removal of the excitation to the moment when phosphorescence has decayed to 10% of the initial light output M. Gokturk 32

Display Technologies: CRTs 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 Typically 60 times/sec Varies with intensity, individuals, phosphor persistence, lighting... M. Gokturk 33

Display Technologies: CRTs 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/30 Sec 1/60 Sec 1/60 Sec 1/60 Sec 1/60 Sec Field 1 Field 2 Field 1 Field 2 Frame Frame M. Gokturk 34

Display Technologies: CRTs Raster Displays Scanning (left to right, top to bottom) Vertical Sync Pulse: Signals the start of the next field Vertical Retrace: Time needed to get from the bottom of the current field to the top of the next field Horizontal Sync Pulse: Signals the start of the new scan line Horizontal Retrace: The time needed to get from the end of the current scan line to the start of the next scan line M. Gokturk 35

Display Technology: Color CRTs Color CRTs are much more complicated Requires manufacturing very precise geometry Uses a pattern of color phosphors on the screen: Delta electron gun arrangement In-line electron gun arrangement Why red, green, and blue phosphors? M. Gokturk 36

Display Technology: Color CRTs Color CRTs have Three electron guns A metal shadow mask to differentiate the beams M. Gokturk 37

Triads and color mixing SMPTE color bars closeup on a Sony Trinitron monitor M. Gokturk 38

Triads versus pixels integral pixel font (Sony Trinitron) integral pixel font (IBM LCD) antialiased font (Adobe Acrobat) subpixel font (Adobe Cooltype) M. Gokturk 39

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

Terminology Pixel: Picture element - Smallest accessible element in a picture. - Usually rectangular or circular in shape. Aspect Ratio: Ratio between physical dimensions of a pixel (not necessarily 1!!). Dynamic Range: The ratio between the minimal (not zero!) and maximal light intensity a display pixel can emit. M. Gokturk 41

Terminology (cont d) Resolution: The number of distinguishable rows and columns in the device. Measured in - Absolute values (1K x 1K) or, - Density values (300 dots per inch). 1 drawing 2 8 Screen Space: A discrete 2D Cartesian coordinate system of the screen pixels. 1 2 6x8 Object Space: The 3D Cartesian coordinate system of the universe, in which the objects (to be displayed) are embedded. 6 y z M. Gokturk 42 x

Display Technology: LCDs 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º. M. Gokturk 43

Display Technology: LCDs 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º M. Gokturk 44

Display Technology: LCDs 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 M. Gokturk 45

Display Technology: Plasma 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 M. Gokturk 46

Display Technology Plasma Display Panel Pros Cons Large viewing angle Good for large-format displays Fairly bright Expensive Large pixels (~1 mm versus ~0.2 mm) Phosphors gradually deplete Less bright than CRTs, using more power M. Gokturk 47

Display Technology: DMD / DLP Digital Micromirror Devices (projectors) or Digital Light Processing Microelectromechanical (MEM) devices, fabricated with VLSI techniques M. Gokturk 48

Display Technology: DMD / DLP DMDs are truly digital pixels Vary grey levels by modulating pulse length Color: multiple chips, or color-wheel Great resolution Very bright Flicker problems M. Gokturk 49

Display Technologies: Organic LED Arrays Organic Light-Emitting Diode (OLED) Arrays The display of the future? Many think so. OLEDs function like regular semiconductor LEDs But they emit light Thin-film deposition of organic, light-emitting molecules through vapor sublimation in a vacuum. Dope emissive layers with fluorescent molecules to create color. http://www.kodak.com/global/en/professional/products/specialproducts/oel/creating.jhtml M. Gokturk 50

Display Technologies: Organic LED Arrays 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 Available for cell phones and car stereos OLED cons: Not very robust, display lifetime a key issue Currently only passive matrix displays Passive matrix: Pixels are illuminated in scanline order, but the lack of phospherescence causes flicker Active matrix: A polysilicate layer provides thin film transistors at each pixel, allowing direct pixel access and constant illum. M. Gokturk 51

Hardcopy Devices Plotter: flatbed, drum. Vector based with color pens. Dot Matrix Printer: Raster based. 7 to 24 scan lines (= pin heads) at a time. Laser Printer: Raster based. Laser beam discharges a precharged drum to bind a powdered toner. Then, heat fuses the dry toner to paper. M. Gokturk 52

Pinch roll plotter (courtesy Hewlett-Packard Co.) Moving arm flatbed plotter (courtesy Xynetics, Inc.) M. Gokturk 53

Color Printing Technologies Ink Jet Sprays microscopic dots of ink through small holes to form dots on paper. Thermal Wax Creates colors by melting and bonding color wax dots (CMYK or RGB) onto (special) paper. Dye Sublimation Creates continuous-tone by heating CMYK dyes until they turn into gas (sublimate), that fuses into the paper. Film Recorder A camera in front of a designated B&W CRT. RGB channels are sent one at a time through an appropriate filter. M. Gokturk 54

Standard Input Devices Keyboard - For alphanumeric input. Mouse/Trackball - A two degrees of freedom device controlled by rolling a ball. - Provides relative movement information. M. Gokturk 55

2D Input Devices Joystick - Controlled by potentiometers. - Provides relative movement information. Digitizer/Tablet - Controlled by electro-magnetic or sonar sensing. - Provides absolute position information. Touch Screen - A CRT screen that can sense pressure on its surface. Light Pen - Synchronized with the CRT scan, it can locate a position on screen. M. Gokturk 56

Light pen (courtesy Adage, Inc.) Joystick Trackball (courtesy (courtesy Measurement Systems, Inc.) Measurement Systems, Inc.) M. Gokturk 57

3D Input Devices Dataglove/Polyhemus Provides six degrees of freedom (three rotation/translation). Head mounted Display Measures position and orientation like the Polyhemus. Space Ball Six degrees of freedom sphere (three rotation/translation). M. Gokturk 58

Head-mounted display and tracker Datagloves (courtesy Nasa Ames Research Center) Spaceball (courtesy Spatial Systems, Inc.) M. Gokturk 59

Image Capture Video Camera Capture an array of image pixels by CCD. Low resolution. Scanner Digitizes a hard copy image. High resolution. M. Gokturk 60

Rendering 1960s - the visibility problem Roberts (1963), Appel (1967) - hidden-line algorithms Warnock (1969), Watkins (1970) - hidden-surface algorithms Sutherland (1974) visibility = sorting M. Gokturk 61

1960s - the visibility problem Roberts (1963), Appel (1967) - hiddenline algorithms Warnock (1969), Watkins (1970) - hidden-surface algorithms Sutherland (1974) - visibility = sorting 1970s - raster graphics Gouraud (1971) - diffuse lighting Blinn (1974) - curved surfaces, texture Phong (1974) - specular lighting Catmull (1974) - Z-buffer hidden-surface Crow (1977) - anti-aliasing M. Gokturk 62

1960s - the visibility problem Roberts (1963), Appel (1967) - hidden-line algorithms Warnock (1969), Watkins (1970) - hiddensurface algorithms Sutherland (1974) - visibility = sorting 1970s - raster graphics Gouraud (1971) - diffuse lighting Phong (1974) - specular lighting Blinn (1974) - curved surfaces, texture Catmull (1974) - Z-buffer hidden-surface algorithm Crow (1977) - anti-aliasing M. Gokturk 63

early 1980s - global illumination Whitted (1980) - ray tracing Goral, Torrance et al. (1984), Cohen (1985) - radiosity Kajiya (1986) - the rendering equation M. Gokturk 64

early 1980s - global illumination Whitted (1980) - ray tracing Goral, Torrance et al. (1984), Cohen (1985) - radiosity Kajiya (1986) - the rendering equation late 1980s - photorealism Cook (1984) - shade trees Perlin (1985) - shading languages Hanrahan and Lawson (1990) - RenderMan M. Gokturk 65

early 1990s - non-photorealistic rendering Drebin et al. (1988), Levoy (1988) - volume rendering Haeberli (1990) - impressionistic paint programs Salesin et al. (1994-) - automatic pen-and-ink illustration Meier (1996) - painterly rendering M. Gokturk 66

early 1990s - non-photorealistic rendering Drebin et al. (1988), Levoy (1988) - volume rendering Haeberli (1990) - impressionistic paint programs Salesin et al. (1994-) - automatic pen-and-ink illustration Meier (1996) - painterly rendering M. Gokturk 67

Modeling polygons constructive solid geometry parametric surfaces implicit surfaces subdivision surfaces particle systems volumes M. Gokturk 68

Animation scripted key-frame interpolation inverse kinematics dynamics M. Gokturk 69

The graphics pipeline the traditional pipeline modeling animation rendering the new pipeline? 3D scanning motion capture image-based rendering M. Gokturk 70

Assignment Obtain the textbook somehow Read chapter 1 and 2 There will be quiz next week M. Gokturk 71