Title: Introduction to Global Illumination
1Introduction to Global Illumination
- Overview
- Radiometry
- The rendering equation
- Monte Carlo
2Image synthesis
Deterministic and/or stochastic simulation.
scene description
surface radiance
3Stages of light transport
luminaire
blocker
blocker
Direct illumination
Indirect illumination
4An example of global illumination
Lischinski, Tampieri, and Greenberg 1993
5Photo-realistic rendering
6(No Transcript)
7(No Transcript)
8Types of surface scattering
diffuse
directional diffuse
specular
9Directional dependence
highly directional
10Defining radiance
Classical Definition
Measure-Theoretic
u
?
d?
dA
Radiant energy defines a measure on R3 x S2.
r
f (r,u) cos? dA d? power crossing surface
The associated density function is radiance.
11Definition of radiance
?
radiance
x
is a scalar density function
12Definition of radiance
d?
dA
13Power from radiance
Integrate over solid angle...
and surface
dA
14Irradiance
power per unit area
dA
15Irradiance
weighted integral over solid angle
dA
16Simulating reflected light
irradiance
d?
x
17Simulating reflected light
irradiance
radiance
d?
df
x
18df ????d?
?
d?
df
x
19df ???(?,?) d?
d?
df
?
?
x
20df ???(?,?) d?
d?
df
x
21df ???(?,?) d?
BRDF sr -1
d?
df
x
22df ?(?,?) fcos? d?
f
df
?
d?
x
23f ???(?,?) fcos? d?
?
f
x
24f
x
25Formulating a balance equation
light leaving a surface
reflected light
emitted light
Easy
Hard
26Classical formulation
Balance equation in terms of radiance Polyak,
1960
measure on sphere
solid angle
source term
r
u
?
u
r
27Classical formulation
Important features of the classical formulation
28Two linear operators
f (r,u)
k?(ru u)
( K f ) (r,u) ?
?
cosine weighted measure
( G f ) (r,u) ?? f (r,u)
implicit function
29Linear operatorsfor global illumination
surface radiance
field radiance
surface radiance
K
G
Field Radiance Operator
Local Reflection Operator
30Another way to writethe rendering equation
f s KG f
31Operator norms
1) First law of thermodynamics
2) Second law of thermodynamics
3) Constancy of radiance along rays
32Irradiance
weighted integral over solid angle
dA
33A vector form of irradiance
Integrate vectors over solid angle
vector irradiance or light vector
r
?
34Lamberts formula for irradiance
polygonal Lambertian luminaire
Vector Irradiance
?i
M
P
?
??r?
?
?
?
i
i
2
?
?i
?
r
35Ideal diffuse reflection
Compute using Lamberts formula
36Ideal diffuse reflection
?
Boundary integral
Eye
37Ideal specular reflection
Compute using ray tracing
38Ideal specular reflection
?
Eye
39Glossy reflection
Use extended Lamberts formula
40Glossy reflection
?
Numerical quadrature
Eye
41Glossy reflection
?
Monte Carlo
Eye
42Boundary integral for glossy reflection
?
boundary integral
Eye
43Applications of directional scattering
glossy reflection
luminaire
directional emission
glossy transmission
44A range of glossy reflections
10th-order moment
45th-order moment
400th-order moment
45Comparison with Monte Carlo
order 65
order 300
order 1000
Region used for comparison
46Comparison with Monte Carlo
order 65
order 300
order 1000
47Monte Carlo integration
luminaire
blocker
estimate irradiance
48Advantages of Monte Carlo
- Arbitrarily complex environments
- Arbitrary reflectance functions
- Small memory requirements
- Easily to distribute
- Relatively easy to implement
49Monte Carlo sampling methods
Phong distribution
Hemisphere
Polygon
50Light-ray tracing
luminaire
Rays represent photons that deposit energy on
surfaces. No inverse-square law here!
51Path tracing
eye
At each scattering event, estimate indirect
irradiance with a single ray continue
recursively.
52Bidirectional path tracing
luminaire
eye
Simultaneously follow paths from the light and
the eye, looking for points that can see each
other.
53Metropolis path tracing
luminaire
eye
Start with a path from eye to luminaire, then
integrate over others by perturbing to nearby
paths.
54A Taxonomy of Errors
Radiance Function Space
Exact Equation
Perturbations
Perturbed Equation
Discretization
Discrete Equation
Computation
Approximation
55Features of surface illumination
luminaire
blocker
56An example of meshing
A simple environment
The underlying mesh
57Classical balance equation
radiance
f(x,?) s(x,?)
?
??(x,???) f(x,?) cos? d?
A point on a distant visible surface
58The change is a pullback
The 2-form on the sphere is pulled back to the
surface
x
59Change of variables
cos?
d? dA
r 2
differential solid angle
differential area
60Kajiyas rendering equation
I(x,x) g(x,x)
?
e(x,x) ??(x,x,x) I(x,x) dx
S
61Kajiyas rendering equation
I(x,x) g(x,x)
?
e(x,x) ??(x,x,x) I(x,x) dx
62Power from transport intensity
Integrate over two surfaces
dx
dx
source
receiver
63Radiance transport intensity
radiance
transport intensity
64Radiance transport intensity
radiance
transport intensity
invariant along lines in free space
obeys inverse square law
defined everywhere
defined only at surfaces
65Another way to writethe rendering equation
f s M f
Radiance
Source
Transport Operator
66The formal solutionto the rendering equation
-1
f ( I - M ) s
Identity operator
67The Neumann series
68Lp-norms for radiance functions
???
???
f p
f (r,u) p
d
m
s2
M
cosine weighted measure
The collection of all functions with finite
Lp-norm is a Banach space
69Significance of the Lp-norms
symbol
meaning
units
total power
watts
70The L1-norm of K
?
K
?
max
max
k
(
r
u
'
?
u
)
d
?
(
u
)
1
'
r
u
?
maximal directional-hemispherical reflectance
over all r and u'
u'
d?
r
71The L -norm of K
?
?
'
?
max
max
k
(
r
u
?
u
)
d
?
(
u
)
'
r
u
?
maximal hemispherical-directional reflectance
over all r and u'
u'
d?
r
72The Lp-norms of K
energy conservation
73The G operator
An enclosure.
Surface radiance function
Equivalent flow through fictitious boundary
74Hilbert adjoint operators
K K
G G
Since
and
it follows that
M I - KG
M I - GK