Product Importance Sampling for Light Transport Guiding Herholtz et - - PowerPoint PPT Presentation

product importance sampling for light transport guiding
SMART_READER_LITE
LIVE PREVIEW

Product Importance Sampling for Light Transport Guiding Herholtz et - - PowerPoint PPT Presentation

Product Importance Sampling for Light Transport Guiding Herholtz et al. 2016 presenter: Eunhyouk Shin It is all about convergence Contents - Review on importance sampling - Light transport guiding techniques - Gaussian Mixture Model &


slide-1
SLIDE 1

Product Importance Sampling for Light Transport Guiding

presenter: Eunhyouk Shin

Herholtz et al. 2016

slide-2
SLIDE 2

It is all about convergence

slide-3
SLIDE 3

Contents

  • Review on importance sampling
  • Light transport guiding techniques
  • Gaussian Mixture Model & EM
  • Process overview
  • Results & Discussion
slide-4
SLIDE 4

Source Materials

[EUROGRAPHICS 2016] [SIGGRAPH 2014]

  • Main paper for this presentation
  • Baseline technology
  • Useful presentation slides from the authors
slide-5
SLIDE 5

Importance Sampling

slide-6
SLIDE 6

Rendering Equation

  • Direct analytic integration is virtually impossible
  • Recursive, due to the radiance term in the integrand
slide-7
SLIDE 7

Monte Carlo Ray Tracing

  • Random sample direction from hemisphere to

cast ray recursively

  • Unbiased, even if sampling is not uniform
slide-8
SLIDE 8

Importance Sampling

  • Lower variance when PDF is close to integrand distribution
  • i.e. make more path that contributes more to radiance (light transport guiding)
  • How can we make a good estimate for the integrand distribution?
  • BRDF (given)
  • Illumination (unknown)

Better to be...

slide-9
SLIDE 9

Light Transport Guiding Techniques

(slides from Vorba et al.)

slide-10
SLIDE 10

Previous work

  • Jensen [1995]

photon tracing

10

slide-11
SLIDE 11

Previous work

  • Jensen [1995]

photon tracing path tracing

11

slide-12
SLIDE 12

Previous work

  • Jensen [1995]

photon tracing path tracing

12

slide-13
SLIDE 13

Previous work

  • Jensen [1995]

photon tracing path tracing

13

slide-14
SLIDE 14

k-NN

14

Previous work

  • Jensen [1995]: reconstruction
slide-15
SLIDE 15

15

Previous work

  • Jensen [1995]: reconstruction
slide-16
SLIDE 16

Previous work

  • Peter and Pietrek [1998]

path tracing photon tracing

16

slide-17
SLIDE 17

Previous work

  • Peter and Pietrek [1998]

path tracing photon tracing importon tracing

17

slide-18
SLIDE 18

Previous work

  • Peter and Pietrek [1998]

PT

18

slide-19
SLIDE 19

Previous work

  • Peter and Pietrek [1998]

PT

19

slide-20
SLIDE 20

Previous work

  • Peter and Pietrek [1998]

PT

20

slide-21
SLIDE 21

Previous work

  • Peter and Pietrek [1998]

PT

21

slide-22
SLIDE 22

Previous work

  • Peter and Pietrek [1998]

PT

22

slide-23
SLIDE 23

Previous work

  • Peter and Pietrek [1998]

PT

23

slide-24
SLIDE 24

Previous work

  • Peter and Pietrek [1998]

PT

24

slide-25
SLIDE 25

Limitations of previous work

25

  • Bad approximation of in complex scenes
slide-26
SLIDE 26

Limitations of previous work

26

slide-27
SLIDE 27

Limitations of previous work

27

slide-28
SLIDE 28

Limitations of previous work

PT

28

slide-29
SLIDE 29

Limitations of previous work

29

Not enough memory!

slide-30
SLIDE 30

Solution: On-line Learning of Parametric Model

  • Shoot a batch of photons, then summarize into a parametric model
  • GMM (Gaussian Mixture Model) is used
  • Parametric model use less memory
  • Forget previous photon batch and shoot new batch
  • Keep updating parameters of the model: On-line learning
slide-31
SLIDE 31

Overcoming the memory constraint

31

slide-32
SLIDE 32

Overcoming the memory constraint

1st pass

32

slide-33
SLIDE 33

Overcoming the memory constraint

1st pass GMM

33

slide-34
SLIDE 34

Overcoming the memory constraint

1st pass

k-NN

34

slide-35
SLIDE 35

Overcoming the memory constraint

1st pass GMM

35

slide-36
SLIDE 36

Overcoming the memory constraint

1st pass GMM

36

slide-37
SLIDE 37

Overcoming the memory constraint

1st pass GMM

37

slide-38
SLIDE 38

Overcoming the memory constraint

1st pass 2nd pass GMM

38

slide-39
SLIDE 39

Overcoming the memory constraint

1st pass GMM 2nd pass

39

slide-40
SLIDE 40

Overcoming the memory constraint

1st pass 2nd pass 3rd pass

40

GMM

slide-41
SLIDE 41

Overcoming the memory constraint

1st pass 2nd pass 3rd pass

41

GMM

slide-42
SLIDE 42

Gaussian Mixture Model

slide-43
SLIDE 43

Gaussian Distribution (Normal Distribution)

Compact: just 6 float numbers for 2D

slide-44
SLIDE 44

Gaussian Mixture Model (GMM)

Used to approximate PDF Convex combination of Gaussians:

slide-45
SLIDE 45

Expectation Maximization (EM) Algorithm

  • Popular algorithm that can be used for fitting GMM to scattered data points
  • Consists of 2 steps: E-step (expectation) and M-step (maximization)
  • Converge to local maximum of likelihood
slide-46
SLIDE 46

EM: How It Works

slide-47
SLIDE 47

EM: Expectation Step

Soft assignment using Bayes’ rule

  • For each sample, compute

soft assignment weight to clusters

slide-48
SLIDE 48

EM: Maximization Step

  • Update each cluster

parameters (mean, variance, weight) to fit the data assigned to it

slide-49
SLIDE 49

EM example

slide-50
SLIDE 50

EM example

slide-51
SLIDE 51

EM example

slide-52
SLIDE 52

On-line learning: Weighted Stepwise EM

  • Use one sample for each step and extend to infinite stream of samples
  • Use weighted samples (can be viewed as repeated samples)
  • Fit to density of finite set of samples, compute sufficient statistics at once

Weighted stepwise EM: (variant used for this paper) Original EM:

slide-53
SLIDE 53

Process Overview

slide-54
SLIDE 54

Process Overview

1. Preprocessing 2. Training 3. Rendering

slide-55
SLIDE 55

Process Overview

1. Preprocessing 2. Training 3. Rendering

slide-56
SLIDE 56

Process Overview

1. Preprocessing 2. Training 3. Rendering

slide-57
SLIDE 57

Process Overview

1. Preprocessing 2. Training 3. Rendering

slide-58
SLIDE 58
  • 1. Preprocessing
  • BRDF is approximated by GMM
  • Cache GMM for each material, for each

(viewing) direction BRDF:Given

slide-59
SLIDE 59
  • 2. Training
  • Photon, importons guide each other in

alternating fashion

  • On-line learning with weighted step-wise EM
  • Cache the learnt illumination GMMs

Illumination: not known in advance

slide-60
SLIDE 60
  • 2. Training
slide-61
SLIDE 61
  • 3. Rendering
  • For intersection point, query the cached

BRDF, radiance GMM

  • Product distribution is calculated
  • n-the-fly
  • Sampling based on product distribution

How can we calculate efficiently?

slide-62
SLIDE 62

Gaussian x Gaussian = Gaussian

  • Extends to multi-dimensional Gaussian

X =

slide-63
SLIDE 63

( + … + ) x ( + … + )

GMM x GMM = GMM

BRDF: GMM of N components Illumination: GMM of M components

= ( + + … + + )

Product distribution: GMM of M*N components

  • Parameters for product GMM can be computed directly from
  • riginal parameters
slide-64
SLIDE 64

Reduction of GMM components

  • For the sake of efficiency, merge similar components
slide-65
SLIDE 65

Results & Discussion

slide-66
SLIDE 66

Evaluation: 1 hour rendering

slide-67
SLIDE 67

Result

Multiple importance sampling instead of product dist. No GMM reduction

slide-68
SLIDE 68

Result

slide-69
SLIDE 69

Discussion

  • No memory issue indeed
  • < 10MB for GMM cache in typical scene
  • Fast convergence for complex glossy-glossy reflection scene
  • Where product sampling is important
  • Not efficient for spatially varying BRDF
  • GMM is cached per material
  • Possible extension using SVBRDF parameters
slide-70
SLIDE 70

Summary

  • In order to perform importance sampling, we estimate illumination based on particles
  • In complex scenes, we need more particles for better estimation
  • On-line learning of GMM by weighted stepwise EM, enables to generate particles

without causing memory issues.

  • BRDF is also approximated as GMM so that we can use the product GMM as direct

approximation for the integrand of the rendering equation

  • Fast convergence for complex, glossy scenes