CS-184: Computer Graphics
Lecture #23: Global Illumination
- Prof. James O’Brien
University of California, Berkeley
V2013-F-23-1.0
2
Today
- The Rendering Equation
- Radiosity Method
- Photon Mapping
- Ambient Occlusion
1 2 Monday, November 25, 13
CS-184: Computer Graphics Lecture #23: Global Illumination Prof. - - PowerPoint PPT Presentation
CS-184: Computer Graphics Lecture #23: Global Illumination Prof. James OBrien University of California, Berkeley V2013-F-23-1.0 1 Today The Rendering Equation Radiosity Method Photon Mapping Ambient Occlusion 2 2 Monday,
University of California, Berkeley
V2013-F-23-1.0
2
1 2 Monday, November 25, 13
3 4
Ls(x,x0) = δ(x,x0) E(x,x0)+
Z
Sρx0(x,x00)Ls(x0,x00)cos(θ0)cos(θ00)
||x0 x00||2 dx00
n0 ˆ n00 x00 x0 x θ0 θ00
The light shining on x from x’ is equal to:
that bit onto x’ and is reflected toward x, scaled appropriately 3 4 Monday, November 25, 13
5
ˆ n0 ˆ n00 x00 x0 x θ0 θ00
Ls(x,x0) = δ(x,x0) E(x,x0)+
Z
Sρx0(x,x00)Ls(x0,x00)cos(θ0)cos(θ00)
||x0 x00||2 dx00
5 6 Monday, November 25, 13
from Hanrahan 2000
7 8
ˆ n0 ˆ n00 x00 x0 x θ0 θ00
Ls(x,x0) = δ(x,x0) E(x,x0)+
Z
Sρx0(x,x00)Ls(x0,x00)cos(θ0)cos(θ00)
||x0 x00||2 dx00
Ex0 +
Z
Sρx0Ls(x0,x00)cos(θ0)cos(θ00)
||x0 x00||2 dx00
7 8 Monday, November 25, 13
9
ˆ n0 ˆ n00 x00 x0 x θ0 θ00
Ls(x,x0) = δ(x,x0) Ex0 +
Z
Sρx0Ls(x0,x00)cos(θ0)cos(θ00)
||x0 x00||2 dx00
Z
Sδ(x0,x00)Hx00
10
Example mesh for Cornell Box by Mark Schmelzenbach
9 10 Monday, November 25, 13
11
The Candlestick Theater, Mark Mack Architects.
12
The Candlestick Theater, Mark Mack Architects.
11 12 Monday, November 25, 13
13
Hi = Ei +ρi∑
j
Hj
Z
S j
δi j cos(θi)cos(θ j) 2π||ci −x||2 dx
Pi
Pj
cj ci
Fi j ≈ δi j cos(θi)cos(θ j) 2π||ci −c j||2 A j
Example of a rough approximation:
Fi j Form factor from j to i, Hx0 = Ex0 +ρx0
Z
Sδ(x0,x00)Hx00
14
Hi = Ei +ρi∑
j
HjFi j Ei ρi Fi j h = e+Ah (I−A)h = e 13 14 Monday, November 25, 13
15
16
Idea: let important sources
don’t even bother with dark things
15 16 Monday, November 25, 13
17
From dissertation "Efficient and predictive realistic image synthesis" by Karol Myszkowski
18
Example mesh for Cornell Box by Mark Schmelzenbach Does not match but you get the idea...
17 18 Monday, November 25, 13
19
20
h
19 20 Monday, November 25, 13
21
h
22
Images from SIGGRAPH 93 Education Slide Set by Stephen Spencer
21 22 Monday, November 25, 13
23
Images from SIGGRAPH 93 Education Slide Set by Stephen Spencer
24
23 24 Monday, November 25, 13
25
26
25 26 Monday, November 25, 13
27
Catherine Bendebury and Jonathan Michaels CS 184 Spring 2005
28
Image by Per Christensen
27 28 Monday, November 25, 13
29
Image by Per Christensen
30
Image by Per Christensen
29 30 Monday, November 25, 13
31
Image by Per Christensen
32
31 32 Monday, November 25, 13
33
Image by Per Christensen
34
33 34 Monday, November 25, 13
35
36
35 36 Monday, November 25, 13
37
nVidia Gelato Demo Image
37 Monday, November 25, 13