Title: Improved Radiance Gradient Computation
1Improved Radiance Gradient Computation
- Jaroslav Krivánek
- Pascal Gautron
- Kadi Bouatouch
- Sumanta Pattanaik
2Indirect lighting on glossy surfaces
With indirect
Without indirect
3Indirect lighting on glossy surfaces
With indirect
Without indirect
4Problem to solve
- Illumination integral evaluation at each visible
point
5Brute Force Approach
- Monte Carlo gathering
- For each visible point
- Slow convergence rate
Cast hundreds of rays
6Slow Monte Carlo Convergence - Example
Acknowledgement Jason Lawrence,
http//www.cs.princeton.edu/gfx/proj/brdf/
7Slow Monte Carlo Convergence - Example
Acknowledgement Jason Lawrence,
http//www.cs.princeton.edu/gfx/proj/brdf/
8Slow Monte Carlo Convergence - Example
Acknowledgement Jason Lawrence,
http//www.cs.princeton.edu/gfx/proj/brdf/
9Slow Monte Carlo Convergence - Example
Acknowledgement Jason Lawrence,
http//www.cs.princeton.edu/gfx/proj/brdf/
10Slow Monte Carlo Convergence Example
Acknowledgement Jason Lawrence,
http//www.cs.princeton.edu/gfx/proj/brdf/
11Observation
- Indirect lighting on rough glossy surfaces is
rather smooth abrupt changes are rare
12Radiance Caching Approach
- Sparse sampling of indirect illumination
- Interpolation
- Based on gradients
13Radiance Caching
Radiance Cache
Scene
Store in cache
P1
Sample hemisphere
Project to hemispherical harmonics
Lo? x BRDF(P1) x cos ? d?
Lo(P2)? x BRDF(P2) x cos ? d?
Lo(P1)
Lo(P2)
14Problem
Reality
With radiance caching
Wrong extrapolation
Li(P1) Li(P2)
Li(P1) ! Li(P2)
15Wrong Extrapolation
- How does Li(P) change with P?
- ( Li(P) incoming radiance at P )
- First approximation RADIANCE GRADIENT
- Our contribution
- New radiance gradient computation
16Wrong Extrapolation
17Corrected with the New Gradients
18Radiance Gradients Problem Definition
Prerequisites
- Incoming radiance Li(P) representation
- Li(P) is defined over a hemisphere
- Represented using hemispherical harmonics
- Li(P) represented by a set of coefficients
Basis functions
Coefficients
19Radiance Gradients Problem Definition
Prerequisites
- Coefficients computed with Monte Carlo quadrature
- Uniform hemisphere sampling
- Stratification
Sum over all strata
Multiplied by thebasis function
Incoming radiance from the sampled direction
20Radiance Gradients Problem Definition
- Coefficients hemisphere sampling
- Gradients from the same hemisphere sampling
- Something like
21Previous Work - Polygonal emitters
- Arvo 1994
- Irradiance Jacobian due to partially occluded
polygonal emitters of constant radiosity - Holzschuch and Sillion 1995
- Polygonal emitters of arbitrary radiosity
22Previous Work - Hemisphere sampling
- Ward and Heckbert 1992 Irradiance gradients
- Specifically for irradiance
- Cosine-proportional, uniformly weighted samples
over the hemisphere - We extend this to uniformly distributed,
arbitrarily weighted samples - Krivánek et al. 2005, Annen 2004
- Radiance gradient
- Works mostly fine, except when there is occlusion
in the sampled environment - We improve quality of this
23Gradient Computation
- Compute contribution from each hemisphere cell
- Sum it all together
24Gradient Computation for One Cell
25Gradient Computation for One Cell
26Gradient Computation for One Cell
- Wall movement gt cell area changes
- Cell area change gt solid angle changes
- Solid angle change gt incoming radiance changes
27Putting it all together
- Sum incoming radiance changes from all cells
- Use the basis functions H as a weighting factor
- Basis functions do not change with displacement
28Results
Old gradients
New gradients - smooth
29Results
New gradients
Old gradients
30Results
Old gradients
31Results
New gradients
32Gradients for GPU-based irradiance and radiance
caching
- Hemisphere sampling GPU rasterization
- Camera position hemisphere center
- Very non-uniform density of samples over the
hemisphere - The same gradient derivation still holds (and
WORKS!).
33Gradients for GPU-based irradiance and radiance
caching
- Irradiance caching video
- Offline irradiance caching video
- Radiance caching video castle, walt disney hall
34Conclusion
- New translational gradient computation
- Use information from hemisphere sampling
- Based on the Irradiance Gradients by Ward and
Heckbert - Generalized to support
- Arbitrary distribution of radiance samples over
the hemisphere - Arbitrary weighting of radiance samples
35Thank you
?
?