Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular model

Slides:



Advertisements
Similar presentations
Physically Based Shading
Advertisements

1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 6 Physically Based Reflection Model.
William A.P. Smith and Edwin R. Hancock Department of Computer Science, University of York, UK CVPR 2009 Reporter: Annie Lin.
Local Reflection Model Jian Huang, CS 594, Fall 2002.
Experimental Analysis of BRDF Models Addy Ngan 1 Frédo Durand 1 Wojciech Matusik 2 MIT CSAIL 1 MERL 2 Eurographics Symposium on Rendering 2005.
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.
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.
Photon Tracing with Arbitrary Materials Patrick Yau.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
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
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
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.
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.
Specular Reflections from Rough Surfaces Lecture #4 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
© 2005 University of Wisconsin
CS 445 / 645: Introductory Computer Graphics
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Reflection Models I Today Types of reflection models The BRDF and.
Measuring and Modeling Anisotropic Reflection Gregory J. Ward Lighting Systems Research Group Lawrence Berkeley Laboratory.
Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham.
02/25/05© 2005 University of Wisconsin Last Time Meshing Volume Scattering Radiometry (Adsorption and Emission)
MIT EECS 6.837, Durand and Cutler Local Illumination.
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.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Advanced Illumination Models Chapter 7 of “Real-Time Rendering, 3 rd Edition”
Diffuse Reflections from Rough Surfaces Lecture #5
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production SIGGRAPH 2010 Physically Based Shading Models in Film and Game Production.
Reflection models Digital Image Synthesis Yung-Yu Chuang 11/01/2005 with slides by Pat Hanrahan and Matt Pharr.
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.
© Machiraju/Möller Fundamentals of Rendering - Reflectance Functions cis782 Advanced Computer Graphics Raghu Machiraju.
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.
CS348B Lecture 10Pat Hanrahan, Spring 2005 Reflection Models I Today Types of reflection models The BRDF and reflectance The reflection equation Ideal.
Local Reflection Models
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Reflection Models Previous lecture Phong model Microfacet models.
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.
Computer Graphics Lecture 30 Mathematics of Lighting and Shading - IV Taqdees A. Siddiqi
Reflection Models (1) Physically-Based Illumination Models (2)
Reflectance Models CS 319 Advanced Topics in Computer Graphics John C. Hart.
Computer Graphics (Fall 2006) COMS 4160, Lecture 16: Illumination and Shading 1
Shading CS 465 Lecture 4 © 2004 Steve Marschner • 1.
© University of Wisconsin, CS559 Spring 2004
Digital Image Synthesis Yung-Yu Chuang 11/16/2006
Advanced Computer Graphics
BRDFs Randy Rauwendaal.
Radiometry (Chapter 4).
Digital Image Synthesis Yung-Yu Chuang 11/16/2006
Shading Variation in observed color across an object
CS-378: Game Technology Lecture #3: Shading Prof. Okan Arikan
Physically-Based Rendering
CS5500 Computer Graphics May 29, 2006
Computer Graphics (Fall 2003)
Presentation transcript:

Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular model Ideal diffuse (Lambertian) model Phong University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Microfacet Reflectance Models University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Outline Microfacet models Lafortune’s model Two layer models Diffuse Oren-Nayar Specular Torrance-Sparrow Blinn Ashikhmin-Shirley (anisotropic) Ward Schlick Lafortune’s model Two layer models University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Microfacet Models (Text ch. 9.4) Model surface as set of polygonal facets Capture surface roughness effects Microfacets can be diffuse or specular Use facet distribution to model roughness Statistical model of microscopic effects gives macroscopic appearance More realistic, particularly at high incidence angles University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Basic microfacet modeling Surface normal distribution How the surface normals of the facets are distributed about the macroscopic normal Facet BRDF Are the facets diffuse or specular? University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Microscopic geometry Masking – viewer can’t see a microfacet Shadowing – light can’t see a microfacet Interreflection – light off one facet hits another Aim is to capture these effects as efficiently as possible University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Oren-Nayar model (Text ch. 9.4.1) Model facet distribution as Gaussian with s.d.  (radians) Facet BRDF is Lambertian Resulting model has no closed form solution, but a good approximation Sample using cosine-weighted sampling in hemisphere University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Oren-Nayar effects Lambertian Oren-Nayar University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Torrance-Sparrow (Text ch. 9.4.2) Specular BRDF for facets Arbitrary (in theory) distribution of facet normals Additional term for masking and shadowing Explicit Fresnel term Half vector – facet orientation to produce specular transfer n i h o University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Torrance-Sparrow BRDF G(o , i) handles microfacet geometry D(h) is the microfacet orientation distribution evaluated for the half angle Changing this changes the surface appearance Fr(o) is the Fresnel reflection coefficient University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Geometry term Masking: Shadowing: Together: University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Blinn’s microfacet distribution Parameter e controls “roughness” University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Sampling Blinn’s model (Text ch. 15.5.1) Sampling from a microfacet BRDF tries to account for all the terms: G, D, F, cos But D provides most variation, so sample according to D The sampled direction is completely determined by halfway vector, h, so sample that Then construct reflection ray based upon it So how do we sample such a direction … University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Blinn sampling continued Need to sample spherical coords: ,  Book has details, and probably an error on page 684 Complication: We need to return the probability of choosing i, but we have the probability of choosing h Simple conversion term We need to construct the reflection direction about an arbitrary vector … University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Arbitrary reflection Coordinate system is not nicely aligned, so use construction University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Anisotropic microfacet distributions Parameters for x and y direction roughness, where x and y are the local BRDF coordinate system on the surface Gives the reference frame for  University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Sampling anisotropic distribution Sampling is discussed in section 15.5.2 of the text Similar to Blinn but with different distribution Note that there are 4 symmetric quadrants in the tangent plane Sample in a single quadrant, then map to one of 4 quadrants Take care to maintain stratification 1 1st 2nd 3rd 4th University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Ward’s isotropic model “the simplest empirical formula that will do the job” Leaves out the geometry and Fresnel terms Makes integration and sampling easier 3 terms, plus some angular values: d is the diffuse reflectance s is the specular reflectance  is the standard deviation of the micro-surface slope University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Ward’s anisotropic model For surfaces with oriented grooves 2 terms for anisotropy: x is the standard deviation of the surface slope in the x direction y is the standard deviation of the surface slope in the y direction University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Sampling Ward’s model Take 1 and 2 and transform to get h and h: Only samples one quadrant, use same trick as before to get all quadrants Not sure about correct normalization constant for solid angle measure University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Schlick’s model (Schlick 94) Empirical model well suited to sampling Two parameters: , a roughness factor (0 = Specular, 1 = Lambertian) , an anisotropy term, (0 perfectly anisotropic, 1 = isotropic) University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Schlick’s model Facet Distribution: Geometry Terms: University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Putting it together Term to account for inter-reflection Not a Torrance-Sparrow model As before, sample a half vector: Only samples in 1 quadrant Use trick from before Normalization not given University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

More to it than that Both Ward and Schlick’s original papers define complete reflectance, including diffuse and pure specular components PBRT calls these materials, because they are simply linear sums of individual components Schlick’s paper also includes a way to decide how to combine the diffuse, specular and glossy terms based on the roughness Both Ward and Schlick discuss sampling from the complete distribution University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Phong reloaded The Phong model can be revised to make it physically reasonable – energy conserving and reciprocal In canonical BRDF coordinate system (z axis is normal) University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Oriented Phong Define an orientation vector – the direction in which the Phong reflection is strongest For standard Phong, o=(-1,-1,1) To get “off specular” reflection, change o Can get retro-reflection, more reflection at grazing, etc. University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Lafortune’s model (Text ch. 9.5) A diffuse component plus a sum of Phong lobes Allow all parameters to vary with wavelength Lots of parameters, 12 for each lobe, so suited for fitting to data It’s reasonably easy to fit Parameters for many surfaces are available University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Lafortune’s clay University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Sampling Lafortune First choose a lobe (or diffuse) Could be proportional to lobe’s contribution to outgoing direction But that might be expensive Then sample a direction according to that lobe’s distribution Just like sampling from Blinn’s microfacet distribution, but sampling the direction directly University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Two-layer models (Text chs. 9.6 and 15.5.3)) Captures the effects of a thin glossy layer over a diffuse substrate Common in practice – polished painted surfaces, polished wood, … Glossy dominates at grazing angles, diffuse dominates at near-normal angles Don’t need to trace rays through specular surface to hit diffuse University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell

Fresnel blend model University of Texas at Austin CS395T - Advanced Image Synthesis Fall 2007 Don Fussell