Operator Formulation of Light Transport II CS295, Spring 2017 - - PowerPoint PPT Presentation

operator formulation of light transport ii
SMART_READER_LITE
LIVE PREVIEW

Operator Formulation of Light Transport II CS295, Spring 2017 - - PowerPoint PPT Presentation

Operator Formulation of Light Transport II CS295, Spring 2017 Shuang Zhao Computer Science Department University of California, Irvine CS295, Spring 2017 Shuang Zhao 1 Announcement The deadline for PA1 has been extended to this Thursday


slide-1
SLIDE 1

Operator Formulation of Light Transport II

CS295, Spring 2017 Shuang Zhao

Computer Science Department University of California, Irvine

CS295, Spring 2017 Shuang Zhao 1

slide-2
SLIDE 2

Announcement

  • The deadline for PA1 has been extended to

this Thursday (May 4)

CS295, Spring 2017 Shuang Zhao 2

slide-3
SLIDE 3

Last Lecture

  • Monte Carlo Path Tracing III
  • MIS for direct illumination
  • Operator formulation of light transport
  • Ray space, throughput measure
  • Functions and operators
  • Operator formulation of the RE

CS295, Spring 2017 Shuang Zhao 3

slide-4
SLIDE 4

Today’s Lecture

  • Operator formulation of light transport II
  • Sensors and measurements
  • Adjoint operators and adjoint particle tracing

CS295, Spring 2017 Shuang Zhao 4

slide-5
SLIDE 5

Recap: Ray Space

  • Let be the set of surfaces in the scene,

then is the ray space consisting

  • f all light rays
  • riginating from all

surface points

  • Let

, then the throughput measure is given by

CS295, Spring 2017 Shuang Zhao 5

slide-6
SLIDE 6

Recap: Useful Operators

  • For any function
  • The local scattering operator K:
  • The propagation operator G:

CS295, Spring 2017 Shuang Zhao 6

slide-7
SLIDE 7

Recap: Operator Formulation of the RE

  • Given the two operators K and G, we can

rewrite the rendering equation (RE) as

  • Solving the RE is effectively inverting (I - T)

where I denotes the identity operator:

CS295, Spring 2017 Shuang Zhao 7

slide-8
SLIDE 8

Operator Formulation of the RE

CS295, Spring 2017 Shuang Zhao 8

=

L Le

slide-9
SLIDE 9

Operator Formulation of the RE

CS295, Spring 2017 Shuang Zhao 9

Direct illumination

= +

L Le TLe

slide-10
SLIDE 10

Operator Formulation of the RE

CS295, Spring 2017 Shuang Zhao 10

= + +

L Le TLe T2Le

2-bounce indirect illumination

slide-11
SLIDE 11

Sensors and Measurements

  • Up to this point, we have been considering

estimating individual radiance values L(x, ω) or Li(x, ω)

  • In practice, we often need to estimate the

response of some sensor described by the measurement function

CS295, Spring 2017 Shuang Zhao 11

slide-12
SLIDE 12

Sensors and Measurements

  • can be estimated using MC

integration: where p0 is a probability density over all rays

  • In practice, it is desirable to have
  • r
  • After drawing r ~ p0, Li(r) can in turn be

estimated using path tracing

CS295, Spring 2017 Shuang Zhao 12

slide-13
SLIDE 13

Example: Irradiance Meter

CS295, Spring 2017 Shuang Zhao 13

slide-14
SLIDE 14

Example: Irradiance Meter

computeIrradiance(): x = uniformSampleSensor() ω = uniformRandomPSA(nx) return |A| * π * receivedRadiance(x, ω)

CS295, Spring 2017 Shuang Zhao 14

slide-15
SLIDE 15

Example: Pinhole Camera

CS295, Spring 2017 Shuang Zhao 15

Center of projection Image plane

A pixel Pixel i

slide-16
SLIDE 16

Example: Pinhole Camera

computePixelIntensity(i): x = uniformSamplePixel(i) ω = normalize(x - o) return receivedRadiance(x, ω)

CS295, Spring 2017 Shuang Zhao 16

Center of projection Image plane

A pixel Pixel i

slide-17
SLIDE 17

Adjoint Operators

  • The adjoint of an operator H is denoted H*, and

is defined by the property that

  • If H = H*, then H is called self-adjoint
  • The propagation operator G is self-adjoint

CS295, Spring 2017 Shuang Zhao 17

slide-18
SLIDE 18

Adjoint Operators

  • The local scattering operator K satisfies that
  • K is self-adjoint if

for all

  • This is the case for all BRDFs with reciprocity (which

holds for all BRDFs we have seen up to this point)

CS295, Spring 2017 Shuang Zhao 18

slide-19
SLIDE 19

Adjoint Operators

  • For any operators A, B and C:
  • A + B = B + A
  • A(BC) = (AB)C
  • (A + B)* = A* + B*, (A B)* = B* A*, (A-1)* = (A*)-1
  • Based on these properties and the fact that

G is self-adjoint, we have

CS295, Spring 2017 Shuang Zhao 19

slide-20
SLIDE 20

Adjoint Operators

  • G(I - KG)-1 is self-adjoint when K is self-adjoint
  • Therefore,
  • (I - KG)-1 Le gives the radiance L (as a function on

the ray space) satisfying the RE: L = KGL + Le

  • (I - K*G)-1 We gives another function

satisfying W = K*GW + We

CS295, Spring 2017 Shuang Zhao 20

slide-21
SLIDE 21

The Importance Transport

  • W is called the importance function
  • Computing

W requires solving the important transport problem given by W = K*GW + We

  • The sensor acts as the light source in the light

transport problem by emitting importance We

  • Any algorithm that estimates L for the original light

transport problem (e.g., path tracing) can be adapted to estimate W

CS295, Spring 2017 Shuang Zhao 21

slide-22
SLIDE 22

Same results!

Light vs. Importance Transport

CS295, Spring 2017 Shuang Zhao 22

Light transport

  • Transport equation

L = KGL + Le

  • Central quantity

L (radiance)

  • Source term

Le (radiance emitted by light sources)

  • Measurements

I = <We, GL> = <We, Li>

Importance transport

  • Transport equation

W = K*GW + We

  • Central quantity

W (importance)

  • Source term

We (importance “emitted” by sensors)

  • Measurements

I = <GW, Le> = <Wi, Le>

slide-23
SLIDE 23

Adjoint Particle Tracing

  • Goal: estimating
  • Initial step:
  • Draw x and ω from some probability density
  • r
  • Then,

CS295, Spring 2017 Shuang Zhao 23

Known after drawing x and ω

slide-24
SLIDE 24

Example: Sampling Area Lights

CS295, Spring 2017 Shuang Zhao 24

Area light emitting radiance L0 into all directions

Similar to irradiance meters in the light transport problem

slide-25
SLIDE 25

Example: Sampling Area Lights

computeMeasurement(): x = uniformSampleLight() ω = uniformRandomPSA(nx) return |A| * L0 * π * receivedImportance(x, ω)

CS295, Spring 2017 Shuang Zhao 25

Area light emitting radiance L0 into all directions

Similar to irradiance meters in the light transport problem

slide-26
SLIDE 26

Adjoint Particle Tracing

  • Main step: estimating W(x, ω)
  • This can be done using an algorithm equivalent to

path tracing since

  • We call this algorithm adjoint particle tracing to

emphasize that it solves the adjoint (importance transfer) problem

CS295, Spring 2017 Shuang Zhao 26

slide-27
SLIDE 27

Path vs. Adjoint Particle Tracing

# Path tracing (version 0.1) radiance(x, ω): rad = emittedRadiance(x, ω) ωi = uniformRandomPSA(nx) y = RayTrace(x, ωi) rad += π * radiance(y, -ωi) * brdf(x, ωi, ω) return rad # Adjoint particle tracing (version 0.1) importance(x, ω): imp = emittedImportance(x, ω) ωo = uniformRandomPSA(nx) y = RayTrace(x, ωo) imp += π * importance(y, -ωo) * brdf(x, ω, ωo) return imp

CS295, Spring 2017 Shuang Zhao 27

slide-28
SLIDE 28

Next-Event Estimation

  • Similar to path tracing, next-event estimation

can drastically improve the convergence rate

  • Same idea: separating direct & indirect

CS295, Spring 2017 Shuang Zhao 28

Path tracing: Adjoint particle tracing:

slide-29
SLIDE 29

Direct and Indirect Importance

CS295, Spring 2017 Shuang Zhao 29

slide-30
SLIDE 30

Evaluating Direct Importance

  • Sensor sampling
  • psensor is usually picked as the uniform distribution
  • ver the surface A of the sensor. Namely,

CS295, Spring 2017 Shuang Zhao 30

slide-31
SLIDE 31

Evaluating Direct Importance

  • BRDF sampling
  • Desirable to have
  • r

CS295, Spring 2017 Shuang Zhao 31

slide-32
SLIDE 32

Evaluating Direct Importance

  • Similar to evaluating direct illumination, the two

sampling methods can be combined using multiple importance sampling (MIS)

CS295, Spring 2017 Shuang Zhao 32

slide-33
SLIDE 33

Path vs. Adjoint Particle Tracing

  • Since

, both algorithms lead to the same answer

  • Which one to use depends on the light source

and measurement functions (namely, Le and We)

CS295, Spring 2017 Shuang Zhao 33

slide-34
SLIDE 34

Challenging Light Sources

  • Collimated beam
  • Problem:
  • Neither light source nor

BRDF sampling can give a point y on A with precisely aligned with ωe

  • Can never hit A precisely

from direction -ωe

CS295, Spring 2017 Shuang Zhao 34

A A

slide-35
SLIDE 35

Challenging Light Sources

  • Collimated beam
  • In this case, we should

solve the adjoint problem instead

CS295, Spring 2017 Shuang Zhao 35

A A

slide-36
SLIDE 36

Next Lecture

  • Path integral formulation

CS295, Spring 2017 Shuang Zhao 36