An Efficient Representation for Irradiance Environment Maps Ravi Ramamoorthi Pat Hanrahan Stanford University.

Slides:



Advertisements
Similar presentations
Normal Mapping for Precomputed Radiance Transfer
Advertisements

Spherical Harmonic Lighting Jaroslav Křivánek. Overview Function approximation Function approximation Spherical harmonics Spherical harmonics Some other.
A Mike Day Paper Exercise
Computer graphics & visualization Global Illumination Effects.
Environment Mapping CSE 781 – Roger Crawfis
Real-Time High Quality Rendering CSE 291 [Winter 2015], Lecture 3 Shadow and Environment Mapping
Spherical Convolution in Computer Graphics and Vision Ravi Ramamoorthi Columbia Vision and Graphics Center Columbia University SIAM Imaging Science Conference:
Spherical Harmonic Lighting of Wavelength-dependent Phenomena Clifford Lindsay, Emmanuel Agu Worcester Polytechnic Institute (USA)
Frequency Domain Normal Map Filtering Charles Han Bo Sun Ravi Ramamoorthi Eitan Grinspun Columbia University.
Advanced Computer Graphics
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Basic Principles of Surface Reflectance
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Lighting affects appearance. What is the Question ? (based on work of Basri and Jacobs, ICCV 2001) Given an object described by its normal at each.
Advanced Computer Graphics (Fall 2009) CS 294, Rendering Lecture 7: High Quality Real-Time Rendering Ravi Ramamoorthi
Rendering with Environment Maps Jaroslav Křivánek, KSVI, MFF UK
Week 9 - Wednesday.  What did we talk about last time?  Fresnel reflection  Snell's Law  Microgeometry effects  Implementing BRDFs  Image based.
Computer graphics & visualization Pre-Computed Radiance Transfer PRT.
A Signal-Processing Framework for Inverse Rendering Ravi Ramamoorthi Pat Hanrahan Stanford University.
A Signal-Processing Framework for Forward and Inverse Rendering COMS , Lecture 8.
Real-Time Rendering COMS , Lecture 9. Real-Time Rendering Demo Motivation: Interactive rendering with complex natural illumination and realistic,
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Computational Fundamentals of Reflection COMS , Lecture
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
Advanced Computer Graphics (Fall 2009) CS , Lecture 1: Introduction and History Ravi Ramamoorthi Some.
A Signal-Processing Framework for Forward and Inverse Rendering Ravi Ramamoorthi Ravi Ramamoorthi
A Signal-Processing Framework for Forward and Inverse Rendering Ravi Ramamoorthi Ph.D. Orals: June 3, 2002.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 17: Frequency Analysis and Signal Processing for Rendering Ravi Ramamoorthi
Real-Time High Quality Rendering COMS 6160 [Fall 2004], Lecture 4 Shadow and Environment Mapping
Basic Principles of Surface Reflectance
Exploiting Temporal Coherence for Incremental All-Frequency Relighting Ryan OverbeckRavi Ramamoorthi Aner Ben-ArtziEitan Grinspun Columbia University Ng.
Real-Time High Quality Rendering COMS 6160 [Fall 2004], Lecture 3 Overview of Course Content
A Theory of Locally Low Dimensional Light Transport Dhruv Mahajan (Columbia University) Ira Kemelmacher-Shlizerman (Weizmann Institute) Ravi Ramamoorthi.
A Signal-Processing Framework for Forward and Inverse Rendering Ravi Ramamoorthi Stanford University Columbia University: Feb 11, 2002.
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.
Real-Time Rendering and Interaction with Complex Lighting and Materials Ravi Ramamoorthi Rendering Laboratory Columbia University Intel: August 13, 2004.
Face Relighting with Radiance Environment Maps Zhen Wen 1, Zicheng Liu 2, Thomas Huang 1 Beckman Institute 1 University of Illinois Urbana, IL61801, USA.
Pre-computed Radiance Transfer Jaroslav Křivánek, KSVI, MFF UK
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Image-Based Rendering from a Single Image Kim Sang Hoon Samuel Boivin – Andre Gagalowicz INRIA.
Efficient Irradiance Normal Mapping Ralf Habel, Michael Wimmer Institute of Computer Graphics and Algorithms Vienna University of Technology.
-Global Illumination Techniques
Real-Time Rendering Digital Image Synthesis Yung-Yu Chuang 01/03/2006 with slides by Ravi Ramamoorthi and Robin Green.
An Efficient Representation for Irradiance Environment Maps Ravi Ramamoorthi Pat Hanrahan Stanford University SIGGRAPH 2001 Stanford University SIGGRAPH.
Real-Time Relighting Digital Image Synthesis Yung-Yu Chuang 1/10/2008 with slides by Ravi Ramamoorthi, Robin Green and Milos Hasan.
Real-time Shading with Filtered Importance Sampling Jaroslav Křivánek Czech Technical University in Prague Mark Colbert University of Central Florida.
View-Dependent Precomputed Light Transport Using Nonlinear Gaussian Function Approximations Paul Green 1 Jan Kautz 1 Wojciech Matusik 2 Frédo Durand 1.
Lighting affects appearance. How do we represent light? (1) Ideal distant point source: - No cast shadows - Light distant - Three parameters - Example:
All-Frequency Shadows Using Non-linear Wavelet Lighting Approximation Ren Ng Stanford Ravi Ramamoorthi Columbia SIGGRAPH 2003 Pat Hanrahan Stanford.
Quick survey about PRT Valentin JANIAUT KAIST (Korea Advanced Institute of Science and Technology)
Fast Approximation to Spherical Harmonics Rotation
1 Surface Reflectance Estimation and Natural Illumination Statistics Ron Dror, Ted Adelson, Alan Willsky Artificial Intelligence Lab, Lab for Information.
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
Spherical Harmonics in Actual Games
Thank you for the introduction
Non-Linear Kernel-Based Precomputed Light Transport Paul Green MIT Jan Kautz MIT Wojciech Matusik MIT Frédo Durand MIT Henrik Wann Jensen UCSD.
All-Frequency Shadows Using Non-linear Wavelet Lighting Approximation Ren Ng Stanford Ravi Ramamoorthi Columbia Pat Hanrahan Stanford.
EECS 274 Computer Vision Sources, Shadows, and Shading.
Toward Real-Time Global Illumination. Global Illumination == Offline? Ray Tracing and Radiosity are inherently slow. Speedup possible by: –Brute-force:
Toward Real-Time Global Illumination. Project Ideas Distributed ray tracing Extension of the radiosity assignment Translucency (subsurface scattering)
Advanced Computer Graphics
Advanced Computer Graphics
Working Group « Pre-Filtering »
Sampling and Reconstruction of Visual Appearance
Advanced Computer Graphics
Real-time environment map lighting
Real-time Global Illumination with precomputed probe
Presentation transcript:

An Efficient Representation for Irradiance Environment Maps Ravi Ramamoorthi Pat Hanrahan Stanford University

Natural Illumination People perceive materials more easily under natural illumination than simplified illumination. Images courtesy Ron Dror and Ted Adelson

Natural Illumination Classically, rendering with natural illumination is very expensive compared to using simplified illumination Directional Source Natural Illumination

Reflection Maps Blinn and Newell, 1976

Environment Maps Miller and Hoffman, 1984

Irradiance Environment Maps Incident Radiance (Illumination Environment Map) Irradiance Environment Map R N

AssumptionsAssumptions Diffuse surfaces Distant illumination No shadowing, interreflection Hence, Irradiance is a function of surface normal Diffuse surfaces Distant illumination No shadowing, interreflection Hence, Irradiance is a function of surface normal

Diffuse Reflection Radiosity (image intensity) Reflectance (albedo/texture) Irradiance (incoming light) × = quake light map

Previous Work Precomputed (prefiltered) Irradiance maps [Miller and Hoffman 84, Greene 86, Cabral et al 87] Irradiance volumes [Greger et al 98] Global illumination [Wilkie et al 00] Empirical: Irradiance varies slowly with surface normal Low resolution Irradiance maps Irradiance gradients [Ward 92] Precomputed (prefiltered) Irradiance maps [Miller and Hoffman 84, Greene 86, Cabral et al 87] Irradiance volumes [Greger et al 98] Global illumination [Wilkie et al 00] Empirical: Irradiance varies slowly with surface normal Low resolution Irradiance maps Irradiance gradients [Ward 92]

New Theoretical Results Analytic Irradiance Formula [Ramamoorthi Hanrahan 01, Basri Jacobs 01] Expand Radiance, Irradiance in basis functions Analytic formula for Irradiance coefficients Key Results Irradiance approx. for all normals using 9 numbers Can be computed as quadratic polynomial Analytic Irradiance Formula [Ramamoorthi Hanrahan 01, Basri Jacobs 01] Expand Radiance, Irradiance in basis functions Analytic formula for Irradiance coefficients Key Results Irradiance approx. for all normals using 9 numbers Can be computed as quadratic polynomial

ContributionsContributions Theory: frequency domain analysis Efficient computation of Irradiance Procedural rendering algorithm (no textures) New representation: apply to lighting design Theory: frequency domain analysis Efficient computation of Irradiance Procedural rendering algorithm (no textures) New representation: apply to lighting design

Computing Irradiance Classically, hemispherical integral for each pixel Lambertian surface is like low pass filter Frequency-space analysis Classically, hemispherical integral for each pixel Lambertian surface is like low pass filter Frequency-space analysis Incident Radiance Irradiance

Spherical Harmonics

Spherical Harmonic Expansion Expand lighting (L), irradiance (E) in basis functions = …

Analytic Irradiance Formula Lambertian surface acts like low-pass filter Lambertian surface acts like low-pass filter

9 Parameter Approximation Exact image Order 0 1 term RMS error = 25 %

9 Parameter Approximation Exact image Order 1 4 terms RMS Error = 8%

9 Parameter Approximation Exact image Order 2 9 terms RMS Error = 1% For any illumination, average error < 3% [Basri Jacobs 01]

Computing Light Coefficients Compute 9 lighting coefficients L lm 9 numbers instead of integrals for every pixel Lighting coefficients are moments of lighting Weighted sum of pixels in the environment map Compute 9 lighting coefficients L lm 9 numbers instead of integrals for every pixel Lighting coefficients are moments of lighting Weighted sum of pixels in the environment map

ComparisonComparison Incident illumination 300x300 Irradiance map Texture: 256x256 Hemispherical Integration 2Hrs Irradiance map Texture: 256x256 Spherical Harmonic Coefficients 1sec

RenderingRendering Irradiance approximated by quadratic polynomial Surface Normal vector column 4-vector 4x4 matrix (depends linearly on coefficients L lm )

Hardware Implementation Simple procedural rendering method (no textures) Requires only matrix-vector multiply and dot-product In software or NVIDIA vertex programming hardware Simple procedural rendering method (no textures) Requires only matrix-vector multiply and dot-product In software or NVIDIA vertex programming hardware

Complex Geometry Assume no shadowing: Simply use surface normal

Lighting Design Final image sum of 3D basis functions scaled by L lm Alter appearance by changing weights of basis functions Final image sum of 3D basis functions scaled by L lm Alter appearance by changing weights of basis functions

DemoDemo

SummarySummary Theory Analytic formula for irradiance Frequency-space: Spherical Harmonics To order 2, constant, linear, quadratic polynomials 9 coefficients (up to order 2) suffice Practical Applications Efficient computation of irradiance Simple procedural rendering New representation, many applications Theory Analytic formula for irradiance Frequency-space: Spherical Harmonics To order 2, constant, linear, quadratic polynomials 9 coefficients (up to order 2) suffice Practical Applications Efficient computation of irradiance Simple procedural rendering New representation, many applications

Implications and Future Work 9 parameter model important in other areas Inverse Rendering (Wednesday) [SIGGRAPH 01] Lighting variability object recognition [CVPR 01] Frequency space for rendering Environment maps with general BRDFs? Applications to offline rendering? Source code, examples, links to theory paper,… 9 parameter model important in other areas Inverse Rendering (Wednesday) [SIGGRAPH 01] Lighting variability object recognition [CVPR 01] Frequency space for rendering Environment maps with general BRDFs? Applications to offline rendering? Source code, examples, links to theory paper,…

AcknowledgementsAcknowledgements Stanford Real-Time Programmable Shading System Kekoa Proudfoot, Bill Mark Readers of early drafts Bill Mark, Kekoa Proudfoot, Sean Anderson, David Koller, Ron Dror, anonymous reviewers Models Armadillo: Venkat Krishnamurthy Light probes: Paul Debevec Funding Hodgson-Reed Stanford Graduate Fellowship NSF ITR # “Interacting with the Visual World” Stanford Real-Time Programmable Shading System Kekoa Proudfoot, Bill Mark Readers of early drafts Bill Mark, Kekoa Proudfoot, Sean Anderson, David Koller, Ron Dror, anonymous reviewers Models Armadillo: Venkat Krishnamurthy Light probes: Paul Debevec Funding Hodgson-Reed Stanford Graduate Fellowship NSF ITR # “Interacting with the Visual World”

The End

Compare to Point Sources Irradiance Map Texture Quadratic Polynomial 6 Directional Light sources Note Mach Banding