Light and Matter For Computer Graphics Comp 770 Lecture Spring 2009.

Slides:



Advertisements
Similar presentations
Properties of Light.
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.
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.
RADIOSITY Submitted by CASULA, BABUPRIYANK. N. Computer Graphics Computer Graphics Application Image Synthesis Animation Hardware & Architecture.
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.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Interactions of Light With Matter Science: Chapter 3 Mrs. Milliken.
Lecture 12 Light: Reflection and Refraction Chapter 22.1  22.4 Outline History of Studies of Light Reflection of Light The Law of Refraction. Index of.
LIGHT A FORM OF ELECTROMAGNETIC RADIATION THAT STIMULATES THE EYE.
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.
CSCE 641: Photon Mapping Jinxiang Chai. Outline Rendering equation Photon mapping.
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
Part I: Basics of Computer Graphics
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Basic Principles of Surface Reflectance
Rendering General BSDFs and BSSDFs Randy Rauwendaal.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Dr. Jie ZouPHY Chapter 35 The Nature of Light and the Laws of Geometric Optics.
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.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
Illumination and Direct Reflection Kurt Akeley CS248 Lecture 12 1 November 2007
Light Waves. What is Light? Light is the range of frequencies of the electromagnetic spectrum that stimulate the retina of the eye.
CS 445 / 645: Introductory Computer Graphics
Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham.
12/05/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling Very brief intro to global illumination.
MIT EECS 6.837, Durand and Cutler Local Illumination.
-Global Illumination Techniques
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
David Luebke 1 10/26/2015 Lighting CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
© Lastra/Machiraju/Möller Fundametals of Rendering - Radiometry / Photometry CIS 782 Advanced Computer Graphics Raghu Machiraju.
Phys141 Principles of Physical Science Chapter 7 Wave Effects and Optics Instructor: Li Ma Office: NBC 126 Phone: (713)
Advanced Illumination Models Chapter 7 of “Real-Time Rendering, 3 rd Edition”
Light Waves. What is Light? Light is the range of frequencies of the electromagnetic spectrum that stimulate the retina of the eye.
Ch Refraction Definition: Refraction Change in speed of light as it moves from one medium to another. Can cause bending of the light at the interface.
Refraction: TIR and Dispersion AP Physics: M. Blachly Light and Optics.
Lecture Outline Chapter 22 College Physics, 7 th Edition Wilson / Buffa / Lou © 2010 Pearson Education, Inc.
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.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Geometrical Optics. Optics is usually considered as the study of the behavior of visible light (although all electromagnetic radiation has the same behavior,
Light Waves.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
Chapter 22 Reflection and Refraction of Light. The Particle Nature of Light “Particles” of light are called photons Each photon has a particular energy.
Introduction to Light. Light is an EM wave All EM waves travel at the same speed through a vacuum: c = 3 x 10 8 m/s - FASTEST! fast faster.
Optics Reflection, Refraction & Snell’s Law Lesson 2
Physics 213 General Physics Lecture Last Meeting: Electromagnetic Waves, Maxwell Equations Today: Reflection and Refraction of Light.
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
1 By Mike Maloney © 2003 Mike Maloney2 Light as a Ray Light very often travels in straight lines. We represent light using rays, which are straight lines.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Local Illumination and Shading
Illumination Model How to compute color to represent a scene As in taking a photo in real life: – Camera – Lighting – Object Geometry Material Illumination.
Reflection and Refraction. Reflection Reflection – some or all of a wave bounces back into the first medium when hitting a boundary of a second medium.
Physically-based Illumination Model
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.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Reflection & Refraction Learning Targets: L3: Reflection L4: Refraction – Definition and Ray Dig L5: Critical Angle & Total Internal Reflection L6: Snell’s.
Computer Graphics: Illumination
Shading Revisited Some applications are intended to produce pictures that look photorealistic, or close to it The image should look like a photograph A.
Advanced Computer Graphics
© 2002 University of Wisconsin
Reflection Law of Reflection
Reflection and Refraction of Light
The Rendering Equation
Presentation transcript:

Light and Matter For Computer Graphics Comp 770 Lecture Spring 2009

Overview  A very high-level introduction to some concepts and definitions underlying image synthesis.  Optics  Materials and Surfaces  Radiometry and Photometry  Color  Energy Transport

Optics  The study of light has 3 sub-fields.  Physical optics : study of the wave nature of light.  Geometric optics : study of the particle nature of light.  Quantum optics : study of the dual wave-particle nature of light and attempt to construct unified theories to support duality. Wave “packets” called photons.  Computer graphics most concerned with geometric optics (but need some of the others, too).

Reflection and Transmission  Reflection : “process whereby light of a specific wavelength incident on a material is at least partly propagated outward by the material without change in wavelength.”  Transmission (or refraction ): “process whereby light of a specific wavelength incident on the interface (boundary) between two materials passes (refracts) through the interface without change in wavelength.” (Definitions from Glassner1995).

Types of Reflection  Specular (a.k.a. mirror or regular ) reflection causes light to propagate without scattering.  Diffuse reflection sends light in all directions with equal energy.  Mixed reflection is a weighted combination of specular and diffuse.

Types of Reflection  Retro-reflection occurs when incident energy reflects in directions close to the incident direction, for a wide range of incident directions.  Gloss is the property of a material surface that involves mixed reflection and is responsible for the mirror like appearance of rough surfaces.

Types of Gloss  Gloss factors measured by the ratio of energy (  ) in the reflected and incident directions for certain standard angles (  i and  r ).  Specularity measures the brightness of a highlight:  r /  i (  i =  r = 60°).  Sheen measures the brightness of glancing highlights:  r /  i (  i =  r = 85 °).

Types of Gloss  Contrast is the brightness of a glancing highlight relative to the brightness in the surface normal direction  r /  n. (  i =  r = 85 °).  Distinctness of Image measures the clarity of the highlight or the sharpness of its borders: d  r / d  r, or the rate of change of reflected energy with reflected direction.  Absence of Bloom measures the haziness around the highlight:  r2 /  r1, where  r1 and  r2 are only a few degrees different.

Computing The Specular Reflection Vector rr ii I N R I N’ R Given: I, N, R are coplanar. I  N = R  N N’ = (I  N)N From the parallelogram shown at right, see: R + I = 2N’ Or R = 2N’ – I = 2(I  N)N - I

Types of Transmission  Specular transmission causes light to propagate w/o scattering, as in clear glass.  Diffuse transmission sends light in all directions with equal energy, as in frosted glass.  Mixed transmission is a weighted combination of specular and diffuse transmission.

Index of Refraction  The speed of light is not the same in all media.  Reference medium is a perfect vacuum.  IOR:  i ( ) = c / v. c = speed of light in vacuum, v is speed of light of wavelength in the medium.  Surface where two media touch called the interface.  Light appears to bend when passing through the interface, due to change in speed.  Amount of bending, or refraction, determined by the IOR of both materials.

Snell’s Law of Refraction  Governs the geometry of refraction.  i ( )sin  i =  t ( )sin  t  i = IOR of incident medium  t = IOR of medium into which the light is transmitted  If the light is transmitted into a denser medium, it is refracted toward the normal of the interface.  If the light is transmitted into a rarer medium, it is refracted away from the normal of the interface. sin  i ii tt I T N sin  t

Total Internal Reflection  At some angle, called the critical angle, light is bent to lie exactly in the plane of the interface.  At all angles greater than this, the light is reflected back into the incident medium: total internal reflection (TIR).  Snell’s law gives critical angle  c  i ( )sin  c =  t ( )sin(  / 2) sin  c =  t ( ) /  i ( )

Computing The Specular Transmission Vector ii tt I T N R -MMII I || TT T ||

Surface Models  Perfect mirrors and reflections don’t exist.  Perfect transmission requires a perfect vacuum.  Real surfaces have some degree of roughness.  Even most basic simulation must account for specular and diffuse reflection / transmission.  More realism requires accounting for more factors. Wavelength dependence: dispersion, diffraction, interference Anisotropy: angular-dependence of reflectance. Scattering: absorption and re-emission of photons.

Basic Surface Models  Non-physically based, as used in OpenGL.  Materials have ambient, diffuse, and specular colors.  Ambient is a very coarse approx. Of light reflected from other surfaces. (Global illumination).  Diffuse usually just the “color” of the surface.  Specular determines highlight color.

Basic Surface Models

What’s Missing?  What we’ve seen so far is just the basics of geometric optics.  Enough for classical ray tracing, Phong illumination model.  To get much better, we need more: Better modeling of surface properties. Wavelength dependence. Radiometry / Photometry. Energy Transport.

Surface Roughness  At a microscopic scale, all real surfaces are rough:  Cast shadows on themselves:  “Mask” reflected light: shadow Masked Light

Surface Roughness  Notice another effect of roughness:  Each “microfacet” is treated as a perfect mirror.  Incident light reflected in different directions by different facets.  End result is mixed reflectance. Smoother surfaces are more specular or glossy. Random distribution of facet normals results in diffuse reflectance.

Reflectance Distribution Model  Most surfaces exhibit complex reflectances.  Vary with incident and reflected directions.  Model with combination:  + + = specular + glossy + diffuse = reflectance distribution

Anisotropy  So far we’ve been considering isotropic materials.  Reflection and refraction invariant with respect to rotation of the surface about the surface normal vector.  For many materials, reflectance and transmission are dependent on this azimuth angle: anisotropic reflectance/transmission.  Examples?

BRDF  Bidirectional Reflectance Distribution Function   ( x,  i,  o )  x is the position.   i = (  i,  i ) represents the incoming direction. (elevation, azimuth)   o = (  o,  o ) represents the outgoing direction (elevation, azimuth)

Properties of the BRDF  Dependent on both incoming and outgoing directions: bidirectional.  Always positive: distribution function.  Invariant to exchange of incoming/outgoing directions: reciprocity principal.  In general, BRDFs are anisotropic.

Dimensionality of BRDF  Function of position (3D), incoming, outgoing directions (4 angles), wavelength, and polarization.  Thus, a 9D function!  Usually simplify: Ignore polarization (geometric optics!). Sometimes ignore wavelength. Assume uniform material (ignore position). Isotropic reflectance makes one angle go away.

Radiometry  Radiometry : Science of measurement of light.  Measurements are purely physical.  Discusses quantities like radiance and irradiance, flux, and radiosity.  Need some radiometry to go into more detail about BRDF.  Combine with light transport theory and optics to derive radiosity computations.  More in later lectures and in COMP238.

Radiometry vs. Photometry  Photometry : Science of human perception of light.  Perceptual analog of Radiometry.  All measurements relative to perception.  More in COMP238

Color  If we stopped here we’d have grayscale images.  Color is determined by the wavelength of visible light.  Can still use geometric optics. But need to account for wavelength in reflectance (BRDF) and index of refraction. What natural phenomena can you think of that are wavelength dependent?

Sampling Wavelength  We could try to compute image for every possible wavelength and then combine.  Would take forever.  Sample a representative set of wavelengths.  How many samples?  Where?

Where to Sample?  Photometry tells us that some wavelengths are more important than others to human perception.  Human response curve looks something like this:

Where to Sample?  So, pick a few samples wavelengths.  Compute an image for each.  Reconstruct with basis functions.  Weight of each sample determined by human response curve.  (Also need color space transformations).  More in COMP238.

Light Transport  To compute images, we need to simulate transport of light around a scene.  Transport theory.  Analysis techniques for flow of moving particles in 3D. Largely developed for neutrons in atomic reactors. Can be applied to traffic flow, gas dynamics. Most importantly, can be applied to light.  Simulation techniques.  Ray tracing.  Radiosity.  Combinations and variations.

Local vs. Global Illumination  Radiosity and ray tracing simulate global illumination.  Account for light transport between objects.  Not just between light sources and objects: local illumination.  Don’t need global illumination to use the concepts of geometric optics, surface modeling, and BRDF.  Have been used to create diverse shading models.  Simplest and most common is Phong.  Next lecture: shading models.

For Next Time…  Read:  Henri Gouraud, “Continuous Shading of Curved Surfaces”. IEEE Transactions on Computers; June  Bui Tuong Phong, “Illumination for Computer Generated Pictures”. Communications of the ACM; June  James F. Blinn, “Models of Light Reflection for Computer Synthesized Pictures.” Computer Graphics (SIGGRAPH 1977).

References  Glassner, Principles of Digital Image Synthesis, Volume Two.  Highly detailed and low level.  Cohen and Wallace, Radiosity and Realistic Image Synthesis.  Bastos dissertation, ftp://ftp.cs.unc.edu/pub/publications/techreports/ pdf ftp://ftp.cs.unc.edu/pub/publications/techreports/ pdf

More Detail: Scattering  When a photon hits an atom, one of two things happens:  Absorption: the photon (energy) is converted into another form of energy.  Scattering: the photon is immediately re-emitted in a new direction.