Modeling Anisotropic Surface Reflectance with Example-Based - - PowerPoint PPT Presentation

modeling anisotropic surface reflectance with example
SMART_READER_LITE
LIVE PREVIEW

Modeling Anisotropic Surface Reflectance with Example-Based - - PowerPoint PPT Presentation

Modeling Anisotropic Surface Reflectance with Example-Based Microfacet Synthesis Sean Bell and Zhiyuan Teo Cornell University CS 6630 2012 April 12 Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 1 / 43


slide-1
SLIDE 1

Modeling Anisotropic Surface Reflectance with Example-Based Microfacet Synthesis

Sean Bell and Zhiyuan Teo

Cornell University CS 6630

2012 April 12

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 1 / 43

slide-2
SLIDE 2

Motivation

Quest for ultimate realism. Reflectance models based on real physical data. Capture reduces work of the artist.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 2 / 43

slide-3
SLIDE 3

To rephrase our desires in graphics

We want it simple. We want it realistic. We want it fast.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 3 / 43

slide-4
SLIDE 4

The BRDF

ρ(x, i, o) = dL(x, o) dE(x, i) = dL(x, o) L(x, i) cos θidi

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 4 / 43

slide-5
SLIDE 5

BRDF Models

Phong (1975): isotropic specular ρ(i, o) = ks (o · r)α n · i

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 5 / 43

slide-6
SLIDE 6

BRDF Models

Measuring and modeling anisotropic reflection, Ward, 1992

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 6 / 43

slide-7
SLIDE 7

BRDF Models

Ward (1992): anisotropic specular ρ(i, o) = ks 4παxαy √cos θi cos θo e

− tan2 θh

  • cos2 φh

α2 x

+ sin2 φh

α2 y

  • Sean Bell and Zhiyuan Teo (Cornell)

Fitting Anisotropic BRDFs 2012 April 12 7 / 43

slide-8
SLIDE 8

BRDF Models

Lafortune (1997): anisotropic specular ρ(i, o) = ks (Cxixox + Cyiyoy + Czizoz)n

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 8 / 43

slide-9
SLIDE 9

BRDF Models

Microfacet: general anisotropic Cook & Torrance (1982), Ashikhmin and Shirley (2000): ρs(x, i, so) = ks D(h)S(i)S(o)F(i, o) 4(i · n)(o · n)

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 9 / 43

slide-10
SLIDE 10

BRDF Models

He et al (1991): general anisotropic

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 10 / 43

slide-11
SLIDE 11

BRDF Models: Comparison (2005)

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 11 / 43

slide-12
SLIDE 12

A (sparse) sample of BRDF capture technologies: 1992

Flat object; photodetector and light source moveable. Ward, 1992.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 12 / 43

slide-13
SLIDE 13

A (sparse) sample of BRDF capture technologies: 1992

Gonioreflectometer.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 13 / 43

slide-14
SLIDE 14

A (sparse) sample of BRDF capture technologies

Flat object; object rotatable, photodetector moveable.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 14 / 43

slide-15
SLIDE 15

A (sparse) sample of BRDF capture technologies: 1999

Curved object; camera moveable. Marschner et al., 1999.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 15 / 43

slide-16
SLIDE 16

A (sparse) sample of BRDF capture technologies: 2003

Image-based reconstruction of spatial appearance and geometric detail. Lensch et al, 2003.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 16 / 43

slide-17
SLIDE 17

A (sparse) sample of BRDF capture technologies: 2003

Linear light source reflectometry. Gardner et al, 2003.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 17 / 43

slide-18
SLIDE 18

A (sparse) sample of BRDF capture technologies: 2005

Ngan et al, 2005.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 18 / 43

slide-19
SLIDE 19

A (sparse) sample of BRDF capture technologies: 2005

Hawkins et al, 2005.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 19 / 43

slide-20
SLIDE 20

A (sparse) sample of BRDF capture technologies: 2008

Wang et al, 2008.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 20 / 43

slide-21
SLIDE 21

A review of the microfacet model

Assume surface is composed of many small, flat micro mirrors (facets). Each surface reflects light according to its microfacet normal (h). A microfacet’s contribution only counts if it is visible to both i and o.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 21 / 43

slide-22
SLIDE 22

Microfacet BRDF

The BRDF for the microfacet model is: ρ(x, i, o) = ρd(x, i, o)

  • diffuse

+ ks(x)ρs(x, i, o)

  • specular

Diffuse term ρd(x, i, o): constant and accounts for light that bounces multiple times Specular term ρs(x, i, o): view-dependent

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 22 / 43

slide-23
SLIDE 23

Microfacet specular term

The specular includes anisotropy: ρs(x, i, o) = 1 4(i · n)(o · n) D(x, h)

NDF

G(x, o, i)

  • shadow term

F(x, o, i)

  • Fresnel term

D: distribution of the microsurface normals (“NDF”) G: Smith shadowing term, which describes the visibility of the microsurface normal. F: Fresnel term, which describes reflection from each specular microsurface.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 23 / 43

slide-24
SLIDE 24

Experimental setup

Linear light source is placed on a gantry, about 4cm above the sample. Idea: we know the position of the gantry and the camera, so we can get i and o. Move the light source to vary i, then sample the intensity at each point on the material.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 24 / 43

slide-25
SLIDE 25

Experimental setup

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 25 / 43

slide-26
SLIDE 26

More specifically...

Linear light source is an array of 40 point LED light sources. Switch on the LEDs one by one and sample the material.

This ensures that the luminaire is a point source.

Move the gantry in each step and repeat, to create a grid of point lights over the entire sample.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 26 / 43

slide-27
SLIDE 27

Data capture

At the end of the run, each point on the material has been lit by LEDs from many angles (i). These are the raw image data samples Iq(x).

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 27 / 43

slide-28
SLIDE 28

Pre-processing

Our experimental setup directly provides us with the BRDF: ρ(x, i, o) = dL(x, o) dE(x, i)

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 28 / 43

slide-29
SLIDE 29

Pre-processing

Our experimental setup directly provides us with the BRDF: ρ(x, i, o) = dL(x, o) dE(x, i) = dL(x, o) (n · iq(x)) L(x, i)di

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 28 / 43

slide-30
SLIDE 30

Pre-processing

Our experimental setup directly provides us with the BRDF: ρ(x, i, o) = dL(x, o) dE(x, i) = dL(x, o) (n · iq(x)) L(x, i)di = Iq(x) (n · iq(x)) Lq||Pq − x||2 Approximate the LED as a point source

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 28 / 43

slide-31
SLIDE 31

Pre-processing

Our experimental setup directly provides us with the BRDF: ρ(x, i, o) = dL(x, o) dE(x, i) = dL(x, o) (n · iq(x)) L(x, i)di = Iq(x) (n · iq(x)) Lq||Pq − x||2 We could tabulate ρ(x, i, o) at this point

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 28 / 43

slide-32
SLIDE 32

Pre-processing

Our experimental setup directly provides us with the BRDF: ρ(x, i, o) = dL(x, o) dE(x, i) = dL(x, o) (n · iq(x)) L(x, i)di = Iq(x) (n · iq(x)) Lq||Pq − x||2 We could tabulate ρ(x, i, o) at this point Large storage requirements Difficult to edit Gaps in the (i, o) domain

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 28 / 43

slide-33
SLIDE 33

Pre-processing

Dichromatic BRDF model

ρ(x, i, o) = ρd(x, i, o)

  • diffuse

+ ks(x)ρs(x, i, o)

  • specular

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 29 / 43

slide-34
SLIDE 34

Pre-processing

Dichromatic BRDF model

ρ(x, i, o) = ρd(x, i, o)

  • diffuse

+ ks(x)ρs(x, i, o)

  • specular

Assumption: There is some (i, o) for which ρs(x, i, o) ≈ 0 = ⇒ ρd(x) = min

q

ρ(x, iq, o) = min

q

Iq(x) (n · iq(x)) Lq||Pq − x||2

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 29 / 43

slide-35
SLIDE 35

Pre-processing

Subtracting away the diffuse component leaves the specular component: ρs(x, iq(x), o) = ρ(x, iq(x), o)

  • raw data

−ρd(x)

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 30 / 43

slide-36
SLIDE 36

Pre-processing

Subtracting away the diffuse component leaves the specular component: ρs(x, iq(x), o) = ρ(x, iq(x), o)

  • raw data

−ρd(x) But there’s another problem: Use push-pull (Gortler, 1996) to interpolate measurements.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 30 / 43

slide-37
SLIDE 37

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n)

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-38
SLIDE 38

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) We know S in terms of D from [Ashikmin et al 2000]: S(x, k) = (k · n)

  • (h · k)D(x, h)dω

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-39
SLIDE 39

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) We know S in terms of D from [Ashikmin et al 2000]: S(x, k) = (k · n)

  • (h · k)D(x, h)dω

We don’t know D and F

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-40
SLIDE 40

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) Since F and S are smooth, assume F(x, i, o) = 1, S(x, k) = 1, and ks = 1

π

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-41
SLIDE 41

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) Since F and S are smooth, assume F(x, i, o) = 1, S(x, k) = 1, and ks = 1

π

Now we can solve for D: D(x, h) =

  • 4πρs(x,o,i(h))(i(h)·n)(o·n)

S(x,i(h))S(x,o)

h ∈ Ω h ∈ Ω

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-42
SLIDE 42

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) Since F and S are smooth, assume F(x, i, o) = 1, S(x, k) = 1, and ks = 1

π

Now we can solve for D: D(x, h) =

  • 4πρs(x,o,i(h))(i(h)·n)(o·n)

S(x,i(h))S(x,o)

h ∈ Ω h ∈ Ω which gives us a new estimate of S: S(x, k) = (k · n)

  • (h · k)D(x, h)dω

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-43
SLIDE 43

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) Since F and S are smooth, assume F(x, i, o) = 1, S(x, k) = 1, and ks = 1

π

Now we can solve for D: D(x, h) =

  • 4πρs(x,o,i(h))(i(h)·n)(o·n)

S(x,i(h))S(x,o)

h ∈ Ω h ∈ Ω which gives us a new estimate of S: S(x, k) = (k · n)

  • (h · k)D(x, h)dω

repeat!

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-44
SLIDE 44

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) The specular coefficient ks(x) is: ks(x) =

  • (n · h)D(x, h)dω

which lets us normalize D: D(x, h) ← D(x, h) ks

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-45
SLIDE 45

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) The only remaining piece is F

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-46
SLIDE 46

Analysis of the data

Microfacet Model

ρs(x, i, o) = ks(x)D(x, h)S(x, i)S(x, o)F(x, i, o) 4(i · n)(o · n) The only remaining piece is F Fm(x, i, o) = 4πρs(x, o, i)(i · n)(o · n) S(x, i)S(x, o)ks(x)D(x, h) Use Fm to find the closest η, then use the standard form for F

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 31 / 43

slide-47
SLIDE 47

Analysis of the data

Problem

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 32 / 43

slide-48
SLIDE 48

Analysis of the data

Problem We only have D(x, h) for a subset of the hemisphere Standard solution: rotate the sample and repeat the process

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 32 / 43

slide-49
SLIDE 49

Analysis of the data

Problem We only have D(x, h) for a subset of the hemisphere Standard solution: rotate the sample and repeat the process This paper: use D(x, h) from other points

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 32 / 43

slide-50
SLIDE 50

Analysis of the data

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 33 / 43

slide-51
SLIDE 51

Analysis of the data

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 33 / 43

slide-52
SLIDE 52

Analysis of the data

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 33 / 43

slide-53
SLIDE 53

Analysis of the data

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 33 / 43

slide-54
SLIDE 54

Analysis of the data

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 33 / 43

slide-55
SLIDE 55

Analysis of the data

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 33 / 43

slide-56
SLIDE 56

Speed Optimizations

Brute-force search is extremely slow N = 640, 000 surface points M = 1000 rotation angles

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 34 / 43

slide-57
SLIDE 57

Speed Optimizations

Brute-force search is extremely slow N = 640, 000 surface points M = 1000 rotation angles N2M ≈ 5 × 1011 rotation/compare operations

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 34 / 43

slide-58
SLIDE 58

Speed Optimizations

Optimizations

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 35 / 43

slide-59
SLIDE 59

Speed Optimizations

Optimizations

1 NDF Clustering

k-means clustering: reduce search space by 100x Reduce search time by ∼ 1002

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 35 / 43

slide-60
SLIDE 60

Speed Optimizations

Optimizations

1 NDF Clustering

k-means clustering: reduce search space by 100x Reduce search time by ∼ 1002

2 Search Pruning

Intersection approximation Approximate nearest neighbour (ANN) search after subsampling D(x, h) (from 3072 to 32)

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 35 / 43

slide-61
SLIDE 61

Results

Top row: original measurements. Bottom row: synthesis results.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 36 / 43

slide-62
SLIDE 62

Results

Top row: original measurements. Bottom row: synthesis results.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 37 / 43

slide-63
SLIDE 63

Results

Top row: original measurements. Bottom row: synthesis results.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 38 / 43

slide-64
SLIDE 64

Results

(a) real appearance. (b) rendered using Microfacet synthesis method. (c) rendered using isotropic Ward. (d) rendered using anisotropic Ward.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 39 / 43

slide-65
SLIDE 65

Results

Rendering: (a) yellow satin, (b) red satin, (c) wallpaper, (d) velvet

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 40 / 43

slide-66
SLIDE 66

Subsequent devices: 2010

Dong et al, 2010.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 41 / 43

slide-67
SLIDE 67

Subsequent devices: 2011

Ren et al, 2011.

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 42 / 43

slide-68
SLIDE 68

Questions?

Sean Bell and Zhiyuan Teo (Cornell) Fitting Anisotropic BRDFs 2012 April 12 43 / 43