Differentiable Rendering Theory and Applications
Cheng Zhang Department of Computer Science University of California, Irvine
Differentiable Rendering Theory and Applications Cheng Zhang - - PowerPoint PPT Presentation
Differentiable Rendering Theory and Applications Cheng Zhang Department of Computer Science University of California, Irvine Outline Introduction Definition Motivations Related work Our work A Differential Theory of
Cheng Zhang Department of Computer Science University of California, Irvine
Rendering Image I
Geometry Camera Material Light
Scene Parameter π
Derivative Image π±$
Geometry Camera Material Light
Scene Parameter π
Rendering Image I
Geometry Camera Material Light
Scene Parameter π Inverse Rendering
Scene Param. Error Derivative Img. Current Img. Target Img.
Soft Rasterizer Neural 3D Mesh Renderer
Volume Scattering Gkioulekas et al. 2013, 2016 Human Teeth Velinov et al. 2018 NLOS 3D Reconstruction Tsai et al. 2019 Fabrication Sumin et al. 2019 Reflectance & Lighting Estimation Azinovic et al. 2019 Cloth Rendering Khungurn et al. 2015
Radiative Transfer
a mathematical model describing how light interacts within participating media (e.g. smoke) and translucent materials (e.g. marble and skin)
Kutz et al. 2017
Gkioulekas et al. 2013
Radiative Transfer
a mathematical model describing how light interacts within participating media (e.g. smoke) and translucent materials (e.g. marble and skin)
Radiative Transfer
a mathematical model describing how light interacts within participating media (e.g. smoke) and translucent materials (e.g. marble and skin)
Collision
Transport
Source
(Operator Form)
3 4
Tr Transmittance
π π¦$, π¦ = exp β 2
3 ?
πA π β π$π π π$
Ex Extinc nction n coefficien ent πA π
controls how frequently light scatters and is also known as optical density
π$= π-ππ π π π πΈ
phase e func unction n π
D π, ππ, π
A probability density over π₯G given π and ππ
scatteri ring coefficient πH π
π π, π = πΏ,πH π 2
π₯Iπ D π$, ππ, π π π$, ππ πππ + π
=: πLMN(π¦, π) in-scattered radiance
π$ π π ππ
radiant emission
π$ π π ππ π΄π πΈ π΄π
Absorption coeffici cient πT π
Inter erfacial r radiance e πH
Boundary condition Interfacial radiance Attenuation
π π, π = πΏ,πΏ-π + 2
3 4
π π$, π πT π πU π$, π ππ + π(ππ, π) πH(ππ, π)
(Integral Form)
π π, π = 2
3 4
π π$, π πH π 2
π₯Iπ D π$, ππ, π π π$, ππ πππ ππ
+ 2
3 4
π π$, π πT π$ πU π$, π ππ + π(ππ, π)πH(ππ, π)
Differentiating individual operators
Di Differentiating bo both h side des
πΏππ π = πH 2
π₯I π D ππ, π π ππ dππ
π ππ
(π omitted for notational simplicity)
π& 2
π₯Iπ ππ dππ = ?
Scattering coefficient Phase function
π = πΏ,πΏ-π + π RTE:
Requires differentiating a (spherical) integral
when π has discontinuities that depend π
2
π₯Iπ&π ππ dππ
π& 2
π₯Iπ ππ dππ =
2
π₯
π, πππ ππ βπ(ππ)dππ
Bo Boundary y term πΏ-π π = πH 2
π₯I π D ππ, π π ππ dππ
π ππ
π& 2
π₯Iπ ππ dππ
(according to Reynolds transport theorem)
change rate of discontinuity (in the normal direction) βπ is the difference of integrand π across the discontinuity ππ discontinuities of integrand f
π₯
βπ(ππ) = π
D ππ, π βπ ππ
when π
D is continuous
πΏ-π π = πH 2
π₯I π D ππ, π π ππ dππ
π ππ
2
π₯
π, πππ ππ π
D ππ, π βπ ππ dππ
The boundary term:
2
π₯
π, πππ ππ π
D ππ, π βπ ππ dππ
The boundary term:
π
2
π₯
π, πππ ππ π
D ππ, π βπ ππ dππ
The boundary term:
π
Reduces to the change rate of ππ (as an angle)
2
π₯
π, πππ ππ π
D ππ, π βπ ππ dππ
The boundary term:
π
(with the absence of attenuation)
visualization of π visualization of discontinuity curves π₯ line integral
2
π₯
π, πππ ππ π
D ππ, π βπ ππ dππ
Discontinuities curves:
Projection of moving geometric edges onto the sphere
2
π₯
π, πππ ππ π
D ππ, π βπ ππ dππ
Edge normal
2
π₯
π, πππ ππ π
D ππ, π βπ ππ dππ
3 4
Transmittance
This is Eq. (32) of the paper
Or
πbcde πfLghi πfLghi = π3 + π π§ πbcde = π
l +
π Initial position (constant)
Or
De
De
(no boundary term)
Key:
Boundary terms are included
ππ ππ ππ ππ ππ ππ ππ
Side Path 1 Side Path 2
βπ βπ βπ
Component 2:
Side paths (for estimating βπ)
Component 1:
Derivative of path throughput
Or
πbcde πfLghi πfLghi = π3 + π π§ πbcde = π
l +
π Initial position (constant)
(e (equal-ti time c e com
son)
Or
Ou Ours lar large spac acin ing sm small sp spacing Fi Finite Diff. Ab Absol
di differ erenc ence
#iterations Time (CPU core minute per iteration) 80 12.2
Target Optimization process Parameters
Cube roughness Apple position
#iterations Time (CPU core minute per iteration) 220 9.3
Target Optimization Process
#iterations Time (CPU core minute per iteration) 100 9
Target Optimization Process
(n (not
Heterogeneous medium Density scaling (param) Medium orientation (param)
#iterations Time (CPU core minute per iteration) 60 7.6
Target Optimization process
Spotlight A Light direction Light color Light falloff angle Spotlight B Parameters
Target Optimization process
#iterations Time (CPU core minute per iteration) 110 11.2
#iterations Time (CPU core minute per iteration) 100 27.2
Target Optimization Process