Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.

Slides:



Advertisements
Similar presentations
SI31 Advanced Computer Graphics AGR
Advertisements

1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
1 Computer Graphics By : Mohammed abu Lamdy ITGD3107 University of Palestine Supervision: Assistant Professor Dr. Sana’a Wafa Al-Sayegh.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Illumination Model & Surface-rendering Method 박 경 와.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Lighting and Shading Wen-Chieh (Steve) Lin
(conventional Cartesian reference system)
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
7M836 Animation & Rendering
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
1 Lecture 9 Lighting Light Sources Reflectance Camera Models.
BPC: Art and Computation – Spring 2007 Computer Graphics – Lighting and Rendering Erik Brisson
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
CS 376 Introduction to Computer Graphics 03 / 30 / 2007 Instructor: Michael Eckmann.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
The Radiosity Method Donald Fong February 10, 2004.
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
CSCE 441 Computer Graphics: Radiosity Jinxiang Chai.
Coordinate Systems X Y Z (conventional Cartesian reference system) X Y Z.
Shading, Surfaces & Textures
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
LIGHTING Part One - Theory based on Chapter 6. Lights in the real world Lights bounce off surfaces and reflect colors, scattering light in many directions.
Shading Surface can either (both) 1.Emit light. E.g. light bult 2.Reflect light. E.g. Mirror.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
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.:
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.
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Global illumination algorithms Graphics.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Illumination and Shading
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
CS 445 / 645 Introduction to Computer Graphics Lecture 15 Shading Shading.
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.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
Illumination and Shading Sang Il Park Sejong University.
CDS 301 Fall, 2008 From Graphics to Visualization Chap. 2 Sep. 3, 2009 Jie Zhang Copyright ©
Illumination Models. Introduction 1 Illumination model: Given a point on a surface, what is the perceived color and intensity? Known as Lighting Model,
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Light. Intensity calculation = wavelength I( ) = wavelength intensity of light reaching eye I( ) = I diff ( ) + I spec ( ) + I refl ( ) + I trans ( )
Computer Graphics: Illumination
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.
Chapter 10: Computer Graphics
Chapter 14 Shading Models.
CS5500 Computer Graphics May 29, 2006
Illumination and Shading
Last Time Liang-Barsky Details Weiler-Atherton clipping algorithm
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Chapter 14 Shading Models.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University

Contents Illumination Models Shading Models for Polygons Surface Detail Shadows Transparency Global Illumination Recursive Ray Tracing Radiosity The Rendering Pipeline

Ambient Light: :intensity of the ambient light :ambient-reflection coefficient: 0~1 Diffuse reflection: :point light source’s intensity :diffuse-reflection coefficient: 0~1 :angle: Illumination Models

Diffuse Reflection

Examples

– :light-source attenuation factor –If the light is a point source –Diffuse reflection: where is the distance the light travels from the point source to the surface Illumination Models

Examples

If an object’s diffuse color is where for the red component however, it should be where is the wavelength Colored Lights and Surfaces then

Specular Reflection

– :specular-reflection coefficient: 0~1 So, the Eq. can be rewritten as: Consider the object’s specular color: – : specular color The Phong Illumination Model

Examples

Calculating the Reflection Vector

The Halfway Vector

Multiple Light Sources If there are light sources, then

Shading Models for Polygons Constant Shading –Faceted Shading –Flat Shading Gouraud Shading –Intensity Interpolation Shading –Color Interpolation Shading Phong Shading –Normal-Vector Interpolation Shading

Constant Shading Assumptions –The light source is at infinity –The viewer is at infinity –The polygon represents the actual surface being modeled and is not an approximation to a curved surface

Gouraud Shading

Gouraud v.s. Phong Shading

Phong Shading

Texture Mapping = Pattern Mapping

Bump Mapping & Displacement Mapping

Shadows If light I is blocked at this point If light I is not blocked at this point

Scan-Line Generation of Shadows

Shadow Volumes

Transparency Interpolated transparency : transparency: 0~1 Filtered transparency :transparency color

Global Illumination

The Rendering Equation – : intensity passing from to – : emitted light intensity from to – : intensity of light reflected from to from the surface at – : the distance between and – : all surfaces if is invisible from if is visible from

Recursive Ray Tracing surface normal reflected ray shadow ray transmitted ray

The Ray Tree Intensity of reflected ray Transmission coefficient :0~1 Intensity of transmitted ray

– : radiosity of patch i – : rate at which light is emitted form patch i – : reflectivity of patch i – : from factor (configuration factor) – : area of patch i Since Thus The Radiosity Equation

Rearranging terms Therefore Progressive refinement The Radiosity Equation

Computing Form Factors

Hemisphere

Hemicube

The Rendering Pipeline Local Illumination Pipelines –z-buffer and Gouraudshading –z-buffer and Phongshading –List-priority algorithm and Phongshading Global Illumination Pipelines –Radiosity –Ray tracing

Rendering Pipeline for z-buffer & Gouraud Shading

Rendering Pipeline for z-buffer & Phone shading

Rendering Pipeline for List-priority Algorithm & Gouraud Shading

Rendering Pipeline for List-priority Algorithm & Phong Shading

Rendering Pipeline for Ray Tracing