Title: Dirty Glass: Rendering Contamination on Transparent Surfaces
1Eurographics Symposium on Rendering 2007
Dirty Glass Rendering Contamination on
Transparent Surfaces
Jinwei Gu Ravi Ramamoorthi
Peter Belhumeur Shree Nayar
Columbia University
2Transparency in CG Renderings
Hakura and Synder, 01
Whitted, 80
Jensen, 01
Zongker et.al., 99
Chris Wyman, 05
Narasimhan et.al., 06
Jensen, 00
3Transparent Objects in Real World
Courtesy of many photographers from flickr.com
4Transparent Objects in Real World
- Effects
- Contrast reversal
Dirty Window
5Transparent Objects in Real World
- Effects
- Contrast reversal
- Angular dependency
Stains on Wine Glass
6Transparent Objects in Real World
- Effects
- Contrast reversal
- Angular dependency
- Lens glare and blur
Image Taken with a Dirty Lens
7Transparent Objects in Real World
- Effects
- Contrast reversal
- Angular dependency
- Lens glare and blur
- Monitor effects
8Transparent Objects in Real World
- Effects
- Contrast reversal
- Angular dependency
- Lens glare and blur
- Monitor effects
- Simply alpha-blending with a texture will NOT
work, because contaminants will both scatter and
attenuate light.
9Related Work
- Surface Aging Weathering
- Patina, weathered stone, flow, etc.
- Surface cracks, scratches, etc.
J.Dorsey et al., 00
T. Wong et al., 97
S. Merillou et al., 01
Weathering on opaque surfaces.
- Light Scattering in Layered Materials
- Simulation of dusty surfaces
- Reflection of layered materials
- Rendering of composite paint
J.Blinn, 82
P. Harahan and W. Kruger, 93
S. Ershov et al., 01
Additional scattering components are required for
contaminated transparent surfaces.
10Our Work
- Rendering contamination on transparent surfaces
- Modeling Analytic BRDF/BTDF Model based on
Single Scattering - Measurement Contaminants Patterns Scattering
Parameter - Rendering 3D Scenes and 2D Photographs
11Our Work
- Rendering contamination on transparent surfaces
- Modeling Analytic BRDF/BTDF Model based on
Single Scattering - Measurement Contaminants Patterns Scattering
Parameter - Rendering 3D Scenes and 2D Photographs
12Clean Transparent Surface
Li
Air, n1
Transparent Medium, n3
Snells law Fresnel equations
13Contaminated Transparent Surface
Air, n1
Li
Contaminant, n2
Transparent Medium, n3
14The BRDF/BTDF Model
- The contaminant layer is optically very thin.
- e.g., dust, lipids/ fingerprint, dirt/salt, etc.
- Single scattering dominates.
- Aggregate as a (local) BRDF/BTDF model.
15Single Scattering Events Reflection
16Single Scattering Events Transmission
17The BRDF/BTDF Model
Optical thickness of the contaminant layer
Heyney-Greenstein phase function
(Scattering) albedo of the contaminant
Refraction index of the contaminant
18The BRDF/BTDF Model
19The BRDF/BTDF Model
20The BRDF/BTDF Model
Change the incident angle
21Verification
Proposed Model
Monte Carlo
4 samples/pixel,7 seconds
2048 samples/pixel,1 hour
RMS relative difference 2.2
22Comparison with Related Work
Reflectance Lr
- Collimated beam
- Albedo 0.5
- Optical thickness 0.2
- Phase function g0.9
- Refraction index 1.0
Monte Carlo
Our Model
HK93/Blinn82
Outgoing Angle
23Our Work
- Rendering contamination on transparent surfaces
- Modeling Analytic BRDF/BTDF Model based on
Single Scattering - Measurement Contaminants Patterns Scattering
Parameter - Rendering 3D Scenes and 2D Photographs
24Measurement (1)
- Optical thickness
- Setup
- Shadow images due to attenuation
Lambertian board
Contaminants
Thin glass
Camera
Projector
25Measurement (1)
- Optical thickness
- Setup
- Shadow images due to attenuation
26Some Acquired Textures
Household Dust
Powder
Water Stripes
Soil
Fingerprints 1
Fingerprints 2
Smudges
Detergent
Salt Water Deposit
Soap Water
Oil Stain
Salt Deposit
27Measurement (2)
- Scattering parameter
- Setup
Thin glass
Camera
28Measurement (2)
- Scattering parameter
- Setup
29Results
Clean
Fingerprints
Soap Deposit
Sand
30Results
Clean
Fingerprints
Soap Deposit
Sand
g0.99
g0.94
g0.86
g0.78
31Synthesis Tool
32Our Work
- Rendering contamination on transparent surfaces
- Modeling Analytic BRDF/BTDF Model based on
Single Scattering - Measurement Contaminants Patterns Scattering
Parameter - Rendering 3D Scenes and 2D Photographs
33Clean Window of a Room
Outside the room
Inside the room
34Dirty Window View inside the Room
Contrast Reversal
35Dirty Window Viewed outside the Room
36Dirty Window in 24 hours
37Contamination on Monitor Screen
Monitor ON
Monitor OFF
Monitor Effects
Angular Dependency
38Stains on Cognac Glass
Contrast Reversal
39Stains on Cognac Glass
Vertical Shadow
40Stains on Cognac Glass
Angular Dependency
41Stains on Cognac Glass
Without Scattering
With Scattering
42Rendering on 2D Photographs
Image
Lens
Contaminant layer
Planar Light Source
(2D Photograph)
43Seawater Sprayed on Glass
Photograph
Contaminant Texture
http//www.flickr.com
44Seawater Sprayed on Glass
Photograph
http//www.flickr.com
Composition
45Dirty Camera Lens
46Making a Window Dirty
Homography camera position
Contaminant texture
Photograph
F. Durand and J. Dorsey, 02
Synthesized light probe
47Making a Window Dirty
Photograph
F. Durand and J. Dorsey, 02
Composition
48Conclusions
- Analytic BRDF/BTDF model based on single
scattering.
- Simple measurement for various kinds of
contaminants.
- Rendering applications on 3D scenes and 2D
photographs.
Source code measured data available
at http//www.cs.columbia.edu/CAVE/projects/dirty
_glass/
49Future Work
- Contaminated translucent materials
- e.g., lipids on skin
- Cleaning dirty glass in photographs
50Acknowledgement
- Srinivasa Narasimhan, Stephen Marschner, Craig
Donner, Bo Sun, Kevin Egan, Aner Ben-Artzi, Ryan
Overbeck, Li Zhang, Kshitiz Garg for insightful
discussions and help. - Anonymous reviewers for detailed comments and
suggestions.
51Thank you!
52(No Transcript)
53Q A
54Measurement (1)
- Why only consider attenuation?
- Most contaminant are mainly forward scattering
(ggt0.7). - If too much blur, we use another setup below and
scale the result accordingly.
Lambertian board
Contaminants
Thin glass
Camera
Projector
55Comparison with Related Works
- Collimated beam.
- Albedo 0.5
- Optical thickness 0.2
- Phase function g0.9
- Refraction index 1.0
56Thin Glass Slab with Contamination
- BRDF/BTDF model by similar derivation
Li
Air, n1
Contaminant, n2
Transparent Slab, n3
Air, n1
57Dusty Glass Sphere
58Dust on Cognac Glass
59Comparison with Related Works
Blinn 82 Hanrahan Kruger 93 Our Model
Derived From Geometric Inference Transport Theory Transport Theory
Fresnel No Yes Yes
Lr(1) No Yes Yes
Lr(2) No No Yes
Lr(3) Yes Yes Yes
Lr(4) No No Yes
Lt(1) Yes Yes Yes
Lt(2) Yes Yes Yes
60Derivation of the BSDF Model (1)
- Assume the contaminant layer has no interface
between the air (e.g. dust)
61Derivation of the BSDF Model (2)
- Assume the contaminant layer has no interface
between the air (e.g. dust)
n1
n2