SLIDE 1
Spherical Harmonic Lighting
Petras Sukys, Simon Ivarsson Chalmers University of Technology 2013
SLIDE 2 Hello world
- Recap on maths
- Spherical Harmonics
- SH at work
- Some demos/examples
SLIDE 3
Recap on maths
Almighty lighting equation
SLIDE 4
Recap on maths
Integrating over a hemisphere...
SLIDE 5
Recap on maths Monte Carlo integration
(almost as mighty) Expected value of a random function: Law of Large Numbers:
SLIDE 6
Recap on maths Monte Carlo integration
SLIDE 7 Recap on maths
- Approx. and basis functions
Signal and approximation Basis function
http://en.wikibooks.org/wiki/Control_Systems/Sampled_Data_Systems
SLIDE 8 Recap on maths
- Approx. and basis functions
Calculate coefficients Reconstruct by scaling basis functions with coefficients... ... and sum up:
SLIDE 9
Some more maths
Orthogonal basis function
SLIDE 10
Some more maths
Associated Legendre Polynomials
SLIDE 11 Some more maths
- Assoc. Legendre Polynomials
l - band index, m - polynomial number
SLIDE 12 Spherical Harmonics Under the hood
Where Kl
m is
normalisation factor
SLIDE 13 Spherical Harmonics The Looks
http://en.wikipedia.
- rg/wiki/Spherical_harmonics
SLIDE 14 Spherical Harmonics The Use
- Integration of product = multiplication of the
coefficients
- Have another light source or shadow caster?
Almost as easy as two matrix multiplication.
- Want to rotate light source function? A bit
trickier, but still easy with SH!
SLIDE 15
Diffuse Unshadowed Transfer
SLIDE 16
Diffuse Unshadowed Transfer
SLIDE 17
Shadowed Diffuse Transfer
SLIDE 18
Shadowed Diffuse Transfer
SLIDE 19
Shadowed Diffuse Transfer
SLIDE 20
Diffuse Interreflected Transfer
SLIDE 21
Diffuse Interreflected Transfer
SLIDE 22
Diffuse Interreflected Transfer
SLIDE 23
Other Light Sources
Overcast Clear sky Partly Cloudy
SLIDE 24
Other Light Sources
HDR Image Artificial
SLIDE 25
Demo
SLIDE 26
Questions?