Monte Carol Integration Sung-Eui Yoon ( ) Course URL: - - PowerPoint PPT Presentation

monte carol integration
SMART_READER_LITE
LIVE PREVIEW

Monte Carol Integration Sung-Eui Yoon ( ) Course URL: - - PowerPoint PPT Presentation

CS580: Monte Carol Integration Sung-Eui Yoon ( ) Course URL: http://sglab.kaist.ac.kr/~sungeui/GCG Class Objectives Sampling approach for solving the rendering equation Monte Carlo integration Estimator and its variance


slide-1
SLIDE 1

CS580:

Monte Carol Integration

Sung-Eui Yoon (윤성의)

Course URL: http://sglab.kaist.ac.kr/~sungeui/GCG

slide-2
SLIDE 2

2

Class Objectives

  • Sampling approach for solving the

rendering equation

  • Monte Carlo integration
  • Estimator and its variance
  • Sampling according to the pdf
slide-3
SLIDE 3

3

Two Forms of the Rendering Equation

  • Hemisphere integration
  • Area integration
slide-4
SLIDE 4

4

Radiance Evaluation

  • Fundamental problem in GI algorithm
  • Evaluate radiance at a given surface point in a

given direction

  • I nvariance defines radiance everywhere else
slide-5
SLIDE 5

5

Radiance Evaluation

slide-6
SLIDE 6

6

Why Monte Carlo?

  • Radiace is hard to evaluate
  • Sample many paths
  • I ntegrate over all incoming directions
  • Analytical integration is difficult
  • Need numerical techniques

From kavita’s slides

slide-7
SLIDE 7

7

Monte Carlo Integration

  • Numerical tool to evaluate integrals
  • Use sampling
  • Stochastic errors
  • Unbiased
  • On average, we get the right answer
slide-8
SLIDE 8

8

slide-9
SLIDE 9

9

slide-10
SLIDE 10

10

slide-11
SLIDE 11

11

slide-12
SLIDE 12

12

slide-13
SLIDE 13

13

slide-14
SLIDE 14

14

slide-15
SLIDE 15

15

slide-16
SLIDE 16

16

slide-17
SLIDE 17

17

slide-18
SLIDE 18

18

slide-19
SLIDE 19

19

slide-20
SLIDE 20

20

slide-21
SLIDE 21

21

slide-22
SLIDE 22

22

slide-23
SLIDE 23

23

  • Consider p(x) for estimate
  • We will study it as importance sampling later
slide-24
SLIDE 24

24

slide-25
SLIDE 25

25

slide-26
SLIDE 26

26

slide-27
SLIDE 27

27

slide-28
SLIDE 28

28

MC Integration - Example

  • I ntegral
  • Variance
slide-29
SLIDE 29

29

slide-30
SLIDE 30

30

slide-31
SLIDE 31

31

slide-32
SLIDE 32

32

Advantages of MC

  • Convergence rate of
  • Simple
  • Sampling
  • Point evaluation
  • General
  • Works for high dimensions
  • Deals with discontinuities, crazy functions, etc.

) 1 ( N O

slide-33
SLIDE 33

33

slide-34
SLIDE 34

34

slide-35
SLIDE 35

35

Importance Sampling

  • Take more samples in important regions,

where the function is large

From kavita’s slides

slide-36
SLIDE 36

36

slide-37
SLIDE 37

37

slide-38
SLIDE 38

38

slide-39
SLIDE 39

39

slide-40
SLIDE 40

40

Sampling according to pdf

  • I nverse cumulative distribution function
  • Rejection sampling
slide-41
SLIDE 41

41

Inverse Cumulative Distribution Function – Discrete Case

, given uniform sampling

slide-42
SLIDE 42

42

Continuous Random Variable

  • Algorithm
  • Pick u uniformly from [0, 1)
  • Output y = P-1(u), where

 

y

dx x p y P ) ( ) (

slide-43
SLIDE 43

43

slide-44
SLIDE 44

44

slide-45
SLIDE 45

45

slide-46
SLIDE 46

46

slide-47
SLIDE 47

47

Rejection Method

  • Often not possible to compute the inverse
  • f cdf

From kavita’s slides

1

slide-48
SLIDE 48

48

Class Objectives were:

  • Sampling approach for solving the

rendering equation

  • Monte Carlo integration
  • Estimator and its variance
  • Sampling according to the pdf
slide-49
SLIDE 49

49

Next Time

  • Monte Carlo ray tracing