Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content ›...
Transcript of Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content ›...
![Page 1: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/1.jpg)
Computer Graphics CMU 15-462/15-662, Fall 2015
Lecture 13:
Reflection
Slides credit: a majority of these slides were created by Matt Pharr and Pat Hanrahan
![Page 2: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/2.jpg)
CMU 15-462/662, Fall 2015
Ray tracer measures radiance along a ray
Pinholeo,d
o,d x
y
In the ray tracing algorithms we’ve discussed so far: want to measure radiance traveling in the direction opposite the ray direction.
![Page 3: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/3.jpg)
CMU 15-462/662, Fall 2015
Ray tracer measures radiance along a ray
Pinholeo,d
o,d x
y
Radiance entering camera in direction d = light from scene light sources that is reflected off surface in direction d.
![Page 4: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/4.jpg)
CMU 15-462/662, Fall 2015
Reflection models
▪ Definition: reflection is the process by which light incident on a surface interacts with the surface such that it leaves on the incident (same) side without change in frequency
![Page 5: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/5.jpg)
CMU 15-462/662, Fall 2015
Categories of reflection functions▪ Ideal specular
▪ Ideal diffuse
▪ Glossy specular
▪ Retro-reflective
Diagrams illustrate how incoming light energy from given direction is reflected in various directions.
Perfect mirror
Uniform reflection in all directions
Reflects light back toward source
Majority of light distributed in reflection direction
![Page 6: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/6.jpg)
CMU 15-462/662, Fall 2015
Materials: diffuse
![Page 7: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/7.jpg)
CMU 15-462/662, Fall 2015
Materials: plastic
![Page 8: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/8.jpg)
CMU 15-462/662, Fall 2015
Materials: red semi-gloss paint
![Page 9: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/9.jpg)
CMU 15-462/662, Fall 2015
Materials: Ford mystic lacquer paint
![Page 10: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/10.jpg)
CMU 15-462/662, Fall 2015
Materials: mirror
![Page 11: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/11.jpg)
CMU 15-462/662, Fall 2015
Materials: gold
![Page 12: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/12.jpg)
CMU 15-462/662, Fall 2015
Materials
![Page 13: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/13.jpg)
CMU 15-462/662, Fall 2015
dE(!i)
dLr(!r) / dEi(!i)
Bidirectional reflectance distribution function (BRDF)
Differential irradiance landing on surface from differential cone of directions dLr(!r) / dEi(!i)dE(!i) = dL(!i)cos ✓i
Differential radiance reflected in direction (due to differential irradiance from ) dLr(!r) / dEi(!i)
dLr(!r)dLr(!r) / dEi(!i)
![Page 14: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/14.jpg)
CMU 15-462/662, Fall 2015
fr(!i ! !r) =dLr(!r)
dEi(!i)=
dLr(!r)
dLi(!i) cos ✓i
1
sr
�
Bidirectional reflectance distribution function (BRDF)
BRDF defines the fraction of energy arriving from that is reflected in the direction dLr(!r) / dEi(!i)dLr(!r) / dEi(!i)
![Page 15: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/15.jpg)
CMU 15-462/662, Fall 2015
The reflection equation
Lr(p,!r) =
Z
H2
fr(p,!i ! !r)Li(p,!i) cos ✓i d!i
dLr(!r) = fr(!i ! !r) dLi(!i) cos ✓i
![Page 16: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/16.jpg)
CMU 15-462/662, Fall 2015
Solving the reflection equation
▪ Basic Monte Carlo estimate: - Generate directions sampled from some distribution
- To reduce variance should match BRDF or incident radiance function
- Compute the estimator
Lr(p,!r) =
Z
H2
fr(p,!i ! !r)Li(p,!i) cos ✓i d!i
!j p(!)
1
N
NX
j=1
fr(p,!j ! !r)Li(p,!j) cos ✓jp(!j)
p(!)
![Page 17: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/17.jpg)
CMU 15-462/662, Fall 2015
Estimating reflected light
// Assume:
// Ray ray hits surface at point hit_p
// Normal of surface at hit point is hit_n
Vector3D wr = -ray.d; // outgoing direction
Spectrum Lr = 0.;
for (int i = 0; i < N; ++i) {
Vector3D wi; // sample incident light from this direction
float pdf; // p(wi)
generate_sample(brdf, &wi, &pdf); // generate sample according to brdf
Spectrum f = brdf->f(wr, wi);
Spectrum Li = trace_ray(Ray(hit_p, wi)); // compute incoming Li Lr += f * Li * fabs(dot(wi, hit_n)) / pdf;
}
return Lr / N;
![Page 18: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/18.jpg)
CMU 15-462/662, Fall 2015
Properties of BRDFs▪ Linearity
▪ Reciprocity principle
[Sillion et al. 1990]
fr(!r ! !i) = fr(!i ! !r)
![Page 19: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/19.jpg)
CMU 15-462/662, Fall 2015
Properties of BRDFs▪ Isotropic vs. anisotropic
- If isotropic, - Then, from reciprocity,
fr(✓i,�i; ✓r,�r) = fr(✓i, ✓r,�r � �i)
fr(✓i, ✓r,�r � �i) = fr(✓r, ✓i,�i � �r) = fr(✓i, ✓r, |�r � �i|)
![Page 20: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/20.jpg)
CMU 15-462/662, Fall 2015
Energy conservation
fr(!i ! !r) =dLr(!i ! !r)
dEi
1
sr
�
d�r
d�i=
R⌦r
Lr(!r) cos ✓r d!rR⌦i
Li(!i) cos ✓i d!i
=
Z
⌦r
Z
⌦i
fr(!i ! !r)Li(!i) cos ✓id!i cos ✓r d!rR⌦i
Li(!i) cos ✓i d!i
1
Outgoing energy cannot exceed incoming energy (reflection does not create energy)
![Page 21: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/21.jpg)
CMU 15-462/662, Fall 2015
Energy conservation
⇢ =
RH2
RH2 fr(!i ! !r)C cos ✓id!i cos ✓r d!rR
H2 C cos ✓id!i
=
1
⇡
Z
H2
Z
H2
fr(!i ! !r)C cos ✓id!i cos ✓r d!r
1
Overall fraction of light reflected by surface (assuming constant incident light from all directions)
![Page 22: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/22.jpg)
CMU 15-462/662, Fall 2015
Hemispherical incident radiance
Consider view of hemisphere from this point
![Page 23: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/23.jpg)
CMU 15-462/662, Fall 2015
Hemispherical incident radiance
At any point on any surface in the scene, there’s an incident radiance field that gives the directional distribution of illumination at the point
x
y
Li(!) = Li(x, y,p
1� x
2 � y
2)
(0,0)
![Page 24: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/24.jpg)
CMU 15-462/662, Fall 2015
Ideal specular reflection
Incident radiance Exitant radiance
![Page 25: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/25.jpg)
CMU 15-462/662, Fall 2015
Diffuse reflection
Incident radiance Exitant radiance
Exitant radiance is the same in all directions
![Page 26: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/26.jpg)
CMU 15-462/662, Fall 2015
Plastic
Incident radiance Exitant radiance
![Page 27: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/27.jpg)
CMU 15-462/662, Fall 2015
Copper
Incident radiance Exitant radiance
![Page 28: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/28.jpg)
CMU 15-462/662, Fall 2015
Perfect specular reflection
[Zátonyi Sándor]
![Page 29: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/29.jpg)
CMU 15-462/662, Fall 2015
Perfect specular reflection
~n
!i !o
✓i ✓o
�i �o
!o
+ !i
= 2 cos ✓ ~n = 2(!i
· ~n)~n
!o
= �!i
+ 2(!i
· ~n)~n
�o
= (�i
+ ⇡)mod 2⇡✓ = ✓o
= ✓i
Top-down view (looking down on surface)
![Page 30: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/30.jpg)
CMU 15-462/662, Fall 2015
Specular reflection BRDF
✓i ✓o
Li(✓i,�i) Lo
(✓o
,�o
)
Lo
(✓o
,�o
) = Li
(✓o
,�o
± ⇡)
fr
(✓i
,�i
; ✓o
,�o
) =
�(cos ✓i
� cos ✓o
)
cos ✓i
�(�i
� �o
± ⇡)
![Page 31: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/31.jpg)
CMU 15-462/662, Fall 2015
Specular reflection and the reflection equation
Lo
(✓o
,�o
) =
Zfr
(✓i
,�i
; ✓o
,�o
)Li
(✓i
,�i
) cos ✓i
d cos ✓i
d�i
=
Z�(cos ✓
i
� cos ✓o
)
cos ✓i
�(�i
� �o
± ⇡)Li
(✓i
,�i
) cos ✓i
d cos ✓i
d�i
=Li
(✓r
,�r
± ⇡)
Whitted’s ray tracing method!
Pinholeo,d
o,d x
y
~n
![Page 32: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/32.jpg)
CMU 15-462/662, Fall 2015
TransmissionIn addition to reflecting off surface, light may be transmitted through surface.
Light refracts when it enters a new medium.
![Page 33: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/33.jpg)
CMU 15-462/662, Fall 2015
Snell’s Law
~n!i
!t
⌘i sin ✓i = ⌘t sin ✓t
Transmitted angle depends on index of refraction of medium incident ray is in and index of refraction of medium light is entering.
Vacuum Air (sea level) Water (20°C) Glass Diamond
1.0 1.00029 1.333 1.5-1.6 2.42
⌘Medium *
* index of refraction is wavelength dependent (these are averages)
![Page 34: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/34.jpg)
CMU 15-462/662, Fall 2015
Law of refraction~n!i
!t
Total internal reflection: When light is moving from a more optically dense medium to a less optically dense medium:
Light incident on boundary from large enough angle will not exit medium.
⌘i sin ✓i = ⌘t sin ✓t
1�✓⌘i⌘t
◆2
(1� cos
2 ✓i) < 0
⌘i⌘t
> 1
cos ✓t =q
1� sin
2 ✓t
=
s
1�✓⌘i⌘t
◆2
sin
2 ✓i
=
s
1�✓⌘i⌘t
◆2
(1� cos
2 ✓i)
![Page 35: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/35.jpg)
CMU 15-462/662, Fall 2015
Optical manhole
Total internal reflection
[Livingston and Lynch]
![Page 36: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/36.jpg)
CMU 15-462/662, Fall 2015
Fresnel reflection
This example: reflectance increases with grazing angle
[Lafortune et al. 1997]
Reflectance depends on angle of incidence and polarization of light
![Page 37: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/37.jpg)
CMU 15-462/662, Fall 2015
Fresnel reflection (dielectric, =1.5)⌘
![Page 38: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/38.jpg)
CMU 15-462/662, Fall 2015
Fresnel reflectance (conductor)
![Page 39: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/39.jpg)
CMU 15-462/662, Fall 2015
Without Fresnel (fixed reflectance/transmission)
![Page 40: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/40.jpg)
CMU 15-462/662, Fall 2015
Glass with Fresnel reflection/transmission
![Page 41: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/41.jpg)
CMU 15-462/662, Fall 2015
Lambertian reflectionAssume light is equally likely to be reflected in each output direction
fr = c
Lo(!o) =
Z
H2
fr Li(!i) cos ✓i d!i
=fr
Z
H2
Li(!i) cos ✓i d!i
=frE
fr =⇢
⇡
![Page 42: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/42.jpg)
Stanford CS348b, Spring 2014
Anisotropic reflectionReflection depends on azimuthal angle �
Results from oriented microstructure of surface e.g., brushed metal
![Page 43: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/43.jpg)
Stanford CS348b, Spring 2014
Measuring BRDFs
![Page 44: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/44.jpg)
CMU 15-462/662, Fall 2015
Measuring BRDFs: motivation▪ Avoid need to develop / derive models
- Automatically includes all of the scattering effects present ▪ Can accurately render with real-world materials
- Useful for product design, special effects, ... ▪ Theory vs. practice:
[Bagher et al. 2012]
![Page 45: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/45.jpg)
CMU 15-462/662, Fall 2015
Measuring BRDFs▪ General approach:
▪ Improving efficiency: - Isotropic surfaces reduce dimensionality from 4D to 3D - Reciprocity reduces # of measurements by half - Clever optical systems…
foreach outgoing direction wo
move light to illuminate surface with a thin beam from wo
for each incoming direction wi
move sensor to be at direction wi from surface
measure incident radiance
![Page 46: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/46.jpg)
CMU 15-462/662, Fall 2015
Measuring BRDFs: gonioreflectometer
[Li et al. 2005]
![Page 47: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/47.jpg)
CMU 15-462/662, Fall 2015
Image-based BRDF measurement
[Marschner et al. 1999]
![Page 48: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/48.jpg)
CMU 15-462/662, Fall 2015
Challenges in measuring BRDFs▪ Accurate measurements at grazing angles
- Important due to Fresnel effects ▪ Measuring with dense enough sampling to capture high
frequency specularities ▪ Retro-reflection ▪ Spatially-varying reflectance, ...
![Page 49: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/49.jpg)
CMU 15-462/662, Fall 2015
Representing measured BRDFs▪ Desirable qualities
- Compact representation - Accurate representation of measured data - Efficient evaluation for arbitrary pairs of directions - Good distributions available for importance sampling
![Page 50: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/50.jpg)
CMU 15-462/662, Fall 2015
Tabular representation▪ Store regularly-spaced
samples in - Better: reparameterize
angles to better match specularities
▪ Generally need to resample measured values to table
▪ Very high storage requirements
MERL BRDF Database [Matusik et al. 2004]
90*90*180 measurements
(✓i
, ✓o
, |�i
� �o
|)
![Page 51: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/51.jpg)
CMU 15-462/662, Fall 2015
▪ Can fit existing models, e.g. Cook-Torrance, 3 parameters per wavelength,
▪ More sophisticated, e.g. [Bagher et al. 2012] 11 parameter model:
Basis functions
fr
(!i
! !o
) = kd
+ ks
(~h · ~n)ke ~h = \!i
+ !o
kd, ks, ke
![Page 52: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/52.jpg)
CMU 15-462/662, Fall 2015
Simulation: velvet
[Westin et al. 1992]
![Page 53: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/53.jpg)
CMU 15-462/662, Fall 2015
Simulation: brushed aluminum
[Westin et al. 1992]
![Page 54: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/54.jpg)
CMU 15-462/662, Fall 2015
Simulation: nylon
[Westin et al. 1992]
![Page 55: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/55.jpg)
CMU 15-462/662, Fall 2015
Translucent materials: Jade
![Page 56: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/56.jpg)
CMU 15-462/662, Fall 2015
Translucent materials: skin
![Page 57: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/57.jpg)
CMU 15-462/662, Fall 2015
Translucent materials: leaves
![Page 58: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/58.jpg)
CMU 15-462/662, Fall 2015
Subsurface scattering▪ Visual characteristics of many
surfaces caused by light entering at different points than it exits - Violates a fundamental
assumption of the BRDF[Jensen et al 2001]
[Donner et al 2008]
![Page 59: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/59.jpg)
CMU 15-462/662, Fall 2015
▪ Generalization of BRDF; describes exitant radiance at one point due to incident differential irradiance at another point:
Scattering functions
S(xi
,!
i
, x
o
,!
o
)
▪ Generalization of reflection equation integrates over all points on the surface and all directions(!)
L(xo,!o) =
Z
A
Z
H2
S(xi,!i, xo,!o)Li(xi,!i) cos ✓i d!i dA
![Page 60: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/60.jpg)
CMU 15-462/662, Fall 2015
BRDF
![Page 61: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/61.jpg)
CMU 15-462/662, Fall 2015
BSSRDF
![Page 62: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/62.jpg)
CMU 15-462/662, Fall 2015
Fiber model
[Marschner et al. 2003]
![Page 63: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/63.jpg)
CMU 15-462/662, Fall 2015
Hair appearance
![Page 64: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/64.jpg)
CMU 15-462/662, Fall 2015
![Page 65: Lecture 13: Re ection - Carnegie Mellon University15462.courses.cs.cmu.edu › fall2015content › lectures › ...Lecture 13: Re!ection Slides credit: a majority of these slides were](https://reader033.fdocuments.in/reader033/viewer/2022060211/5f04cafa7e708231d40fbb9c/html5/thumbnails/65.jpg)
CMU 15-462/662, Fall 2015
Summary▪ BRDF describes how light reflects off a surface
▪ BRDF defines the fraction of energy incident on surface from direction that is reflected in the direction
▪ Light is also transmitted through surfaces - Snell’s Law gives angle of transmitted ray - Amount of light reflected/transmitted is computed via Fresnel equations - Can think of BTDF (bidirectional transmission distribution function) describing
directional distribution of transmission
▪ Subsurface scattering - Light exits surface at different point than it entered (e.g., skin)
dLr(!r) / dEi(!i)dLr(!r) / dEi(!i)