Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham.

Slides:



Advertisements
Similar presentations
Computer graphics & visualization Global Illumination Effects.
Advertisements

Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12.
Environment Mapping CSE 781 – Roger Crawfis
Measuring BRDFs. Why bother modeling BRDFs? Why not directly measure BRDFs? True knowledge of surface properties Accurate models for graphics.
Computer Graphics (Fall 2008) COMS 4160, Lecture 18: Illumination and Shading 1
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.
Basic Principles of Surface Reflectance
Physically Based Illumination Models
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.
Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance.
Week 9 - Wednesday.  What did we talk about last time?  Fresnel reflection  Snell's Law  Microgeometry effects  Implementing BRDFs  Image based.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
Illumination Model How to compute color to represent a scene As in taking a photo in real life: – Camera – Lighting – Object Geometry Material Illumination.
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 (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
Measurement, Inverse Rendering COMS , Lecture 4.
3-D Computer Vision CSc83029 / Ioannis Stamos 3-D Computer Vision CSc Radiometry and Reflectance.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
7M836 Animation & Rendering
Basic Principles of Surface Reflectance
BRDF Measurement.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Basic Principles of Surface Reflectance Lecture #3 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Illumination and Direct Reflection Kurt Akeley CS248 Lecture 12 1 November 2007
Measure, measure, measure: BRDF, BTF, Light Fields Lecture #6
Specular Reflections from Rough Surfaces Lecture #4 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Computer Vision Spring ,-685 Instructor: S. Narasimhan PH A18B T-R 10:30am – 11:50am Lecture #13.
CS 445 / 645: Introductory Computer Graphics
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
Modelling and Simulation Types of Texture Mapping.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Reflection Models I Today Types of reflection models The BRDF and.
Human Eye and Color Rays of light enter the pupil and strike the back of the eye (retina) – signals go to the optic nerve and eventually to the brain Retina.
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.
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
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
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.
Reflection models Digital Image Synthesis Yung-Yu Chuang 11/01/2005 with slides by Pat Hanrahan and Matt Pharr.
Illumination and Shading
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.
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
UV Mapping After a 3D object has been modeled it must be prepared for texturing. 3D surfaces can be “unwrapped” into a 2D representation with. This process.
02/2/05© 2005 University of Wisconsin Last Time Reflectance part 1 –Radiometry –Lambertian –Specular.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Local Illumination and Shading
CS348B Lecture 10Pat Hanrahan, Spring 2005 Reflection Models I Today Types of reflection models The BRDF and reflectance The reflection equation Ideal.
Illumination Model How to compute color to represent a scene As in taking a photo in real life: – Camera – Lighting – Object Geometry Material Illumination.
COMPUTER GRAPHICS CS 482 – FALL 2015 OCTOBER 27, 2015 SCATTERING LIGHT SCATTERING PHYSICALLY BASED SCATTERING SUBSURFACE SCATTERING AMBIENT OCCLUSION.
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 Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Reflection Models (1) Physically-Based Illumination Models (2)
Computer Graphics: Illumination
Shading CS 465 Lecture 4 © 2004 Steve Marschner • 1.
Advanced Computer Graphics
Illumination Models Chapter 14 Section 14.1 to 14.2
Computer Graphics (Fall 2003)
Chapter 14 Shading Models.
Presentation transcript:

Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham

Phong Illumination Model See Shirley, Ch 10 and

Phong vs. Gouraud Shading See Shirley, Ch 10 and Key: What is interpolated when shading a triangle?

A more general illumination function is needed to capture the appearance of real-world objects

BRDF: Bidirectional Reflectance Distribution Function x y z source viewing direction surface element normal incident direction Irradiance at Surface in direction Radiance of Surface in direction BRDF :

Important Properties of BRDFs x y z source viewing direction surface element normal incident direction BRDF is only a function of 3 variables : Rotational Symmetry: Appearance does not change when surface is rotated about the normal. Helmholtz Reciprocity: (follows from 2 nd Law of Thermodynamics) Appearance does not change when source and viewing directions are swapped.

Diffuse Reflection and Lambertian BRDF

Rendered Sphere with Lambertian BRDF Edges are dark (N.S = 0) when lit head-on See shading effects clearly.

Specular Reflection and Mirror BRDF source intensity I viewing direction surface element normal incident direction specular/mirror direction Very smooth surface. All incident light energy reflected in a SINGLE direction. (only when = )

Specular Reflections in Nature Compare sizes of objects and their reflections! The reflections when seen from a lower view point are always longer than when viewed from a higher view point. It's surprising how long the reflections are when viewed sitting on the river bank.

Specular Reflections in Nature

Delta Function too harsh a BRDF model (valid only for highly polished mirrors and metals). Many glossy surfaces show broader highlights in addition to mirror reflection. Surfaces are not perfectly smooth – they show micro-surface geometry (roughness). Glossy Surfaces

Blurred Highlights and Surface Roughness Roughness

Phong Examples These spheres illustrate results from our simple Phong Illumination model as lighting direction and n shiny are varied:

Those Were the Days “In trying to improve the quality of the synthetic images, we do not expect to be able to display the object exactly as it would appear in reality, with texture, overcast shadows, etc. We hope only to display an image that approximates the real object closely enough to provide a certain degree of realism.” – Bui Tuong Phong, 1975

All components of Surface Reflection

With Fresnel ReflectanceWithout Fresnel Reflectance

Reflections on water surfaces - Glittering

Split off-specular Reflections in Woven Surfaces

Why does the Full Moon have a flat appearance? The moon appears matte (or diffuse) But still, edges of the moon look bright (not close to zero) when illuminated by earth’s radiance.

Why does the Full Moon have a flat appearance? Lambertian Spheres and Moon Photos illuminated similarly

Surface Roughness Causes Flat Appearance Actual VaseLambertian Vase

Rendered Sphere with Lambertian BRDF Edges are dark (N.S = 0) when lit head-on See shading effects clearly.

Surface Roughness Causes Flat Appearance Increasing surface roughness Lambertian model Valid for only SMOOTH MATTE surfaces. Bad for ROUGH MATTE surfaces.

Modeling Rough Surfaces - Microfacets Roughness simulated by Symmetric V-groves at Microscopic level. Distribution on the slopes of the V-grove faces are modeled. Each microfacet assumed to behave like a perfect lambertian surface. For more information, look into the Oren-Nayar Model

Why bother modeling BRDFs? Why not directly measure BRDFs? True knowledge of surface properties Accurate models for graphics Measuring BRDFs

A full BRDF is 4-dimensional Simpler measurements (0D/1D/2D/3D) often useful Lets start with simplest and get more complex

Measuring Reflectance 0º/45º Diffuse Measurement 45º/45º Specular Measurement

Gloss Measurements Standardized for applications such as paint manufacturing Example: “contrast gloss” is essentially ratio of specular to diffuse “Sheen” is specular measurement at 85°

Gloss Measurements “Haze” and “distinctness of image” are measurements of width of specular peak

Gonioreflectometers Three degrees of freedom spread among light source, detector, and/or sample Can add fourth degree of freedom to measure anisotropic BRDFs

Image-Based BRDF Measurement Reduce acquisition time by obtaining larger (e.g. 2-D) slices of BRDF at once Idea: Camera can acquire 2D image Requires mapping of angles of light to camera pixels

Looking ahead – Real objects have texture!

Materials Change with Time

Practice Problems Sketch a picture of what you think the BRDF might look like for a single incoming light direction and a particular surface. Please assume an incoming light direction 45 degrees from the surface normal. Assume a surface with both diffuse color and highlights, e.g. a green pepper. Write notes to explain your sketch. Are there types of materials for which a constant is acceptable as a BRDF? What would such a surface look like?

Practice Problems Describe an experiment to measure the BRDF that you sketched for the problem on the previous slide. What data structure would you use to store such a BRDF? Are there types of materials for which a one-dimensional function is acceptable as a BRDF? a two-dimensional function? a three-dimensional function? When do you need all four parameters to represent the BRDF adequately? When might you need five dimensions instead of four?