GUIDING INDIRECT ILLUMINATION - Univerzita Karlovajirka/path-guiding-in-production/2019/... ·...
Transcript of GUIDING INDIRECT ILLUMINATION - Univerzita Karlovajirka/path-guiding-in-production/2019/... ·...
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
JIŘÍ VORBAWETA DIGITAL
GUIDING INDIRECT ILLUMINATION
Alita: Battle Angel |© 2018 Twentieth Century Fox Film Corporation
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
GUIDED DIRECTIONAL SAMPLING
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Jensen [1995]
HISTORY
• Lafortune and Willems [1995]
Learning from photons Learning from forward samples
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Jensen [1995]
HISTORY
• Lafortune and Willems [1995]
Learning from photons Learning from forward samples
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Jensen [1995]
HISTORY
• Lafortune and Willems [1995]
Learning from photons Learning from forward samples
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Jensen [1995]
HISTORY
• Lafortune and Willems [1995]
Learning from photons Learning from forward samples
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Jensen [1995]
• Hey and Purgathofer [2002]
• Vorba et al. [2014]
• Herholz et al. [2016, 2019]
HISTORY
• Lafortune and Willems [1995]
• Pegoraro et al. [2008]
• Bashford-Rogers et al. [2012]
• Müller et al. [2017]
• Dahm and Keller [2018]
• Simon et al. [2018]
Learning from photons Learning from forward samples
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
2D DIRECTIONAL MODELSHey and Purgathofer [2002](Kernel density)
Jensen [1995](Histograms)
Vorba et al. [2014](Gaussian mixtures)
41
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• How to learn from samples?
– Preprocess, interleaved tracing
• How to represent the knowledge?
– Mixtures of Gaussians cached in the scene
• How to exploit it in the simulation?
– Fetch nearest mixture
Preprocess Rendering
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
The BFG|© 2016 Storyteller Distribution Co., LLC.
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
The BFG|© 2016 Storyteller Distribution Co., LLC.
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
The BFG|© 2016 Storyteller Distribution Co., LLC.
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
Guided Russian roulette and splitting
OPTIMAL PATH LENGTH
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Importance sampling of path length
• Splitting when expected contribution is high
• Vorba et Křivánek [2016]
GUIDED RUSSIAN ROULETTE AND SPLITTING
subsurface
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Termination probability
ALBEDO BASED RUSSIAN ROULETTE
[Arvo & Kirk 1990]
Current path weight
User given threshold
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Termination probability
ALBEDO BASED RUSSIAN ROULETTE
[Arvo & Kirk 1990]
[Jensen 2001]
Current path weight
Albedo
User given threshold
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Termination probability
• Problem: it’s local
• Kill paths too early
• Waste time on long paths
ALBEDO BASED RUSSIAN ROULETTE
[Arvo & Kirk 1990]
[Jensen 2001]
Current path weight
Albedo
User given threshold
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Input
– approximation of radiance field
– estimate of pixel values
• Output
– Termination probability / path split ratio
GUIDED RUSSIAN ROULETTE AND SPLITTING
Expected path contribution
(given current vertices)
Pixel estimate[Vorba a Křivánek 2016]
Path tracing (1h)
Path tracing (1h) Guided RR and splitting (1h)
Path tracing (1h) Guided RR and splitting (1h)
Path tracing (1h)
Guided RR and splitting (1h)
Path tracing (1h)
57
Guided RR and splitting + Directional guiding (1h)
Guided RR and splitting (1h)
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
PIXEL VALUE ESTIMATES (Vorba et Křivánek [2016])
Estimate Reference
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Can be simplified in practice
• Many possible approaches (low sample count -> denoising)
• MIP mapping of beauty image (at Weta)
PIXEL VALUE ESTIMATES (progressive rendering)
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Minimal overhead
• Makes guiding cheap
• Better results than each method alone
SYNERGY
Directional guiding
Guided RR and splitting
+
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
• Path guiding as adaptive sampling in path space
• Guide all the decisions
– Guided directional sampling
– Guided Russian roulette and splitting (Path length)
– Guided light sampling (Next-event estimation)
– Guided free flight (Ray-distance sampling)
Summary
Jiří Vorba | Path Guiding in Production - IntroductionWETA DIGITAL LTD.2019
THANK YOU
The BFG|© 2016 Storyteller Distribution Co., LLC.
Alita: Battle Angel |© 2018 Twentieth Century Fox Film Corporation
VISIT US AT THE JOB FAIR, BOOTH #1
Tuesday, 30 July, 9:30am - 6pm
Wednesday, 31 July, 9:30am - 6pm
http://careers.wetafx.co.nz
WETA DIGITAL IS HIRING
Jiří Vorba | Path Guiding in ProductionWETA DIGITAL LTD.2019