Principles of Computer Graphics. Lecture 3 1

Similar documents
Models and Architectures. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

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

Models and Architectures

Introduction to Computer Graphics with WebGL

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

Pipeline Operations. CS 4620 Lecture 10

Pipeline Operations. CS 4620 Lecture 14

Graphics Hardware and Display Devices

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!

The Traditional Graphics Pipeline

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

Course Title: Computer Graphics Course no: CSC209

Graphics and Interaction Rendering pipeline & object modelling

The Traditional Graphics Pipeline

The Traditional Graphics Pipeline

Lecture 15: Shading-I. CITS3003 Graphics & Animation

9. Illumination and Shading

Graphics for VEs. Ruth Aylett

Lecturer Athanasios Nikolaidis

Module Contact: Dr Stephen Laycock, CMP Copyright of the University of East Anglia Version 1

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

Graphics for VEs. Ruth Aylett

Illumination and Shading

CHAPTER 1 Graphics Systems and Models 3

Spring 2012 Final. CS184 - Foundations of Computer Graphics. University of California at Berkeley

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Intro to Ray-Tracing & Ray-Surface Acceleration

Photorealism: Ray Tracing

Computer Graphics I Lecture 11

3D Rasterization II COS 426

CS Computer Graphics: Introduction to Ray Tracing

CS Computer Graphics: Introduction to Ray Tracing

CS 130 Exam I. Fall 2015

Introduction to Computer Graphics 7. Shading

Homework #2. Shading, Ray Tracing, and Texture Mapping

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

Homework #2. Shading, Projections, Texture Mapping, Ray Tracing, and Bezier Curves

Topics and things to know about them:

Clipping. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

Hidden Surfaces II. Week 9, Mon Mar 15

Computer Graphics 1. Chapter 7 (June 17th, 2010, 2-4pm): Shading and rendering. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2010

Comp 410/510 Computer Graphics. Spring Shading

Global Rendering. Ingela Nyström 1. Effects needed for realism. The Rendering Equation. Local vs global rendering. Light-material interaction

CSE4030 Introduction to Computer Graphics

Reflection and Shading

CMSC427 Advanced shading getting global illumination by local methods. Credit: slides Prof. Zwicker

Simple Lighting/Illumination Models

Homework #2. Hidden Surfaces, Projections, Shading and Texture, Ray Tracing, and Parametric Curves

Institutionen för systemteknik

Computer Graphics. Lecture 14 Bump-mapping, Global Illumination (1)

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

Computergrafik. Matthias Zwicker. Herbst 2010

Chapter 7 - Light, Materials, Appearance

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations

Shading, Advanced Rendering. Week 7, Wed Feb 28

End-Term Examination

Clipping and Scan Conversion

CPSC / Illumination and Shading

Computer Graphics. Illumination and Shading

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

The University of Calgary

CEng 477 Introduction to Computer Graphics Fall 2007

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

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

CS 464 Review. Review of Computer Graphics for Final Exam

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.

CS 325 Computer Graphics

Choosing the right course

Rasterization. MIT EECS Frédo Durand and Barb Cutler. MIT EECS 6.837, Cutler and Durand 1

Shading. Why we need shading. Scattering. Shading. Objectives

Orthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

Examples. Clipping. The Rendering Pipeline. View Frustum. Normalization. How it is done. Types of operations. Removing what is not seen on the screen

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

CS602 MCQ,s for midterm paper with reference solved by Shahid

3D Rendering Pipeline (for direct illumination)

1 Attempt any three of the following: 1 5 a. What is Computer Graphics? How image is to be display on Video Display Device?

The Viewing Pipeline Coordinate Systems

CS5620 Intro to Computer Graphics

Computer Graphics. Shading. Based on slides by Dianna Xu, Bryn Mawr College

Duration: 2 hours Max. Marks: 60

Lighting and Shading

CS 4620 Midterm, March 21, 2017

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

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Clipping. Concepts, Algorithms for line clipping. 1 of 16. Andries van Dam. Clipping - 10/12/17

Overview. Pipeline implementation I. Overview. Required Tasks. Preliminaries Clipping. Hidden Surface removal

Illumination Models & Shading

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

Supplement to Lecture 16

WHY WE NEED SHADING. Suppose we build a model of a sphere using many polygons and color it with glcolor. We get something like.

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

CS GAME PROGRAMMING Question bank

Computer Graphics Introduction. Taku Komura

CS4620/5620: Lecture 14 Pipeline

Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~

Computer Graphics Lecture 11

CS 130 Final. Fall 2015

FROM VERTICES TO FRAGMENTS. Lecture 5 Comp3080 Computer Graphics HKBU

CMSC427 Final Practice v2 Fall 2017

Transcription:

Lecture 3 Principles of Computer Graphics Lecture 3 1

Why we learn computer graphics? Appreciate what we see The knowledge can applied when we want to develop specific engineering program that requires computer graphics Some of theories computer graphics has engineering applications Trend: Engineering Computer Graphic Group under Faculty of ME in UT, Austin Lecture 3 2

Definition of Computer Graphics Refers to any computer device or program that makes a computer capable of displaying and manipulating pictures. (Webopedia) Computer graphics generally means creation, storage and manipulation of models and images Lecture 3 3

Computer Graphics i. Interactive ii. Clipping iii. Projection iv. Hidden line or surface removal v. Surface detail and texture Lecture 3 4

i. Interactive Computer Graphics First interactive graphics system, Sketchpad, by Ivan Sutherland Note: using CRT monitor, light pen and function-key panel Lecture 3 5

Interactive Computer Graphics Touch Screen on PDA HP I-Paq TM Wii by Nintendo Virtual Sphere Lecture 3 6

Desktop Semi Immersive e Fully Immersive e.g CAVE Lecture 3 7

Menu and Icon: Interactive Microsoft word with all the menu Lecture 3 8

UI Fact Computer speed increases however human doesn t. Human Computer Interface Research Center Human Interface Technology ogy Lab (University of Washington) Group for User Interface Research (UC Berkeley) Human Computer Interaction Institute (Carnegie Mellon) Graphics, Visualization, and Usability Center (Georgia Tech) Lecture 3 9

Cool fact on UI 90/10 rule 10% of the features using 90% of the time consumed Xerox -First developed mouse -First developed personnel workstation -First developed d overlapping multiwindows i 1985, famous lawsuit, Apple vs. Microsoft over Windows use of icons,,p pointers, etc. Microsoft Windows is considered as a Mac imitation with minimal improvements Apple lost all claims Lecture 3 10

Computer Graphics To create realism in visualization. i. Interactive ii. Clipping iii. Projection iv. Hidden line or surface removal v. Surface detail and texture Lecture 3 11

ii. Clipping Lecture 3 12

Clipping con t Example: Google earth, rendering is carried out when we view on certain area Why? Save memory allocation when only viewport is rendered ed or displayed Problem: display actual shape and display shape Technique: display the visible part and discard the invisible part Lecture 3 13

Clipping Technique Famous technique: Cohen and Sutherland Principle: Edges of the screen is extended to form nine regions. The central region will be the entities to be displayed. Polygon: extra line is created Curves: breaking the curves into segments of straight lines Lecture 3 14

2D CLIPPING The procedure will examine the vertices of the lines using four bits code b3 b2 b1 b0 1001 0001 0101 If TRUE bits = 1 D C b3 = ( x < xmin) vertex to the left of AD b2 = ( x > xmax) vertex to the right of BC b1 = (y < ymin) vertex below AB 1000 Display 0000 0100 b0 = (y > ymax) vertex above CD 1010 A 0010 B 0110 Lecture 3 15

3D Clipping Front plane Center plane Rear plane 011001 011000 011010 001001 001000 001010 101001 101000 101010 010001 010000 010010 000001 000000 000010 100001 100000 100010 010101 010100 010110 000101 000100 000110 100101 100100 100110 27 Regions 6 bit outcode records results of four bounds tests: First bit: outside back plane, behind back plane Second bit: outside front plane, in front of front plane Third bit: outside top plane, above top plane Fourth bit: outside bottom plane, below bottom plane Fifth bit: outside right plane, to right of right plane Sixth bit: outside left plane, to left of left plane Lecture 3 16

Computer Graphics To create realism in visualization. i. Interactive ii. Clipping iii. Projection iv. Hidden line or surface removal v. Surface detail and texture Lecture 3 17

iii. Type of projection Parallel l Projection: Perspective Projection: Used by engineer for measurement Imitates eyes or camera to look more natural SCREEN SCREEN Lecture 3 18

Projection in games Isometric projection has been used in games since it first used in 1982 Lecture 3 19

Computer Graphics To create realism in visualization. i. Interactive ii. Clipping iii. Projection iv. Hidden line or surface removal v. Surface detail and texture Lecture 3 20

iv. Hidden line & Surface Removal Back-Face Removal: faces that are facing camera are visible invisible back face visible invisible back face visible Lecture 3 21

iii. Hidden line & Surface Removalcont Z-depth sorting all the faces (polygons) in the scene according to the largest z coordinate value of each. Lecture 3 22

iii. Hidden line & Surface Removalcont Ray Tracing Method Eq of the circle f(x, y) = 0 2 x + y 2 R 2 = 0 Let s say eye point P = (-3,1) with Vector direction of (0.8, -0.6) f ( Q) = 0 Therefore 2 t 6t + 9 = 0 Q = P+ td Q = ( 31) 3,1) + t (.8, 6) = ( 3 +.8 t,1.6 t ) Then, solve the quadratic equations. imaginary answer: no intersection One answer: tangent to the circle, visible point Two answer: two points, one visible, ibl one hidden Lecture 3 23

Computer Graphics To create realism in visualization. i. Interactive ii. Clipping iii. Projection iv. Hidden line or surface removal v. Surface detail and texture Lecture 3 24

v. Surface detail and texture Type of light Point light source: provide shine on surface Ambient light: a light with uniform brightness Lecture 3 25

Illumination Surfaces comprises of small flat faces called polygon, each patch has its own normal and center point. The basic principle of illumination is light rays will strike on each patch and the light will be absorbed, b reflected or scattered. Realism can be achieved by the combination of spot light and ambient light specular diffuse ambient Lecture 3 26

Shading Basic principle: each vertex on the polygon has its own color. The color will be interpolated as they move toward center of the polygon Flat shading: same color across the polygon Gourand shading: lights are computed at its vertices and interpolation across the polygon is carried out Phong lighting model: linearly interpolate a normal vector N across the polygon on from the normal on each vertex and it is done for each pixel in the polygon. Then color the pixel accordingly. Lecture 3 27

Texture mapping A texture map is applied (mapped) to polygon. 2D mapping is similar to process of applying patterned paper to the object. 3D texture mapping is analogous to craving gprocess. Visual affect or illusion is used to create realism such sense of depth. iclone Lecture 3 28