Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.

Slides:



Advertisements
Similar presentations
Graphics Pipeline.
Advertisements

3D Graphics Rendering and Terrain Modeling
CHAPTER 12 Height Maps, Hidden Surface Removal, Clipping and Level of Detail Algorithms © 2008 Cengage Learning EMEA.
1 Computer Graphics Chapter 9 Rendering. [9]-2RM Rendering Three dimensional object rendering is the set of collective processes which make the object.
Part I: Basics of Computer Graphics
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
HCI 530 : Seminar (HCI) Damian Schofield.
Chapter 6: Vertices to Fragments Part 2 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
(conventional Cartesian reference system)
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
Part I: Basics of Computer Graphics Rendering Polygonal Objects (Read Chapter 1 of Advanced Animation and Rendering Techniques) Chapter
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Computer Graphics An Introduction. Computer Graphics 26/9/2008Lecture 12 What’s this course all about? We will cover… Graphics programming and algorithms.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
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 Dr. Adam P. Anthony Lectures 22,23.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) CS 426 Intro to 3D Computer Graphics © 2003, 2004, 2005 Jason Leigh Electronic.
COMP SCI 352 Computer Graphics and Animation. Computer Graphics2 My name is … My name is … How to find me How to find me Course Policies Course Policies.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
3D Programming Concepts How objects are described in 3D and Rendering Pipelines – A conceptual way of thinking of the steps involved of converting an abstract.
Chapter 10: Computer Graphics
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS 1 Shading (Shading) & Smooth Shading Graphics.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
Real-Time Computer Graphics. Introduction Aims The aim of the module is to provide a good grounding in the main techniques and algorithms of real-time.
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 Going-through.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
Programming 3D Applications CE Displaying Computer Graphics Week 3 Lecture 5 Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Vector Graphics Digital Multimedia Chap 이병희
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Global Illumination. Local Illumination  the GPU pipeline is designed for local illumination  only the surface data at the visible point is needed to.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
Handle By, S.JENILA AP/IT
1 Angel: Interactive Computer Graphics5E © Addison- Wesley 2009 Image Formation Fundamental imaging notions Fundamental imaging notions Physical basis.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CDS 301 Fall, 2008 From Graphics to Visualization Chap. 2 Sep. 3, 2009 Jie Zhang Copyright ©
Computer Graphics One of the central components of three-dimensional graphics has been a basic system that renders objects represented by a set of polygons.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Chapter 1: Introduction to Graphics. 2 What is computer graphics.
Applications and Rendering pipeline
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
Chapter 10: Computer Graphics
Photorealistic Rendering vs. Interactive 3D Graphics
Computer Graphics Chapter 9 Rendering.
Chapter 10 Computer Graphics
3D Graphics Rendering PPT By Ricardo Veguilla.
The Graphics Rendering Pipeline
Chapter 10: Computer Graphics
Models and Architectures
Chapter 14 Shading Models.
Multimedia Fundamentals
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
Illumination and Shading
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Chapter 14 Shading Models.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition by J. Glenn Brookshear Modified by Senem Kumova Metin

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 10-2 Chapter 10: Computer Graphics 10.1 The Scope of Computer Graphics 10.2 Overview of 3D Graphics 10.3 Modeling 10.4 Rendering

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley D // 3D Graphics // Image processing 2D Graphics: Deals with manipulating two-dimensional images(converts two-dim. Shapes in patterns of pixels to produce an image) 3D Graphics: Deals with producing and displaying images of three-dimensional virtual scenes. Image Processing: Analyses images

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 10-4 Figure 10.1 A “photograph” of a virtual world produced using 3D graphics (from Toy Story by Walt Disney Pictures/Pixar Animation Studios) © Corbis/Sygma

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 10-5 Overview of 3D Graphics A process of 3 steps : –Modeling : Designing a set of objects which are constructed from digitally encoded algorithms –Rendering : Producing 2D image of the scene (Determining the appearance of each pixel and storing them in frame buffer) –Displaying

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 10-6 Figure 10.2 The 3D graphics paradigm

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Modeling Objects Shape: Represented by a polygonal mesh obtained from 1.Traditional mathematical equations (e.g ) 2.Bezier curves and surfaces 3.Procedural models 4.Other methods being researched Surface: Can be represented by a texture map (Texture mapping : Associating color patterns with an object’s surface)

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 10-8 Figure 10.3 A polygonal mesh for a sphere A collection of small flat surfaces = planar patches Collection of patches = polygonal mesh

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 10-9 Figure 10.4 A Bezier curve

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure 10.5 Growing a polygonal mesh for a mountain range

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure 10.6 A scene from Shrek 2 by Dreamworks SKG (© Dreamworks/The Kobal Collection) Search for realism : Modeling of skin Modeling cloth Modeling of human hair

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Modeling entire scene Required information includes –Models of objects –Locations –Sizes –Orientations within the scene This collection of information is called scene graph

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 2. Rendering Determining how objects in a scene graph would appear when projected onto the projection plane Rendering process involves –Light –Surface Interaction –Clipping, Scan conversion, Hidden –surface removal = Rendering pipeline –Shading 10-13

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Light –Surface Interaction: Reflection Versus Refraction Reflection: Light rays bounce off surface. –Specular light –Diffuse light –Ambient light Refraction: Light rays penetrate surface.

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure 10.7 Reflected light

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure 10.8 Specular versus diffuse light Specular light = Parallel light rays reflected from smooth surface => the color of original light Diffuse light = Scattered light rays reflected from non-smooth surface => the color of the object

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure 10.9 Refracted light

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Rendering Pipeline Consists of traditional algorithms for clipping, scan conversion, and shading Often implemented in firmware Used as an abstract tool in graphics applications

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley RENDERING PIPELINE Figure Identifying the region of the scene that lies inside the view volume View Volume : The region in 3 dimensional scene that contains the objects

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Rendering Pipeline Clipping: Restricts attention to objects within view volume Scan Conversion(Rastering): Associates pixel positions with points in scene Shading: Determines appearance of points associated with pixels

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure The scan conversion of a triangular patch

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Scan conversion problems Hidden-surface removal : Indentifying and discarding point in a scene that are blocked from view (e.g. Back face elimination) –Painter’s algorithm (Closer objects override previous result) –Z-buffer (depth buffer, focus on individual pixels) 10-22

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Shading Techniques Shading : Determining the appearance of patches which are selected by rendering process –Flat Shading: Creates faceted appearance –Bump Mapping: Creates bumpy, rounded appearance –Gouraud and Phong Shading: Creates smooth, rounded appearance

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure A sphere as it might appear when rendered by flat shading

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure A conceptual view of a polygonal mesh with normal vectors at its vertices

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure A sphere as it might appear when rendered using bump mapping

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Rendering-Pipeline Hardware Graphic cards OpenGL (open graphics library) 10-27