PBRT Direct Lighting

Why this part?

You could skip this part if you are not interested.

Importance Sampling

Direct Lighting

To sample light, there are two phases.


\[L_o(p, \omega_o) = \int_{S^2}{f(p, \omega_o, \omega_i) \ L_d(p, \omega_i) \ |\cos(\theta_{i})| \ \text{d}\omega_i}\]

Consider a near-mirror BRDF illuminated by an area light where $L_d$’s distribution is used to draw samples. Because the BRDF is almost a mirror, the value of the integrand will be close to 0 at all $\omega_i$ directions except those around the perfect specular reflection direction. This means that almost all of the directions sampled by $L_d$ will have 0 contribution, and variance will be quite high. Even worse, as the light source grows large and a larger set of directions is potentially sampled, the value of the PDF decreases, so for the rare directions where the BRDF is non-0 for the sampled direction we will have a large integrand value being divided by a small PDF value. While sampling from the BRDF’s distribution would be a much better approach to this particular case, for diffuse or glossy BRDFs and small light sources, sampling from the BRDF’s distribution can similarly lead to much higher variance than sampling from the light’s distribution.