Philipp Slusallek
Computer Graphics
- Light Transport -
Computer Graphics - Light Transport - Philipp Slusallek LIGHT 2 - - PowerPoint PPT Presentation
Computer Graphics - Light Transport - Philipp Slusallek LIGHT 2 What is Light ? Electro-magnetic wave propagating at speed of light 3 What is Light ? [Wikipedia] 4 What is Light ? Ray Linear propagation Geometrical optics
2
3
4
[Wikipedia]
– Linear propagation – Geometrical optics
– Polarization – Jones Calculus: matrix representation
– Diffraction, interference – Maxwell equations: propagation of light
– Light comes in discrete energy quanta: photons – Quantum theory: interaction of light with matter
– Electromagnetic force: exchange of virtual photons – Quantum Electrodynamics (QED): interaction between particles
5
– Linear propagation – Geometrical optics
– Polarization – Jones Calculus: matrix representation
– Diffraction, interference – Maxwell equations: propagation of light
– Light comes in discrete energy quanta: photons – Quantum theory: interaction of light with matter
– Electromagnetic force: exchange of virtual photons – Quantum Electrodynamics (QED): interaction between particles
6
– Macroscopic geometry ( Reflection Models) – Tristimulus color model ( Human Visual System) – Psycho-physics: tone mapping, compression, … ( RIS course)
– Macroscopic objects – Incoherent light – Light: scalar, real-valued quantity – Linear propagation – Superposition principle: light contributions add, do not interact – No attenuation in free space
– No microscopic structures (≈ λ): diffraction, interference – No polarization – No dispersion, …
7
– Units for measuring solid angle: steradian [sr] (dimensionless)
8
– 𝑒𝑣 = 𝑠 𝑒𝜄 – 𝑒𝑤 = 𝑠´ 𝑒Φ = 𝑠 sin 𝜄 𝑒Φ – 𝑒𝐵 = 𝑒𝑣 𝑒𝑤 = 𝑠2 sin 𝜄 𝑒𝜄𝑒Φ – 𝑒𝜕 = 𝑒𝐵 𝑠2 = sin 𝜄 𝑒𝜄𝑒Φ
9
du r dθ r’ dΦ dA dv θ Φ dω 1
and (ii) dividing by the squared distance to the origin: d𝜕 =
d𝐵 cos 𝜄 𝑠2
𝑇
𝑠⋅ 𝑜
𝑠3 𝑒𝐵
10
– Radiometry is the science of measuring radiant energy transfers. Radiometric quantities have physical meaning and can be directly measured using proper equipment such as spectral photometers.
– Energy [J] Q (#Photons x Energy = 𝑜 ⋅ ℎ𝜉) – Radiant power [watt = J/s] Φ (Total Flux) – Intensity [watt/sr] I (Flux from a point per s.angle) – Irradiance [watt/m2] E (Incoming flux per area) – Radiosity [watt/m2] B (Outgoing flux per area) – Radiance [watt/(m2 sr)] L (Flux per area & proj. s. angle)
11
– The power (flux) traveling through some point x – In a specified direction ω = (θ, φ) – Per unit area perpendicular to the direction of travel – Per unit solid angle
12
ω
dA
𝑒Φ 𝑒𝐵
Ω+
Ω+
00 𝜌 22𝜌
13
𝑒Φ 𝑒𝐵
Ω+
Ω+
00 𝜌 22𝜌
14
exitant from
– Light is composed of electromagnetic waves – These waves have different frequencies and wavelengths – Most transfer quantities are continuous functions of wavelength
– Each measurement L(x,ω) is for a discrete band of wavelength
15
– The human eye is sensitive to a limited range of wavelengths
– Our visual system responds differently to different wavelengths
– Photometric quantities are derived from radiometric quantities by integrating them against this function
16
17
18
The eye detects radiance f
rod sensitive to flux
angular extent of rod = resolution ( 1 arcminute2)
r
2 2 /
' l r
angular extent of pupil aperture (r 4 mm) = solid angle
l
projected rod size = area
2
l A
radiance = flux per unit area per unit solid angle
A L '
' A L flux proportional to area and solid angle As l increases: const
2 2 2
L l r l L photons / second = flux = energy / time = power (𝚾) (1 arcminute = 1/60 degrees)
19
f r l A
Where does the Sun turn into a star ? Depends on apparent Sun disc size on retina Photon flux per rod stays the same on Mercury, Earth or Neptune Photon flux per rod decreases when ’ < 1 arcminute2 (beyond Neptune)
' A
20
1
L
1
d
1
dA
2
L
2
d
2
dA
l
The radiance in the direction of a light ray remains constant as it propagates along the ray Flux leaving surface 1 must be equal to flux arriving on surface 2
2 2 1
l dA d
2 1 2
l dA d
From geometry follows
2 2 1 2 2 1 1
l dA dA dA d dA d T
Ray throughput 𝑈:
𝑀1𝑒Ω1𝑒𝐵1 = 𝑀2𝑒Ω2𝑒𝐵2 𝑀1 = 𝑀2
– Power (total flux) of a point light source
– Intensity of a light source (radiance cannot be defined, no area)
– Irradiance on a sphere with radius r around light source:
– Irradiance on some other surface A
21
dA r d 𝐹 𝑦 = 𝑒Φ 𝑒𝐵 = 𝑒Φ 𝑒𝜕 𝑒𝜕 𝑒𝐵 = 𝐽 𝑒𝜕 𝑒𝐵 = Φ 4𝜌 ⋅ 𝑒𝐵 cos 𝜄 𝑠2𝑒𝐵 = Φ 4𝜌 ⋅ cos 𝜄 𝑠2
– Illuminating quantity
– Double distance from emitter: area of sphere is four times bigger
– Only for point light sources (!)
22
1 2 2 2 1 2
Irradiance E: E2 E1 d1 d2
– Emitted energy / time
– Point, line, area, volume
– Thermal, line spectrum
– Goniometric diagram
23
Black body radiation (see later)
– Spot-lights – Projectors – Distant sources
– Torchieres – Frosted glass lamps
– “Photons everywhere”
– Neon advertisements – Sodium vapor lamps
– CRT, LCD display – (Overcast) sky
– Clear light bulb, filament
– Xenon lamp – Arc lamp – Laser diode
– Point source (approx.) – White light (by def.)
– Area source – Scattering: blue
– Brighter – Haze: whitish
– Multiple scattering in clouds – Uniform grey
25 Courtesy Lynch & Livingston
26
– Lights (emitters) – Object surfaces (partially absorbing)
– Radiosity = Irradiance minus absorbed photons flux density
– No absorption in-between objects
– Emitted photons = absorbed photons (+ escaping photons) → Global Illumination, discussed in RIS lecture
27
– Surface position – Outgoing direction
– Incoming radiance from all directions – Direction-dependent reflectance (BRDF: bidirectional reflectance distribution function)
28
Ω+
𝑠 𝜕𝑗, 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕𝑗 cos 𝜄𝑗 𝑒𝜕𝑗
𝜕𝑝 𝜕𝑗
𝑠 𝜕𝑗, 𝑦, 𝜕𝑝
i
x
i
– Expresses energy equilibrium in scene
total radiance = emitted + reflected radiance
– Non-zero only for light sources
– Integral over all possible incoming directions of radiance times angle-dependent surface reflection function
– Unknown radiance appears both on the left-hand side and inside the integral – Numerical methods necessary to compute approximate solution
29
Ω+
𝑠 𝜕𝑗, 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕𝑗 cos 𝜄𝑗 𝑒𝜕𝑗
i
x
i
– An example: polygon rendering in OpenGL
– Follows roughly the eye’s sensitivity
– Simplifies integration to summation
– Parameterized function
30
– Illumination from discrete point light sources only – direct illumination only
each light
– Evaluates angle-dependent reflectance function (BRDF) – shading process
– Recursive ray tracing
specular surfaces)
– Ray tracing for global illumination
(Monte Carlo methods)
31
Ω+
𝑠 𝜕𝑗, 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕𝑗 cos 𝜄𝑗 𝑒𝜕𝑗
– Incoming radiance at x is outgoing radiance at y
– Ray-Tracing operator: y = 𝑆𝑈 𝑦, 𝜕𝑗
32
Ω+
𝑠 𝜕𝑗, 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕𝑗 cos 𝜄𝑗 𝑒𝜕𝑗
33
Ω+
𝑠 𝜕𝑗, 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕𝑗 cos 𝜄𝑗 𝑒𝜕𝑗
y
i
y
y
i
i
𝑀 𝑦, 𝜕𝑝 = 𝑀𝑓 𝑦, 𝜕𝑝 +
𝑧∈𝑇
𝑔
𝑠 𝜕(𝑦, 𝑧), 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕(𝑦, 𝑧) 𝑊(𝑦, 𝑧) cos 𝜄𝑗 cos 𝜄𝑧
𝑦 − 𝑧 2 𝑒𝐵𝑧
34
𝑀 𝑦, 𝜕𝑝 = 𝑀𝑓 𝑦, 𝜕𝑝 +
𝑧∈𝑇
𝑔
𝑠 𝜕(𝑦, 𝑧), 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕(𝑦, 𝑧) 𝑊(𝑦, 𝑧) cos 𝜄𝑗 cos 𝜄𝑧
𝑦 − 𝑧 2 𝑒𝐵𝑧 𝑀 𝑦, 𝜕𝑝 = 𝑀𝑓 𝑦, 𝜕𝑝 +
𝑧∈𝑇
𝑔
𝑠 𝜕 𝑦, 𝑧 , 𝑦, 𝜕𝑝 𝑀𝑗 𝑦, 𝜕 𝑦, 𝑧
𝐻(𝑦, 𝑧)𝑒𝐵𝑧
43
44
45
– Radiance – Radiosity – Irradiance – Intensity
– Key equation in graphics (!) – Integral equation – Describes global balance of radiance
46