Local Reflection Model Jian Huang, CS 594, Fall 2002.

Slides:



Advertisements
Similar presentations
Physically Based Shading
Advertisements

1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 6 Physically Based Reflection Model.
SI23 Introduction to Computer Graphics
5.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 5 A Simple Reflection Model.
William A.P. Smith and Edwin R. Hancock Department of Computer Science, University of York, UK CVPR 2009 Reporter: Annie Lin.
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.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Physically Based Illumination Models
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Light Issues in Computer Graphics Presented by Saleema Amershi.
Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance.
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.
University of New Mexico
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.
Rendering (彩現 渲染).
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
Part I: Basics of Computer Graphics
6.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 6 Physically Based Reflection Model.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
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.
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.
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.
Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006
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.
Specular Reflections from Rough Surfaces Lecture #4 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Reflection: What is it? Reflection occurs when light bounces off an object. Reflection allow our eyes to see the world around us!
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.
Illumination.
CS 445 / 645: Introductory Computer Graphics
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
Reflections Specular reflection is the perfect reflection of light from a surface. The law a reflection states that the direction of the incoming ray and.
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.
Taku KomuraComputer Graphics Local Illumination and Shading Computer Graphics – Lecture 10 Taku Komura Institute for Perception, Action.
Steve Sterley. Real World Lighting Physical objects tend to interact with light in three ways: Absorption (black body) Reflection (mirror) Transmission.
Advanced Illumination Models Chapter 7 of “Real-Time Rendering, 3 rd Edition”
Diffuse Reflections from Rough Surfaces Lecture #5
Illumination.
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.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
BRDF models and their use in Global Illumination Algorithms László Szirmay-Kalos.
02/2/05© 2005 University of Wisconsin Last Time Reflectance part 1 –Radiometry –Lambertian –Specular.
Cornell CS465 Spring 2004 Lecture 4© 2004 Steve Marschner 1 Shading CS 465 Lecture 4.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
Physically-based Illumination Model
David Luebke3/16/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
Physically-based Illumination Models (2) CPSC 591/691.
Illumination Models. Introduction 1 Illumination model: Given a point on a surface, what is the perceived color and intensity? Known as Lighting Model,
The incident ray and the reflected ray behave in predictable ways, which leads to the two laws of reflection: 1.The angle of incidence equals the angle.
CPSC 314 LIGHTING AND SHADING UGRAD.CS.UBC.CA/~CS314 slide credits: Mikhail Bessmeltsev et al 1.
Computer Graphics Lecture 30 Mathematics of Lighting and Shading - IV Taqdees A. Siddiqi
Light. Intensity calculation = wavelength I( ) = wavelength intensity of light reaching eye I( ) = I diff ( ) + I spec ( ) + I refl ( ) + I trans ( )
Reflection Models (1) Physically-Based Illumination Models (2)
Reflectance Models CS 319 Advanced Topics in Computer Graphics John C. Hart.
Computer Graphics: Illumination
Advanced Computer Graphics
Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular model
Isaac Gang University of Mary Hardin-Baylor
Presentation transcript:

Local Reflection Model Jian Huang, CS 594, Fall 2002

Phong Reflection Phong specular highlight is a simplification

Phong Model - Limitations The Phong model is based more on common sense than physics –Perfect specular reflection only occurs on a perfect mirror surface stroke by a thin light beam It fails to handle two aspects of specular reflection that are observed in real life: –intensity varies with angle of incidence of light, increasing particularly when light nearly parallel to surface –colour of highlight DOES depend on material, and also varies with angle of incidence

Physically Based Specular Reflection After Phong’s work in 1975, Jim Blinn proposed physically simulated specular component In 1983, Cook and Torrance extended this model to account for the spectral composition of highlights, ie. dependencies on : Material type Angle of incidence With physically based local reflection model, can computer pre-computer BRDF

Modeling the Micro-geometry In reality, surfaces are not perfect mirrors A physically based approach models the surface as micro-facets Each micro-facet is a perfect reflecting surface, ie a mirror, but oriented at an angle to the average surface normal cross-section through the microfaceted surface average surface normal

Specular Reflection The specular reflection from this surface depends on three factors: –the number of facets oriented correctly to the viewer (remember facets are mirrors) –incident light may be shadowed, or reflected light may be masked –Fresnel’s reflectance equations predict colour change depending on angle of incidence

Orientation of Facets Only a certain proportion (D) of facets will in a particular direction, e.g. viewing direction H eye light

A Statistical Distribution Cook and Torrance give formula for D in terms of: –Gaussian distribution: D = k exp[-(  /m) 2 ]  : angle of viewer (angle between N and H) m: standard deviation of the distribution Assumptions: –Small micro-facets is still larger than the wavelength of light in size –Diameter of the light beam can intersect a large number of micro-facets to be statistically correct

Shadowing and Masking Light can be fully reflected Some reflected light may hit other facets Some incident light may never reach a facet Cook and Torrance give formula for G, fraction of reflected light, depending on angle of incidence and angle of view

Degree of Masking and Shadowing Dependent on the ratio l 1 /l 2 G = 1 - l 1 /l 2 L: light vector, V: view vector H = (L+V)/2 For masking: G m = 2(N.H)(N.V)/V.H For shadowing: G s = 2(N.H)(N.L)/V.H l2l2 l1l1

The Glare Term Usually, as the angle between N and V approaches 90, one sees more and more glare –You are seeing more micro-facets Need a term to account for this effect: 1/N.V

Recap: Snell’s Law surface reflected ray incident ray surface normal refracted ray

Fresnel Term In general, light is partly reflected, partly refracted Reflectance = fraction reflected reflected refracted Refractive Index:  = sin  / sin  [Note that  varies with the wavelength of light] The Fresnel term (the reflectance, F), of a perfectly smooth surface is given in terms of refractive index  of material and angle of incidence  F is wavelength dependent! N  

Fresnel Term Don’t know how to calculate F for arbitrary  directly, so usually started with a known or measured F 0. F is a minimum for incident light normal to the surface, ie  = 0 : F 0 = (  - 1 ) 2 / (  + 1 ) 2 So different F 0 for different materials The refractive index  of a material depends on the wavelength,, so have different F 0 for different –burnished copper has roughly: F 0,blue = 0.1, F 0,green = 0.2, F 0,red = 0.5

Fresnel Term As  increases from 0... F  = F 0 + ( 1 - cos  ) 5 ( 1 - F 0 ) –so, as  increases, then F  increases until F 90 = 1 (independent of  ) This means that when light is tangential to the surface: –full reflectance, independent of  –reflected colour independent of the material Thus reflectance does depend on angle of incidence Thus colour of specular reflection does depend on material and incident light angle

Specular Term This leads to: R s ( ) = F(  ) D G / (N.V) where: D = proportion of microfacets aligned to view G = fraction of light shadowed or masked F = Fresnel term N.V glare effect term In practice, R s is calculated for red, green, blue Note it depends on angle of incidence and angle of view

Cook and Torrance Reflection Model The specular term is calculated as described and combined with a uniform diffuse term: –Reflection (angle of incidence, viewing angle) = s R s + d R d (where s + d = 1) –Known as bi-directional reflectance For metals: d = 0, s = 1 For shiny plastics: d = 0.9, s = 0.1 Its BRDF does not depend on the incoming azimuth

Aluminium

Bronze

Chrome

Stainless Steel