Schedule Update GP 4 – Tesselation/Cg GDS 4 – Subdiv Surf. GP 5 – Object Modeling Lab: Mini-proj Setup GDS 5 – Maya Modeling MCG 6 – Intersections GP 6.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

SI23 Introduction to Computer Graphics
7.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 7 Polygon Shading Techniques.
Virtual Realism TEXTURE MAPPING. The Quest for Visual Realism.
Polygon Rendering Flat Rendering Goraud Rendering Uses Phong Reflectance Phong Rendering.
3D Graphics Rendering and Terrain Modeling
Computer Graphics Inf4/MSc Computer Graphics Lecture 13 Illumination I – Local Models.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
Illumination and Shading
Computer Graphics - Class 10
Rendering (彩現 渲染).
1 of 29 Interesting Illumination Demo There’s a very nice Java illumination model demo which may help you understand the effects of different kinds of.
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
IN4151 Introduction 3D graphics 1 Introduction 3D Computer Graphics part 1 Projective display Viewing pipeline Graphics hardware Image-based rendering.
(conventional Cartesian reference system)
X86 and 3D graphics. Quick Intro to 3D Graphics Glossary: –Vertex – point in 3D space –Triangle – 3 connected vertices –Object – list of triangles that.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Adv. Computer Graphics CS6500, Spring 2003.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
©Larry F. Hodges (modified by Amos Johnson) 1 Shading Models.
Coordinate Systems X Y Z (conventional Cartesian reference system) X Y Z.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
Part I: Basics of Computer Graphics Rendering Polygonal Objects (Read Chapter 1 of Advanced Animation and Rendering Techniques) Chapter
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Illumination and Shading. Illumination (Lighting) Model the interaction of light with surface points to determine their final color and brightness OpenGL.
Fundamentals of Computer Graphics Part 6 Shading prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared with Angel,E.:
Polygon Shading. Assigning color to a shape to make graphical scenes look realistic, or artistic, or whatever effect we’re attempting to achieve But first.
CS 445 / 645 Introduction to Computer Graphics Lecture 18 Shading Shading.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Advanced Computer Graphics March 06, Grading Programming assignments Paper study and reports (flipped classroom) Final project No written exams.
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.
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Taku KomuraComputer Graphics Local Illumination and Shading Computer Graphics – Lecture 10 Taku Komura Institute for Perception, Action.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Computing & Information Sciences Kansas State University Lecture 10 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Smooth Shading Gouraud Phong
Komputer Grafik 2 (AK045206) Shading 1/17 Realisme : Shading.
Illumination and Shading
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
CS 445 / 645 Introduction to Computer Graphics Lecture 15 Shading Shading.
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.
Lecture Fall 2001 Illumination and Shading in OpenGL Light Sources Empirical Illumination Shading Transforming Normals Tong-Yee Lee.
CS 376 Introduction to Computer Graphics 04 / 02 / 2007 Instructor: Michael Eckmann.
11/5/2002 (c) University of Wisconsin, CS 559 Last Time Local Shading –Diffuse term –Specular term –All together –OpenGL brief overview.
Local Illumination and Shading
Where We Stand So far we know how to: –Transform between spaces –Rasterize –Decide what’s in front Next –Deciding its intensity and color.
Lighting and Shading Part 2. Global Ambient Light There are at least 8 OpenGL lights and 1 Global Ambient Setting the Global Ambient globalAmbient[] =
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
Introduction to Meshes Lecture 22 Mon, Oct 20, 2003.
CDS 301 Fall, 2008 From Graphics to Visualization Chap. 2 Sep. 3, 2009 Jie Zhang Copyright ©
David Luebke3/16/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Illumination and Shading. Illumination (Lighting) Model the interaction of light with surface points to determine their final color and brightness OpenGL.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
CS552: Computer Graphics Lecture 35: Rendering. Recap Illumination Model o Light Source and surface o Effect of multiple light source o Colored lights.
POLYGON MESH Advance Computer Graphics
Shadows Depth Map shadows Raytrace shadows.
3D Graphics Rendering PPT By Ricardo Veguilla.
Chapter 14 Shading Models.
CSC461: Lecture 23 Shading Computation
Vectors, Normals, & Shading
Introduction to Meshes
Illumination and Shading
Chapter 14 Shading Models.
Introduction to Meshes
Presentation transcript:

Schedule Update GP 4 – Tesselation/Cg GDS 4 – Subdiv Surf. GP 5 – Object Modeling Lab: Mini-proj Setup GDS 5 – Maya Modeling MCG 6 – Intersections GP 6 – Raytracing Lab: Mini-proj DUE GDS 6/7 – Raytracing Lab: Your object GP 7 – Texture Mapping GDS 8/9 – Textures + Non-realistic Texturing GP 8 – Viewing transforms GDS 10 – Cameras and Framing GP 9 – Real-Time G.I. GDS 11 – Global Illumination GP 10 – Hidden Surfaces GDS 12/13 – Lighting + Non-real Lighting GDS 14 – Shadows + Non-real Shadows

Tesselation and Shading Comptuer Graphics Programming R. Hoetzlein, 2011 Department of Architecture and Media Technology

When does the light equation get applied? I = N · L Lets assume the Light (L) is in a constant direction.

Object Representation OpenGL uses Polygonal modeling. All objects are approximated by small polygons.

Tesselation… Division of surface into polygons. OpenGL does not typically do this step for you..

Rasterization… What color is each pixel? We could calculate Phong reflectance model at each pixel.. eg. I = N · L N Question: What is the surface normal at each pixel? pixels polygon

What can we say about the surface normals on a flat surface or plane?

Rasterization… What color is each pixel? pixels polygon NNNNN

Using the face normal for each pixel is called flat shading. Every pixel gets the surface normal of the whole polygon. glShadeModel ( GL_FLAT ); Flat Shading

One solution… Increase tesselation… Uses a lot of polygons. To get correct images, polygons must be smaller than a pixel.

Gouraud Shading Henri Gouraud (French), 1971 “Continuous shading of curved surfaces” What if we interpolate the intensity across the polygons?

Gouraud Shading Flat Shading Notice Mach effect at edges of polygons. Mach Bands are an optical illusion. Our eye notices discontinuous changes in intensity as a jump in brightness.

Flat Shading Gouraud Shading two polygons First order discontinuous Second order discontinuous

Lets try again… Correct lighting is based on the surface normal.

What is the surface normal at this point? How about here?

Interpolating the intensity is incorrect, because we are basically guessing intensity instead of using a surface normal… Gouraud Shading N?

A vertex connecting two or more faces has a discontinuous normal.

Bui Phong Phong Interpolation.. (do not confuse with Phong Reflectance model) What we want to do is, interpolate the surface normal across polygons…

Gouraud Shading two polygons Phong Shading

Flat Shading Gouraud Shading Phong Shading

Flat ShadingNo interpolation. Each pixel uses surface normal of the whole polygon. Gouraud ShadingIntensity interpolation. Each pixel interpolates the intensity of the lighting at the polygon centers. Phong ShadingSurface normal interpolation. Each pixel interpolates the surface normal, and then computes illumination based on that normal. Shading Models

Gouraud Shading Phong Shading Flat Shading How many different normals are there? Performance

About OpenGL OpenGL implements the: Phong Reflectance Model AND Gouraud Shading OpenGL does not do Phong Shading. Reflectance ModelGives an intensity at a point based on the light vector, normal vector, and other factors. Reflectance model determines how light moves. E.g. Lambert, Phong, Blinn Shading ModelDetermines how to interpolate across polygonal surfaces to make them look smooth. E.g. Flat, Gouraud, Phong shading

Shading Models Coke Can Challenge: Which shading model should be used?