Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat...

40
Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Cas
  • date post

    23-Jan-2016
  • Category

    Documents

  • view

    215
  • download

    0

Transcript of Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat...

Page 1: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Interreflections and Radiosity :

The Forward Problem

Lecture #11

Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn

Page 2: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 3: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Cornell Box

blue huered hue

Page 4: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 5: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 6: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Phong Shading

•no shadows

•no object interactions

Plastic looking scene

Page 7: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Ray Tracing

Scene doesn’t look realistic enough.

• where is the corner of room?

• is the carpet and wood supposed to be this dark?

• is window flush with wall?

Page 8: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Radiosity – today’s topic

• carpet and wood on table is lighter

Indirect lighting affects realism.

• window has depth

• walls look more pink

• room has a corner

Page 9: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

The Rendering Equation – Graph Style

p p’

p’’

Visibility(shadows)

Emission(light source)

Reflectance from Surfaces

source viewer

Page 10: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 11: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Diffuse Interreflections - Radiosity

• Consider lambertian surfaces and sources.

• Radiance independent of viewing direction.

• Consider total power leaving per unit area of a surface.

• Can simulate soft shadows and color bleeding from diffuse surfaces.

• Used abundantly in heat transfer literature

Page 12: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Irradiance, Radiosity

• Irradiance E is the power received per unit surface area

– Units: W/m2

• Radiosity – Power per unit area leaving the surface (like irradiance)

Page 13: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Planar piecewise constancy assumption

•Subdivide scene intosmall “uniform” polygons

Page 14: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

N

jjieii jiFi

1

)(:

Power Equation

• Power from each polygon:

•Linear System of Equations:

Page 15: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 16: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

i jA A

xyxy

yx

j

dAdAyxVrA

ijF ),(coscos1

)(2

Page 17: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Form Factors Invariant

i jA A

xyxy

yx

j

dAdAyxVrA

ijF ),(coscos1

)(2

ji AijFAjiF )()(

j iA A

yxxy

yx

i

dAdAyxVrA

jiF ),(coscos1

)(2

Page 18: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Form Factor Computation

•Schroeder and Hanrahan derived an analytic expression for polygonal surfaces.

•In general, computing double integral is hard.

•Use Monte Carlo Integration.

i jA A

yyxy

yx

j

dAdAyxVrA

ijF ),(coscos1

)(2

Page 19: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Form Factor Computation

Page 20: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Form Factor Computation

Page 21: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 22: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Linear System of Radiosity Equations

KnownKnown

Unknown

• Matrix Inversion to Solve for Radiosities.

Page 23: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 24: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Doug James

Page 25: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Wireframe

Page 26: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

•ClassicalApproach

•NoInterpolation

Page 27: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Wireframe

Page 28: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

•ClassicalApproach

•Low Res

Page 29: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

•ClassicalApproach

•High Res

•More accurate

Page 30: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

•ClassicalApproach

•High Res

•Interpolated

Page 31: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Page 32: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Sample Scenes

Page 33: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Sample Scenes

Page 34: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Sample Scenes

Page 35: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Sample Scenes

Page 36: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Sample Scenes

Page 37: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Summary

Page 38: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Doug James

Page 39: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Two Pass Solution

• First Pass: Diffuse Interreflections

View independent, global diffuse illuminationcomputed with radiosity.

• Second Pass: Specular Interreflections

View dependent, global specular illuminationcomputed with ray-tracing.

• Combine strengths of radiosity and ray-tracing.

Page 40: Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.

Interreflections :

The Inverse Problem

Lecture #12