46
Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Embed Size (px)

Citation preview

Page 1: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance Sparrow Model of Reflectance

+

Oren Nayar Model of Reflectance

Page 2: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow Model – Main Points

•Physically Based Model for Surface Reflection.

•Based on Geometric Optics.

•Explains off-specular lobe (wider highlights).

•Works for only rough surfaces.

•For very smooth surfaces, electromagnetic nature of light must be used

Beckmann-Spizzichinno model.

Beyond the scope of this course.

Page 3: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Modeling Rough Surfaces - Microfacets

• Roughness simulated by Symmetric V-groves at Microscopic level.

• Distribution on the slopes of the V-grove faces are modeled.

• Each microfacet assumed to behave like a perfect mirror.

Page 4: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Coordinate System needed to derive T-S model

Page 5: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow or Cook-Torrance BRDF

Physically based model of a reflecting surface. Assumes a surface is a collection of planar microscopic facets, microfacets. Each microfacet is a perfectly smooth reflector.

• D describes the distribution of microfacet orientations.

• G describes the masking and shadowing effects between the microfacets.

• F term is a Fresnel reflection term related to material’s index of refraction.

Page 6: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow or Cook-Torrance BRDF

Microfacet Distribution Function

• Statistical model of the microfacet variation in the halfway-vector H direction

• Based on a Beckman distribution function

• Consistent with the surface variations of rough surfaces

• β - the angle between N and H

• m - the root-mean-square slope of the microfacets

Page 7: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Beckman’s Distribution:

Torrance-Sparrow or Cook-Torrance BRDF

Page 8: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow or Cook-Torrance BRDF

Geometric Attenuation Factor:

The geometric attenuation factor G accounts for microfacet shadowing. The factor G is in the range from 0 (total shadowing) to 1 (no shadowing). There are many different ways that an incoming beam of light can interact with the surface locally. The entire beam can simply reflect, shown here.

Page 9: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow or Cook-Torrance BRDF

Geometric Attenuation Factor:

A portion of the outgoing beam can be blocked. This is called masking.

Page 10: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow or Cook-Torrance BRDF

Geometric Attenuation Factor:

A portion of the incoming beam can be blocked. This is called shadowing.

Page 11: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow or Cook-Torrance BRDF

Geometric Attenuation Factor:

In each case, the geometric configurations can be analyzed to compute the percentage of light that actually escapes from the surface.

Page 12: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Geometric Attenuation Factor

Page 13: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow or Cook-Torrance BRDF

Fresnel Factor:

The Fresnel effect is wavelength dependent. It behavior is determined by the index-of-refraction of the material (taken as a complex value to allow for attenuation). This effect explains the variation in colors seen in specular regions particular on metals (conductors). It also explains why most surfaces approximate mirror reflectors when the light strikes them at a grazing angle.

Page 14: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance
Page 15: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance
Page 16: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Coordinate System needed to derive T-S model

Page 17: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Components of Surface Reflection – Moving Light Source

Page 18: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Components of Surface Reflection – Moving Camera

Page 19: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Split off-specular Reflections in Woven Surfaces

Page 20: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Next Class – Rough Diffuse Surfaces

Same Analysis of Roughness for Diffuse Objects – Oren Nayar Model

Page 21: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Dror, Adelson, Wilsky

Page 22: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Diffuse Reflections from Rough Surfaces

Page 23: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Diffuse Reflection and Lambertian BRDF - Recap

viewingdirection

surfaceelement

normalincidentdirection

in

v

s

d

rriif ),;,(• Lambertian BRDF is simply a constant :

albedo

• Surface appears equally bright from ALL directions! (independent of )

• Surface Radiance :

v

• Commonly used in Vision and Graphics!

snIIL di

d .cos

source intensity

source intensity I

Page 24: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Diffuse Reflection and Lambertian BRDF - Recap

Radiance decreases with increase in angle between surface normal and source

Page 25: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Rendered Sphere with Lambertian BRDF

• Edges are dark (N.S = 0) when lit head-on

• See shading effects clearly.

Page 26: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Why does the Full Moon have a flat appearance?

• The moon appears matte (or diffuse)

• But still, edges of the moon look bright(not close to zero).

Page 27: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Why does the Full Moon have a flat appearance?

Lambertian Spheres and Moon Photos illuminated similarly

Page 28: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Surface Roughness Causes Flat Appearance

Actual Vase Lambertian Vase

Page 29: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Surface Roughness Causes Flat Appearance – More Examples

Page 30: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Surface Roughness Causes Flat Appearance

Increasing surface roughness

Lambertian model

Valid for only SMOOTH MATTE surfaces.

Bad for ROUGH MATTE surfaces.

Page 31: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Blurred Highlights and Surface Roughness - RECAP

Roughness

Page 32: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Oren-Nayar Model – Main Points

•Physically Based Model for Diffuse Reflection.

•Based on Geometric Optics.

•Explains view dependent appearance in Matte Surfaces

•Take into account partial interreflections.

•Roughness represented like in Torrance-Sparrow Model

•Lambertian model is simply an extreme case withroughness equal to zero.

Page 33: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Modeling Rough Surfaces - Microfacets

•Roughness simulated by Symmetric V-groves at Microscopic level.

•Distribution on the slopes of the V-grove faces are modeled.

•Each microfacet assumed to behave like a perfect Lambertian surface.

Page 34: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

View Dependence of Matte Surfaces - Key Observation

• Overall brightness increases as the angle between the source and viewing direction decreases. WHY?

• Pixels have finite areas. As the viewing direction changes, different mixes between dark and bright are added up to give pixel brightness.

Page 35: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow BRDF – Different Factors (RECAP)

( ) ( , ) ( )

4cos( )cos( )

i i r h

i r

F G Df

Fresnel term:allows for

wavelength dependency

Geometric Attenuation:reduces the output based on the amount of shadowing or masking

that occurs.

Distribution:distribution

function determines what

percentage of microfacets are

oriented to reflect in the viewer

direction.

How much of the macroscopic

surface is visible to the light source

How much of the macroscopic surface is visible

to the viewer

Page 36: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Slope Distribution Model

• Model the distribution of slopes as Gaussian.

• Mean is Zero, Variance represents ROUGHNESS.

Page 37: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Geometric Attenuation Factor

• No interreflections taken into account in above function.• Derivation found in 1967 JOSA paper (read if interested).

Page 38: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Torrance-Sparrow BRDF – Different Factors (RECAP)

( ) ( , ) ( )

4cos( )cos( )

i i r h

i r

F G Df

Fresnel term:allows for

wavelength dependency

Geometric Attenuation:reduces the output based on the amount of shadowing or masking

that occurs.

Distribution:distribution

function determines what

percentage of microfacets are

oriented to reflect in the viewer

direction.

How much of the macroscopic

surface is visible to the light source

How much of the macroscopic surface is visible

to the viewer

Page 39: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Oren-Nayar Model – Different Factors

( ) ( , ) ( )

4cos( )cos( )

i i r h

i r

F G Df

Fresnel term:allows for

wavelength dependency

Geometric Attenuation:reduces the output based on the amount of shadowing or masking

that occurs.

Distribution:distribution

function determines what

percentage of microfacets are

oriented to reflect in the viewer

direction.

How much of the macroscopic

surface is visible to the light source

How much of the macroscopic surface is visible

to the viewer

Page 40: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Oren-Nayar Model – Different Factors

( ) ( , ) ( )

4cos( )cos( )

i i r h

i r

F G Df

Fresnel term:allows for

wavelength dependency

Geometric Attenuation:reduces the output based on the amount of shadowing or masking

that occurs.

Distribution:distribution

function determines what

fraction of the surface area do the facets of the same orientation

cover?

How much of the macroscopic

surface is visible to the light source

How much of the macroscopic surface is visible

to the viewer

Page 41: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Oren-Nayar Model – Different Factors (contd.)

• Take into account two light bounces (reflections).

• Hard to solve analytically, so they find a functional approximation.

Page 42: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Oren-Nayar Model – Final Expression

Lambertian model is simply an extreme case with roughness equal to zero.

Page 43: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Comparison to Ground Truth

Page 44: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Comparison to Ground Truth

Real Objects Renderings

Page 45: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Summary of Surfaces and BRDFs

Smooth Rough

Diffuse

SpecularMirror BRDF Torrance-Sparrow BRDF

Lambertian BRDF Oren-Nayar BRDF

No view dependence Models view dependence

Delta FunctionSpeck of reflection

Broader HighlightsOff-specular lobe

Many surfaces may be rough and show both diffuse and surface reflection.

Page 46: Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance

Summary of Surfaces and BRDFs

Smooth Rough

Diffuse

SpecularMirror BRDF Torrance-Sparrow BRDF

Lambertian BRDF Oren-Nayar BRDF

No view dependence Models view dependence

Delta FunctionSpeck of reflection

Broader HighlightsOff-specular lobe

Many surfaces may be rough and show both diffuse and surface reflection.