MIT EECS 6.837, Durand and Cutler Local Illumination.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

Technische Universität München Fakultät für Informatik Computer Graphics SS 2014 Lighting Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
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.
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Basic Principles of Surface Reflectance
Radiometry. Outline What is Radiometry? Quantities Radiant energy, flux density Irradiance, Radiance Spherical coordinates, foreshortening Modeling surface.
Physically Based Illumination Models
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 Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Lighting and Illumination Lighting is the major problem in computer graphics, for either realism or real-time compositions- harder than modeling Consider.
Computer Vision - A Modern Approach Set: Radiometry Slides by D.A. Forsyth Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”?
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.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2008 Tamara Munzner Lighting/Shading II Week.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2006 Don Fussell Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular.
Representations of Visual Appearance COMS 6160 [Fall 2006], Lecture 2 Ravi Ramamoorthi
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
3-D Computer Vision CSc83029 / Ioannis Stamos 3-D Computer Vision CSc Radiometry and Reflectance.
Appearance Models for Graphics COMS , Lecture 2 BRDFs and Radiometry Many slides courtesy Pat Hanrahan:
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)
Rendering General BSDFs and BSSDFs Randy Rauwendaal.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Lighting Week 5, Mon 29 Sep 2003 recap: picking, light sources lighting.
Illumination and Direct Reflection Kurt Akeley CS248 Lecture 12 1 November 2007
Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006
Illumination.
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.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Reflection Models I Today Types of reflection models The BRDF and.
Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham.
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
MIT EECS 6.837, Cutler and Durand 1 MIT Ray Tracing.
Capturing light Source: A. Efros.
David Luebke 1 10/26/2015 Lighting CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Taku KomuraComputer Graphics Local Illumination and Shading Computer Graphics – Lecture 10 Taku Komura Institute for Perception, Action.
Bi-Directional Reflectance Distribution Functions (BRDF’s) Matthew McCrory.
Advanced Illumination Models Chapter 7 of “Real-Time Rendering, 3 rd Edition”
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Illumination.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
© Machiraju/Möller Fundamentals of Rendering - Reflectance Functions cis782 Advanced Computer Graphics Raghu Machiraju.
Lecture Fall 2001 Illumination and Shading in OpenGL Light Sources Empirical Illumination Shading Transforming Normals Tong-Yee Lee.
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Shading.
02/2/05© 2005 University of Wisconsin Last Time Reflectance part 1 –Radiometry –Lambertian –Specular.
Local Illumination and Shading
Cornell CS465 Spring 2004 Lecture 4© 2004 Steve Marschner 1 Shading CS 465 Lecture 4.
Illumination 2013, Fall. Ray Casting Image RayCast(Camera camera, Scene scene, int width, int height) { Image image = new Image(width, height); for (int.
CS348B Lecture 10Pat Hanrahan, Spring 2005 Reflection Models I Today Types of reflection models The BRDF and reflectance The reflection equation Ideal.
David Luebke3/16/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
Illumination Study of how different materials reflect light Definition of radiance, the fundamental unit of light transfer in computer graphics How the.
Physically-based Illumination Models (2) CPSC 591/691.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Reflection Models (1) Physically-Based Illumination Models (2)
Computer Graphics: Illumination
MIT EECS 6.837, Durand and Cutler Transformations & Local Illumination.
Advanced Computer Graphics
BRDFs Randy Rauwendaal.
Radiometry (Chapter 4).
Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular model
Computer Graphics (Fall 2003)
Presentation transcript:

MIT EECS 6.837, Durand and Cutler Local Illumination

MIT EECS 6.837, Durand and Cutler Outline Introduction Radiometry Reflectance Reflectance Models

MIT EECS 6.837, Durand and Cutler The Big Picture

MIT EECS 6.837, Durand and Cutler Radiometry Energy of a photon Radiant Energy of n photons Radiation flux (electromagnetic flux, radiant flux) Units: Watts

MIT EECS 6.837, Durand and Cutler Radiometry Radiance – radiant flux per unit solid angle per unit projected area – Number of photons arriving per time at a small area from a particular direction

MIT EECS 6.837, Durand and Cutler Radiometry Irradiance – differential flux falling onto differential area Irradiance can be seen as a density of the incident flux falling onto a surface. It can be also obtained by integrating the radiance over the solid angle.

MIT EECS 6.837, Durand and Cutler Light Emission Light sources: sun, fire, light bulbs etc. Consider a point light source that emits light uniformly in all directions Surface  n

MIT EECS 6.837, Durand and Cutler Outline Introduction Radiometry Reflectance Reflectance Models

MIT EECS 6.837, Durand and Cutler Reflection & Reflectance Reflection - the process by which electromagnetic flux incident on a surface leaves the surface without a change in frequency. Reflectance – a fraction of the incident flux that is reflected We do not consider: – absorption, transmission, fluorescence – diffraction

MIT EECS 6.837, Durand and Cutler Reflectance Bidirectional scattering-surface distribution Function (BSSRDF) Surface Source: Jensen et.al 01

MIT EECS 6.837, Durand and Cutler Reflectance Bidirectional scattering-surface distribution Function (BSSRDF) Surface

MIT EECS 6.837, Durand and Cutler Reflectance Bidirectional Reflectance Distribution Function (BRDF) ii rr ii rr LiLi LrLr

MIT EECS 6.837, Durand and Cutler Isotropic BRDFs Rotation along surface normal does not change reflectance ii rr dd LiLi LrLr

MIT EECS 6.837, Durand and Cutler Anisotropic BRDFs Surfaces with strongly oriented microgeometry elements Examples: – brushed metals, – hair, fur, cloth, velvet Source: Westin et.al 92

MIT EECS 6.837, Durand and Cutler Properties of BRDFs Non-negativity Energy Conservation Reciprocity

MIT EECS 6.837, Durand and Cutler How to compute reflected radiance? Continuous version Discrete version – n point light sources

MIT EECS 6.837, Durand and Cutler Outline Introduction Radiometry Reflectance Reflectance Models

MIT EECS 6.837, Durand and Cutler How do we obtain BRDFs? Measure BRDF values directly Analytic Reflectance Models – Physically-based models based on laws on physics – Empirical models “ad hoc” formulas that work Source: Greg Ward

MIT EECS 6.837, Durand and Cutler Ideal Diffuse Reflectance Assume surface reflects equally in all directions. An ideal diffuse surface is, at the microscopic level, a very rough surface. – Example: chalk, clay, some paints Surface

MIT EECS 6.837, Durand and Cutler Ideal Diffuse Reflectance BRDF value is constant Surface ii dB dA n

MIT EECS 6.837, Durand and Cutler Ideal diffuse reflectors reflect light according to Lambert's cosine law. Ideal Diffuse Reflectance

MIT EECS 6.837, Durand and Cutler Ideal Diffuse Reflectance Single Point Light Source – k d : The diffuse reflection coefficient. – n: Surface normal. – l: Light direction. Surface  l n

MIT EECS 6.837, Durand and Cutler Ideal Diffuse Reflectance – More Details If n and l are facing away from each other, n l becomes negative. Using max( ( n l ),0 ) makes sure that the result is zero. – From now on, we mean max() when we write. Do not forget to normalize your vectors for the dot product!

MIT EECS 6.837, Durand and Cutler Ideal Specular Reflectance Reflection is only at mirror angle. – View dependent – Microscopic surface elements are usually oriented in the same direction as the surface itself. – Examples: mirrors, highly polished metals. Surface  l n r 

MIT EECS 6.837, Durand and Cutler Ideal Specular Reflectance Special case of Snell’s Law – The incoming ray, the surface normal, and the reflected ray all lie in a common plane. Surface ll l n r rr

MIT EECS 6.837, Durand and Cutler Non-ideal Reflectors Snell’s law applies only to ideal mirror reflectors. Real materials tend to deviate significantly from ideal mirror reflectors. They are not ideal diffuse surfaces either …

MIT EECS 6.837, Durand and Cutler Non-ideal Reflectors Simple Empirical Model: – We expect most of the reflected light to travel in the direction of the ideal ray. – However, because of microscopic surface variations we might expect some of the light to be reflected just slightly offset from the ideal reflected ray. – As we move farther and farther, in the angular sense, from the reflected ray we expect to see less light reflected.

MIT EECS 6.837, Durand and Cutler The Phong Model How much light is reflected? – Depends on the angle between the ideal reflection direction and the viewer direction . Surface  l n r  Camera v 

MIT EECS 6.837, Durand and Cutler The Phong Model Parameters – k s : specular reflection coefficient – q : specular reflection exponent Surface  l n r  Camera v 

MIT EECS 6.837, Durand and Cutler The Phong Model Effect of the q coefficient

MIT EECS 6.837, Durand and Cutler The Phong Model Surface  l n  r r

MIT EECS 6.837, Durand and Cutler Blinn-Torrance Variation Uses the halfway vector h between l and v. Surface l n Camera v h 

MIT EECS 6.837, Durand and Cutler Phong Examples The following spheres illustrate specular reflections as the direction of the light source and the coefficient of shininess is varied. Phong Blinn-Torrance

MIT EECS 6.837, Durand and Cutler The Phong Model Sum of three components: diffuse reflection + specular reflection + “ambient”. Surface

MIT EECS 6.837, Durand and Cutler Ambient Illumination Represents the reflection of all indirect illumination. This is a total hack! Avoids the complexity of global illumination.

MIT EECS 6.837, Durand and Cutler Putting it all together Phong Illumination Model

MIT EECS 6.837, Durand and Cutler For Assignment 3 Variation on Phong Illumination Model

MIT EECS 6.837, Durand and Cutler Adding color Diffuse coefficients: – k d-red, k d-green, k d-blue Specular coefficients: – k s-red, k s-green, k s-blue Specular exponent: q

MIT EECS 6.837, Durand and Cutler Phong Demo

MIT EECS 6.837, Durand and Cutler Fresnel Reflection Increasing specularity near grazing angles. Source: Lafortune et al. 97

MIT EECS 6.837, Durand and Cutler Off-specular & Retro-reflection Off-specular reflection – Peak is not centered at the reflection direction Retro-reflection: – Reflection in the direction of incident illumination – Examples: Moon, road markings

MIT EECS 6.837, Durand and Cutler The Phong Model Is it non-negative? Is it energy-conserving? Is it reciprocal? Is it isotropic?

MIT EECS 6.837, Durand and Cutler Shaders ( Material class) Functions executed when light interacts with a surface Constructor: – set shader parameters Inputs: – Incident radiance – Incident & reflected light directions – surface tangent (anisotropic shaders only) Output: – Reflected radiance

MIT EECS 6.837, Durand and Cutler Questions?