Title: A SignalProcessing Framework for Forward and Inverse Rendering
1A Signal-Processing Framework for Forward and
Inverse Rendering
Ravi Ramamoorthi ravir_at_graphics.stanford.edu
Pat Hanrahan hanrahan_at_graphics.stanford.edu
2Outline
- Motivation
- Forward Rendering
- Inverse Rendering
- Object Recognition
- Reflection as Convolution
- Efficient Rendering Environment Maps
- Lighting Variability in Object Recognition
- Deconvolution, Inverse Rendering
- Summary
3Interactive Rendering
Directional Source
Complex Illumination
Ramamoorthi and Hanrahan, SIGGRAPH 2001b
4Reflection Maps
Blinn and Newell, 1976
5Environment Maps
Miller and Hoffman, 1984 Later, Greene 86, Cabral
et al. 87
6Reflectance Space Shading
Cabral, Olano, Nemec 1999
7Reflectance Maps
- Reflectance Maps (Index by N)
- Horn, 1977
- Irradiance (N) and Phong (R) Reflection Maps
- Hoffman and Miller, 1984
Chrome Sphere
Matte (Lambertian) Sphere Irradiance Environment
Map
Mirror Sphere
8 Complex Illumination
- Must (pre)compute hemispherical integral of
lighting - Efficient Prefiltering (gt 1000x faster)
- Traditionally, requires irradiance map textures
- Real-Time Procedural Rendering (no textures)
- New representation for lighting design, IBR
Irradiance Environment Map
Illumination
Directional Source
Complex Lighting
9Photorealistic Rendering
10Inverse Rendering
- How to measure realistic material models,
lighting? - From real photographs by inverse rendering
- Can then change viewpoint, lighting, reflectance
- Rendered images very realistic they use real
data
Illumination Mirror Sphere Grace
Cathedral courtesy Paul Debevec
BRDF (reflectance) Images using point light
source
11Flowchart
12Results
Photograph
Computer rendering
New view, new lighting
Ramamoorthi and Hanrahan, SIGGRAPH 2001a
13Inverse Rendering Goals
- Complex (possibly unknown) illumination
- Estimate both lighting and reflectance
(factorization)
Photographs of 4 spheres in 3 different lighting
conditions courtesy Dror and Adelson
14Factorization Ambiguities
15Inverse Problems
- Sometimes ill-posed
- No solution or several solutions given data
- Often numerically ill-conditioned
- Answer not robust, sensitive to noise
- Need general framework to address these issues
- Mathematical theory for complex illumination
16Lighting effects in recognition
- Space of Images (Lighting) is Infinite
Dimensional - Prior empirical work 5D subspace captures
variability - We explain empirical data, subspace methods
Peter Belhumeur Yale Face Database A
17Outline
- Motivation
- Signal Processing Framework Reflection as
Convolution - Reflection Equation (2D)
- Fourier Analysis (2D)
- Spherical Harmonic Analysis (3D)
- Examples
- Efficient Rendering Environment Maps
- Lighting Variability in Object Recognition
- Deconvolution, Inverse Rendering
- Summary
18Reflection as Convolution (2D)
L
B
19Fourier Analysis (2D)
20Spherical Harmonics (3D)
21Spherical Harmonic Analysis
2D
22Insights
- Signal processing framework for reflection
- Light is the signal
- BRDF is the filter
- Reflection on a curved surface is convolution
- Inverse rendering is deconvolution
- Our contribution Formal Frequency-space analysis
23Example Mirror BRDF
- BRDF is delta function
- Harmonic Transform is constant (infinite width)
- Reflected light field corresponds directly to
lighting - Mirror Sphere (Gazing Ball)
24Phong, Microfacet Models
- Rough surfaces blur highlight
- Analytic Formula
- Approximately Gaussian
Mirror
Matte
Roughness
25Example Lambertian BRDF
Ramamoorthi and Hanrahan, JOSA 2001
26Second-Order Approximation
- Lambertian 9 parameters only
- order 2 approx. suffices
- Quadratic polynomial
Similar to Basri Jacobs 01
27 Dual Representation
- Practical Representation
- Diffuse localized in frequency space
- Specular localized in angular space
- Dual Angular, Frequency-Space representation
Frequency 9 param.
Frequency 9 param.
28Outline
- Motivation
- Reflection as Convolution
- Efficient Rendering Environment Maps
- Lighting Variability in Object Recognition
- Deconvolution, Inverse Rendering
- Summary
29Video
Ramamoorthi and Hanrahan, SIGGRAPH 2001b
30Outline
- Motivation
- Reflection as Convolution
- Efficient Rendering Environment Maps
- Lighting Variability in Object Recognition
- Deconvolution, Inverse Rendering
- Summary
31Lighting effects in recognition
- Space of Images (Lighting) is Infinite
Dimensional - Prior empirical work 5D subspace captures
variability - We explain empirical data, subspace methods
Peter Belhumeur Yale Face Database A
32Face Basis Functions
- 5 basis functions capture 95 of image
variability - Linear combinations of spherical harmonics
- Complex illumination not much harder than points
Frontal Lighting
Side
Above/Below
Extreme Side
Corner
33Inverse Lighting
- Well-posed unless r equals zero in denominator
- Cannot recover radiance from irradiance
contradicts theorem in Preisendorfer 76 - Well-conditioned unless r small
- BRDF should contain high frequencies Sharp
highlights - Diffuse reflectors are ill-conditioned Low pass
filters
34Inverse Lambertian
Sum l2
Sum l4
True Lighting
Mirror
Teflon
35Outline
- Motivation
- Reflection as Convolution
- Efficient Rendering Environment Maps
- Lighting Variability in Object Recognition
- Deconvolution, Inverse Rendering
- Summary
36Inverse Rendering Goals
- Formal study Well-posedness, conditioning
- General Complex (Unknown) Illumination
Quantitative Pixel error approximately 5
37Factoring the Light Field
- The light field may be factored to estimate both
the BRDF and the lighting - Knowns B (4D)
- Unknowns L (2D)
- r (½ 3D) -- Make use of reciprocity
38Algorithms Validation
Photograph
Rendering
Known Lighting
Unknown Lighting
Recovered Light
Marschner
Estimate s by ratio of intensity and total energy
39Complex Geometry
3 photographs of a sculpture Complex unknown
illumination Geometry KNOWN Estimate BRDF and
Lighting
40Flowchart
41Comparison
42New View, Lighting
Photograph
Computer rendering
43Textured Objects
Real
Rendering
Complex, Known Lighting
44Outline
- Motivation
- Reflection as Convolution
- Efficient Rendering Environment Maps
- Lighting Variability in Object Recognition
- Deconvolution, Inverse Rendering
- Summary
- Conclusions
- Pointers
45Summary
- Reflection as Convolution
- Signal-Processing Framework
- Frequency-space analysis yields insights
- Lambertian approximated with 9 parameters
- Phong/Microfacet acts like Gaussian filter
- Inverse Rendering
- Formal Study Well-posedness, conditioning
- Dual Representations
- Practical Algorithms Complex Lighting,
Factorization - Efficient Forward Rendering (Environment Maps)
- Lighting Variability in Object Recognition
46Papers
- http//graphics.stanford.edu/ravir/research.html
- Theory
- Flatland or 2D using Fourier analysis SPIE
01 - Lambertian radiance from irradiance JOSA 01
- General 3D, Isotropic BRDFs SIGGRAPH 01a
- Applications
- Inverse Rendering SIGGRAPH
01a - Forward Rendering SIGGRAPH
01b - Lighting variability In
preparation
47Acknowledgements
- Marc Levoy
- Szymon Rusinkiewicz
- Steve Marschner
- John Parissenti
- Jean Gleason
- Scanned cat sculpture is Serenity by Sue Dawes
- Hodgson-Reed Stanford Graduate Fellowship
- NSF ITR grant 0085864 Interacting with the
Visual World
48The End
49Related Work
- Graphics Prefiltering Environment Maps
- Qualitative observation of reflection as
convolution - Miller and Hoffman 84, Greene 86
- Cabral, Max, Springmeyer 87 (use spherical
harmonics) - Cabral et al. 99
- Vision, Perception
- DZmura 91 Reflection as frequency-space
operator - Basri and Jacobs 01 Lambertian reflection as
convolution - Recognition Appearance models e.g. Belhumeur et
al.
50Related Work
- Graphics Prefiltering Environment Maps
- Qualitative observation of reflection as
convolution - Miller and Hoffman 84, Greene 86
- Cabral, Max, Springmeyer 87 (use spherical
harmonics) - Cabral et al. 99
- Vision, Perception
- DZmura 91 Reflection as frequency-space
operator - Basri and Jacobs 01 Lambertian reflection as
convolution - Recognition Appearance models e.g. Belhumeur et
al. - Our Contributions
- Explicitly derive frequency-space convolution
formula - Formal Quantitative Analysis in General 3D Case
51Example Directional Source
- Lighting is delta function
- Harmonic Transform is constant (infinite width)
- Reflected light field corresponds directly to
BRDF - Impulse response of BRDF filter
52Practical Issues
- Incomplete sparse data Few views
- Use practical Dual Representation
B
Bs,fast fast specular (directional)
Bd diffuse
Bs,slow slow specular (area sources)
Frequency
Angular Space
53Practical Issues
- Incomplete sparse data Few views
- Use practical Dual Representation
- Concavities Self Shadowing
B
Bs,fast fast specular (directional)
Bd diffuse
Bs,slow slow specular (area sources)
Integrate Lighting
Source Shadowed?
Reflected Ray Shadowed?
54Practical Issues
- Incomplete sparse data Few views
- Use practical Dual Representation
- Concavities Self Shadowing
- Textures Spatially Varying Reflectance
Kd(x)
Ks(x)
B
Bs,fast fast specular (directional)
Bd diffuse
Bs,slow slow specular (area sources)
Integrate Lighting
Source Shadowed?
Reflected Ray Shadowed?
55Inverse BRDF
- Well-conditioned unless L small
- Lighting should have sharp features (point
sources, edges) - Ill-conditioned for soft lighting
Area source Same BRDF
Directional Source
56Comparison
Photograph
Rendering
Pixel Error Approximately 5
Known Lighting
Marschner
Our method