dielectrics_and_transmission.md 2.68 KB
Newer Older
yhesper's avatar
yhesper committed
1
2
3
4
5
6
7
8
9
10
11
12
---
layout: default
title: "Dielectrics and Transmission"
permalink: /pathtracer/dielectrics_and_transmission
---

# Dielectrics and Transmission

## Fresnel Equations for a Dielectric

The [Fresnel Equations](https://en.wikipedia.org/wiki/Fresnel_equations) (another [link](http://hyperphysics.phy-astr.gsu.edu/hbase/phyopt/freseq.html) here) describe the amount of reflection from a surface. The description below is an approximation for dielectric materials (materials that don't conduct electricity). In this assignment you're asked to implement a glass material, which is a dielectric.

Hesper Yin's avatar
Hesper Yin committed
13
In the description below, <img src="dielectric_eq1.png" width="18"> and <img src="dielectric_eq2.png" width="15"> refer to the index of refraction of the medium containing an incoming ray, and the zenith angle of the ray to the surface of a new medium. <img src="dielectric_eq3.png" width="18"> and <img src="dielectric_eq4.png" width="15"> refer to the index of refraction of the new medium and the angle to the surface normal of a transmitted ray.
yhesper's avatar
yhesper committed
14
15
16

The Fresnel equations state that reflection from a surface is a function of the surface's index of refraction, as well as the polarity of the incoming light. Since our renderer doesn't account for polarity, we'll apply a common approximation of averaging the reflectance of polarizes light in perpendicular and parallel polarized light:

Hesper Yin's avatar
Hesper Yin committed
17
<img src="dielectric_eq5.png" width="200">
yhesper's avatar
yhesper committed
18
19
20

The parallel and perpendicular terms are given by:

Hesper Yin's avatar
Hesper Yin committed
21
<img src="dielectric_eq6.png" width="200">
yhesper's avatar
yhesper committed
22

Hesper Yin's avatar
Hesper Yin committed
23
<img src="dielectric_eq7.png" width="200">
yhesper's avatar
yhesper committed
24

Hesper Yin's avatar
Hesper Yin committed
25
Therefore, for a dielectric material, the fraction of reflected light will be given by <img src="dielectric_eq8.png" width="18">, and the amount of transmitted light will be given by <img src="dielectric_eq9.png" width="50">.
yhesper's avatar
yhesper committed
26

Hesper Yin's avatar
Hesper Yin committed
27
Alternatively, you may compute <img src="dielectric_eq8.png" width="18">  using [Schlick's approximation](https://en.wikipedia.org/wiki/Schlick%27s_approximation).
yhesper's avatar
yhesper committed
28
29
30

## Distribution Function for Transmitted Light

Hesper Yin's avatar
Hesper Yin committed
31
We described the BRDF for perfect specular reflection in class, however we did not discuss the distribution function for transmitted light. Since refraction "spreads" or "condenses" a beam, unlike perfect reflection, the radiance along the ray changes due to a refraction event. In your assignment you should use Snell's Law to compute the direction of refraction rays, and use the following distribution function to compute the radiance of transmitted rays. We refer you guys to Pharr, Jakob, and and Humphries's book [Physically Based Rendering](http://www.pbr-book.org/) for a derivation based on Snell's Law and the relation <img src="dielectric_eq10.png" width="150">. (But you are more than welcome to attempt a derivation on your own!)