Path Guiding in Production Courses JI VORBA WETA DIGITAL Ji Vorba - - PowerPoint PPT Presentation

path guiding in production
SMART_READER_LITE
LIVE PREVIEW

Path Guiding in Production Courses JI VORBA WETA DIGITAL Ji Vorba - - PowerPoint PPT Presentation

Path Guiding in Production Courses JI VORBA WETA DIGITAL Ji Vorba | Path Guiding in Production - Introduction WETA DIGITAL LTD.2019 Motivation TODO: split this into multiple slides, should be almost only pictures and illustrations


slide-1
SLIDE 1

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019

JIŘÍ VORBA WETA DIGITAL

Path Guiding in Production

Courses

slide-2
SLIDE 2

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • TODO: split this into multiple slides, should be almost only pictures and illustrations
  • Show average ray numbers and times for rendering typical movie scenes
  • Show an example of such a scene
  • Not only heavy on data, light transport is the problem
  • Infamous MC convergence rate - one over sqrt(N)
  • Hardware progress is great, enables many more samples in the given time and will probably get even better in

the future (hardware ray-tracing support) but…

  • It is advantageous to identify inefficiencies per scene and adjust our sampling method so that we focus our effort

where it matters in the scene

  • Show examples of indirect / caustics

Motivation

slide-3
SLIDE 3

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019

Presenters

Jiří Vorba

(Weta Digital)

Thomas Müller

(NVIDIA)

Johannes Hanika

(KIT / Weta Digital)

Sebastian Herholz

(University of Tübingen)

Jaroslav Křivánek

(Charles University, Prague / Render Legion)

Alexander Keller

(NVIDIA)

slide-4
SLIDE 4

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • 14:00 – Opening Statements and Introduction [Jiří Vorba]

Overview

Introduction

  • 14:15 – Theoretical Background [Jaroslav Křivánek]

Syllabus

slide-5
SLIDE 5

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • 14:30 – Bayesian Inference in Many-Light Sampling [Jaroslav Křivánek]
  • 14:45 – Guiding and Shadow Rays [Alexander Keller]

Syllabus

slide-6
SLIDE 6

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • 15:15 – “Practical Path Guiding” in Production [Thomas Müller]
  • 15:45 – Break (15 minutes)

Syllabus

slide-7
SLIDE 7

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • 16:00 – Volumetric Path Guiding [Sebastian Herholz]
  • 16:30 – Guiding in Path Space [Johannes Hanika]
  • 17:00 – Open Problems and Future Work [Jiří Vorba]

Syllabus

slide-8
SLIDE 8

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Overview of existing methods
  • Sharing practical experience
  • Cover theoretical background
  • Share open problems with researchers

Goals

slide-9
SLIDE 9

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019

What is path guiding

Introduction

slide-10
SLIDE 10

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • What is path guiding?

Set of adaptive path sampling techniques aware of the scene content

  • Applicable in various transport algorithms (unidirection path tracing, bi-directional methods)

Path guiding

slide-11
SLIDE 11

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Averaging of many sampled paths
  • Efficiency depends on a few sampling decisions

Path tracing

slide-12
SLIDE 12

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Scattering (BRDF sampling)
  • Light sampling (Next-event estimation)
  • Absorption (Path length)
  • Free flight (ray distance sampling)

Path tracing – sampling decisions

slide-13
SLIDE 13

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Challenge: Indirect illumination, visibility

Scattering (BRDF sampling)

slide-14
SLIDE 14

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Next-Event estimation
  • Challenge: Many-light sampling, visibility

Direct illumination

slide-15
SLIDE 15

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Ideally short paths, but not shorter
  • Russian roulette: albedo based

Path length

slide-16
SLIDE 16

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Standard sampling decisions/schemes are local
  • We need global knowledge (radiance)
  • Example: BRDF * Radiance
  • Zero-variance sampling theory
  • Is it useful?

Key to efficiency

slide-17
SLIDE 17

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Radiance not known a-priory
  • Learning approximation from samples
  • Improved importance sampling
  • Path guiding = guiding the sampling decisions (based on the learned approximation)

Learning

slide-18
SLIDE 18

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • How to learn from samples?

Machine learning

  • How to represent the knowledge?

Parametic / Non-parametic models

  • How to exploit it in the simulation?

Depends on the model and the type of the sampling decision

Path guiding “How to”

slide-19
SLIDE 19

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019

Guided directional sampling

Scattering

slide-20
SLIDE 20

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Jensen [1995]

History

  • Lafortune and Willems [1995]

Learning from photons Learning from forward samples

slide-21
SLIDE 21

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Jensen [1995]
  • Hey and Purgathofer [2002]
  • Vorba et al. [2014]
  • Vorba et Křivánek [2016]
  • 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]

Learning from photons Learning from forward samples

slide-22
SLIDE 22

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • TODO: Bit more detail on Vorba et al. 2014 (will illustrate guiding by a concrete method, this method

is/can be used in practice)

  • TODO: Explain pre-training, used representation, how it is used in the rendering

Directional path guiding

slide-23
SLIDE 23

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019

Guided Russian roulette and splitting

Path length

slide-24
SLIDE 24

Jiří Vorba | Path Guiding in Production - Introduction

WETA 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

slide-25
SLIDE 25

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Termination probability

Albedo based Russian roulette

[Arvo & Kirk 1990]

Current path weight User given threshold

slide-26
SLIDE 26

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Termination probability

Albedo based Russian roulette

[Arvo & Kirk 1990] [Jensen 2001]

Current path weight Albedo User given threshold

slide-27
SLIDE 27

Jiří Vorba | Path Guiding in Production - Introduction

WETA 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

slide-28
SLIDE 28

Path tracing (1h)

slide-29
SLIDE 29

Path tracing (1h) Guided RR and splitting (1h)

slide-30
SLIDE 30

Path tracing (1h) Guided RR and splitting (1h)

slide-31
SLIDE 31

Path tracing (1h) Guided RR and splitting (1h)

slide-32
SLIDE 32

Path tracing (1h)

32

Guided RR and splitting + Directional guiding (1h) Guided RR and splitting (1h)

slide-33
SLIDE 33

Jiří Vorba | Path Guiding in Production - Introduction

WETA 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

slide-34
SLIDE 34

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019

Pixel value estimates (Vorba et Křivánek [2016])

Estimate Reference

slide-35
SLIDE 35

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Can be simplified in practice
  • Many possible approaches (low sample count -> denoising)
  • MIP mapping of beauty image (at Weta)
  • TODO: pics

Pixel value estimates (progressive rendering)

slide-36
SLIDE 36

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Minimal overhead on top of directional guiding
  • Synergic effect
  • Makes guiding cheap (even on simple scenes)

Guided Russian roulette and splitting

slide-37
SLIDE 37

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Photons – longer time to first pixel
  • Forward – fits in progressive rendering
  • But forward can learn slowly

E.g. caustics

  • Ideal method low overhead, is progressive, fast learning

Practical method

slide-38
SLIDE 38

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • TODO: would be nice to describe what we have done for ABA, caustics and god-rays if we have time

Guiding (photon) emission

slide-39
SLIDE 39

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Possible to guide
  • Say that Alita is PLT (path tracing and light tracing)
  • Guided PT is not efficient enough on caustics
  • Show/say why
  • Photons do not allow for bending physics (for example point-of-entry)
  • We do not have light tracing on specular transmission
  • We don’t use it in hair, don’t use it on skin
  • Together more robust algorithm
  • Ideally we wish for forward guiding only method that would cope even with ocean rendering

Guiding in Bi-directional algorithms

slide-40
SLIDE 40

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019
  • Defined path guiding = Family of adaptive path sampling methods
  • Importance sample all the decisions along the path -> Superior convergence rate

Scattering (directional guiding)

Path length (guided Russian roulette and splitting)

Direct light [Jaroslav, Alexander]

Free-flight [Sebastian]

  • Guided photon emission (caustics in production)
  • What would be the ideal production method [Jirka – last session]

Wrapping up

slide-41
SLIDE 41

Jiří Vorba | Path Guiding in Production - Introduction

WETA DIGITAL LTD.2019

THANK YOU