Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

SI31 Advanced Computer Graphics AGR
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 6.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
RADIOSITY Submitted by CASULA, BABUPRIYANK. N. Computer Graphics Computer Graphics Application Image Synthesis Animation Hardware & Architecture.
Physically Based Illumination Models
Illumination Models Radiosity Chapter 14 Section 14.7 Some of the material in these slides may have been adapted from University of Virginia, MIT, Colby.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
Computer Vision - A Modern Approach Set: Radiometry Slides by D.A. Forsyth Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”?
Light Issues in Computer Graphics Presented by Saleema Amershi.
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.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Introduction to Computer Vision CS / ECE 181B Tues, May 18, 2004 Ack: Matthew Turk (slides)
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.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Ray Tracing Jerry Sui Adam Conner. Part I – Introduction to Ray Tracing Final Product.
CSCE 441 Computer Graphics: Radiosity Jinxiang Chai.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Course Website: Computer Graphics 16: Illumination.
Lighting affects appearance. Light Source emits photons Photons travel in a straight line When they hit an object they: bounce off in a new direction.
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.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
Illumination.
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.:
CS 445 / 645: Introductory Computer Graphics
EECS 274 Computer Vision Light and Shading. Radiometry – measuring light Relationship between light source, surface geometry, surface properties, and.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
MIT EECS 6.837, Durand and Cutler Local Illumination.
-Global Illumination Techniques
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
David Luebke 1 10/26/2015 Lighting CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Illumination.
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
Illumination and Shading
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
Illumination 2013, Fall. Ray Casting Image RayCast(Camera camera, Scene scene, int width, int height) { Image image = new Image(width, height); for (int.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Lighting Lighting.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
CS 325 Introduction to Computer Graphics 04 / 07 / 2010 Instructor: Michael Eckmann.
Distributed Ray Tracing. Can you get this with ray tracing?
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.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Light. Intensity calculation = wavelength I( ) = wavelength intensity of light reaching eye I( ) = I diff ( ) + I spec ( ) + I refl ( ) + I trans ( )
Computer Graphics: Illumination
Graphics Graphics Korea University kucg.korea.ac.kr 1 Lights & Material 고려대학교 컴퓨터 그래픽스 연구실.
7. Illumination Phong Illumination Diffuse, Specular and Ambient
Illumination 2016, Fall.
Shading Revisited Some applications are intended to produce pictures that look photorealistic, or close to it The image should look like a photograph A.
The Rendering Equation
Illumination and Shading
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
CS 480/680 Computer Graphics Shading.
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Presentation transcript:

Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실

CGVR Graphics Korea University cgvr.korea.ac.kr Illumination How do We Compute Radiance for a Sample Ray? Must derive computer models for...  Emission at light sources  Scattering at surfaces  Reception at the camera WireframeWithout Illumination Direct Illumination

CGVR Graphics Korea University cgvr.korea.ac.kr Overview Direct Illumination Emission at light sources Scattering at surfaces Global Illumination Shadows Refractions Inter-object reflections Direct Illumination

CGVR Graphics Korea University cgvr.korea.ac.kr Overview Direct Illumination Emission at light sources Scattering at surfaces Global Illumination Shadows Refractions Inter-object reflections Direct Illumination

CGVR Graphics Korea University cgvr.korea.ac.kr Modeling Light Source I L (x,y,z,  ) Describes the intensity of energy, Leaving a light source Arriving at location(x,y,z) From direction (  ) With wavelength

CGVR Graphics Korea University cgvr.korea.ac.kr Empirical Model Ideally Measure Irradiant Energy for “All” Situations Too much storage Difficult in practice

CGVR Graphics Korea University cgvr.korea.ac.kr Light Source Model Simple Mathematical Models: Point light Directional light Spot light

CGVR Graphics Korea University cgvr.korea.ac.kr Point Light Source Models Omni-Directional Point Source (E.g., Bulb) Intensity (I 0 ) Position (px, py, pz) Factors (k c, k l, k q ) for attenuation with distance (d)

CGVR Graphics Korea University cgvr.korea.ac.kr Directional Light Source Models Point Light Source at Infinity (E.g., Sun) Intensity (I 0 ) Direction (dx,dy,dz) No attenuation with distance

CGVR Graphics Korea University cgvr.korea.ac.kr Spot Light Source Models Point Light Source with Direction (E.g., Luxo) Intensity (I 0 ), Position (px, py, pz) Direction (dx, dy, dz) Attenuation

CGVR Graphics Korea University cgvr.korea.ac.kr Overview Direct Illumination Emission at light sources Scattering at surfaces Global Illumination Shadows Refractions Inter-object reflections Direct Illumination

CGVR Graphics Korea University cgvr.korea.ac.kr Modeling Surface Reflection R s ( ,  ) Describes the amount of incident energy Arriving from direction (  ) Leaving in direction ( ,  ) With wavelength

CGVR Graphics Korea University cgvr.korea.ac.kr Empirical Model Ideally Measure Radiant Energy for “All” Combinations of Incident Angles Too much storage Difficult in practice

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Simple Analytic Model: Diffuse reflection + Specular reflection + Emission + “Ambient” Based on model proposed by Phong Based on model proposed by Phong

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Simple Analytic Model: Diffuse reflection + Specular reflection + Emission + “Ambient” Based on model proposed by Phong Based on model proposed by Phong

CGVR Graphics Korea University cgvr.korea.ac.kr Diffuse Reflection Assume Surface Reflects Equally in All Directions Examples: chalk, clay

CGVR Graphics Korea University cgvr.korea.ac.kr Diffuse Reflection How Much Light is Reflected? Depends on angle of incident light dL  dA  cos 

CGVR Graphics Korea University cgvr.korea.ac.kr Diffuse Reflection Lambertian Model Cosine law (dot product)

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Simple Analytic Model: Diffuse reflection + Specular reflection + Emission + “Ambient” Based on model proposed by Phong Based on model proposed by Phong

CGVR Graphics Korea University cgvr.korea.ac.kr Specular Reflection Reflection is Strongest Near Mirror Angle Examples: mirrors, metals

CGVR Graphics Korea University cgvr.korea.ac.kr Specular Reflection How Much Light is Seen? Depends on angle of incident light and angle to viewer

CGVR Graphics Korea University cgvr.korea.ac.kr Specular Reflection Phong Model {cos(  )} n

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Simple Analytic Model: Diffuse reflection + Specular reflection + Emission + “Ambient” Based on model proposed by Phong Based on model proposed by Phong

CGVR Graphics Korea University cgvr.korea.ac.kr Emission Represents Light Emitting Directly From Polygon Emission ≠ 0

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Simple Analytic Model: Diffuse reflection + Specular reflection + Emission + “Ambient” Based on model proposed by Phong Based on model proposed by Phong

CGVR Graphics Korea University cgvr.korea.ac.kr Ambient Term Represents Reflection of All Indirect Illumination This is a total hack (avoids complexity of global illumination)!

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Simple Analytic Model: Diffuse reflection + Specular reflection + Emission + “Ambient”

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Simple Analytic Model: Diffuse reflection + Specular reflection + Emission + “Ambient”

CGVR Graphics Korea University cgvr.korea.ac.kr Reflectance Model Sum Diffuse, Specular, Emission, and Ambient

CGVR Graphics Korea University cgvr.korea.ac.kr Surface Illumination Calculation Single Light Source:

CGVR Graphics Korea University cgvr.korea.ac.kr Surface Illumination Calculation Multiple Light Sources:

CGVR Graphics Korea University cgvr.korea.ac.kr Overview Direct Illumination Emission at light sources Scattering at surfaces Global Illumination Shadows Refractions Inter-object reflections Global Illumination

CGVR Graphics Korea University cgvr.korea.ac.kr Global Illumination

CGVR Graphics Korea University cgvr.korea.ac.kr Shadows Shadow Terms Tell Which Light Sources are Blocked Cast ray towards each light source L i S i = 0 if ray is blocked, S i = 1 otherwise Shadow Term

CGVR Graphics Korea University cgvr.korea.ac.kr Ray Casting Trace Primary Rays from Camera Direct illumination from unblocked lights only

CGVR Graphics Korea University cgvr.korea.ac.kr Recursive Ray Tracing Also Trace Secondary Rays from Hit Surfaces Global illumination from mirror reflection and transparency

CGVR Graphics Korea University cgvr.korea.ac.kr Mirror Reflection Trace Secondary Ray in Direction of Mirror Reflection Evaluate radiance along secondary ray and include it into illumination model Radiance for mirror reflection ray

CGVR Graphics Korea University cgvr.korea.ac.kr Transparency Trace Secondary Ray in Direction of Refraction Evaluate radiance along secondary ray and include it into illumination model Radiance for refraction ray

CGVR Graphics Korea University cgvr.korea.ac.kr Transparency Transparency coefficient is fraction transmitted K T = 1 if object is translucent, K T = 0 if object is opaque 0 < K T < 1 if object is semi-translucent Transparency Coefficient

CGVR Graphics Korea University cgvr.korea.ac.kr Refractive Transparency For Thin Surfaces, Can Ignore Change in Direction Assume light travels straight through surface

CGVR Graphics Korea University cgvr.korea.ac.kr Refractive Transparency For Solid Objects, Apply Snell’s Law:  r sin  r  i  sin  i

CGVR Graphics Korea University cgvr.korea.ac.kr Summary Direct Illumination Ray casting Usually use simple analytic approximations for light source emission and surface reflectance Global illumination Recursive ray tracing Incorporate shadows, mirror reflections, and pure refractions

CGVR Graphics Korea University cgvr.korea.ac.kr Illumination Terminology Radiant power [flux] (Φ) Rate at which light energy is transmitted (in Watts). Radiant Intensity (I) Power radiated onto a unit solid angle in direction( in Watt/sr)  e.g.: energy distribution of a light source (inverse square law) Radiance (L) Radiant intensity per unit projected surface area( in Watts/m 2 sr)  e.g.: light carried by a single ray (no inverse square law) Irradianc (E) Incident flux density on a locally planar area (in Watts/m 2 ) Radiosity (B) Exitant flux density from a locally planar area ( in Watts/m 2 )