1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 6 Physically Based Reflection Model.

Slides:



Advertisements
Similar presentations
Physically Based Shading
Advertisements

0 - 0.
Addition Facts
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
GR2 Advanced Computer Graphics AGR
GR2 Advanced Computer Graphics AGR
15.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 15 – Visible Surfaces and Shadows.
SI23 Introduction to Computer Graphics
SI23 Introduction to Computer Graphics
GR2 Advanced Computer Graphics AGR
7.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 7 Polygon Shading Techniques.
5.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 5 A Simple Reflection Model.
SI31 Advanced Computer Graphics AGR
8.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 8 Polygon Rendering.
13.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 13 An Introduction to Ray Tracing.
Computer Graphics Inf4/MSc 1 Computer Graphics Lecture 4 View Projection Taku Komura.
William A.P. Smith and Edwin R. Hancock Department of Computer Science, University of York, UK CVPR 2009 Reporter: Annie Lin.
Addition 1’s to 20.
Week 1.
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
Local Reflection Model Jian Huang, CS 594, Fall 2002.
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
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.
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.
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.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
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.
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 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.
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.
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.
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.
Cornell CS465 Spring 2004 Lecture 4© 2004 Steve Marschner 1 Shading CS 465 Lecture 4.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Physically-based Illumination Models (2) CPSC 591/691.
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 ( )
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
Isaac Gang University of Mary Hardin-Baylor
CS 480/680 Computer Graphics Shading.
Presentation transcript:

1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 6 Physically Based Reflection Model

2GR2-00 Phong Reflection Objects tend to have plastic appearance

3GR2-00 Phong Model - Limitations Whats Wrong with Phong n The Phong model is based more on common sense than physics n However 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

4GR2-00 Physically Based Model n Cook and Torrance have proposed an alternative model which has a basis in physics and which more accurately represents specular highlights n Diffuse reflection handled as in Phong model n Start by assuming perfectly smooth surface, ie mirror type surface

5GR2-00 Fresnel Equation 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 equation gives the reflectance, F, of a perfectly smooth surface in terms of refractive index of material and angle of incidence N

6GR2-00 Fresnel Equation Reflectance, F, is a minimum for incident light normal to the surface, ie = 0 : F 0 = ( - 1 ) 2 / ( + 1 ) 2 n So different F 0 for different materials Because the refractive index of a material depends on the wavelength of light,, so we also have different F 0 for different wavelengths – burnished copper has roughly: F 0,blue = 0.1, F 0,green = 0.2, F 0,red = 0.5 n Thus colour of specular reflection does depend on material

7GR2-00 Fresnel Equation 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 ) n This means that when light is tangential to the surface: – full reflectance, independent of – reflected colour independent of the material n Thus reflectance does depend on angle of incidence

8GR2-00 In Reality... n In reality, surfaces are not perfect mirrors n A physically based approach models the surface as microfacets n Each microfacet 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

9GR2-00 Specular Reflection from Microfaceted Surface n The specular reflectance 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 – Fresnels reflectance equations predict colour change depending on angle of incidence

10GR2-00 Orientation of Facets n Only a certain proportion (D) of facets will be correctly aligned with the viewer Cook and Torrance give formula for D in terms of: - angle of viewer - average roughness H eye light

11GR2-00 Shadowing and Masking n Light can be fully reflected n Some reflected light may hit other facets n 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

12GR2-00 Specular Term n This leads to: R s ( ) = F( ) D G / (N.V) where: D = proportion of microfacets correctly aligned G = fraction of light shadowed or masked F = Fresnel factor N.V adjusts for facets visible to viewer n In practice, R s is calculated for red, green, blue n Note it depends on angle of incidence and angle of view

13GR2-00 Cook and Torrance Reflection Model n 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 n For metals: d = 0, s = 1 n For shiny plastics: d = 0.9, s = 0.1 n Further reading: Watt (3rd ed) Chap 7; Foley et al, Ch 16

14GR2-00 Aluminium

15GR2-00 Bronze

16GR2-00 Chrome

17GR2-00 Stainless Steel

18GR2-00 Phong Movie

19GR2-00 Physically Based Movie