I'm reading PBRT and am stuck in chapter 5.4 about radiometry. In particular:
We define the irradiance as the average density flux arriving at a surface with units $\frac{W}{m^2}$. So for a point light source, we have: $E = \frac{\Phi}{4 \pi r^2}$ since the area of a sphere is $4 \pi r^2$. Where $\Phi$ is the flux or power.
A (to me) similar concept is intensity which is the amount of power per angle. Again, for a sphere with a point light at the center, this is $I = \frac{\Phi}{4 \pi r^2}$ with the unit $[\frac{W}{sr}]$ (watt over steradian)
Now, the book defines radiance for a point $p$ as $L = \frac{d\Phi}{d\omega dA^\perp}$ in units $[\frac{W}{sr\cdot m^2}]$. Here, $\omega$ is the direction where the light comes from, $A^\perp$ is the projected are of $A$ as seen here:
This means that practically, when I implement a point light source with a given power that shines at a point $p$, I need to do the following to arrive at radiance:
- Divide by $4 \pi r^2$ to convert power into $[\frac{W}{sr}]$, or in other words, intensity.
- Given intensity, I need to divide it by $4 \pi r^2$ and multiply by $\cos \theta$ to arrive at $[\frac{W}{sr\cdot m^2}]$, the final radiance. The multiplication by $\cos \theta$ is to project $A$ to $A^\perp$ and is the dot product of the surface normal $n$ with the direction $w$ (as both are normalized).
For both calculations, $r$ is the distance between the light source and my point $p$.
However, when I look at the source, this is not what happens. The point light returns intensity divided by $r^2$ as seen here:
return I / DistanceSquared(pLight, ref.p);
and the integrator then multiplies it with the dot product (and the brdf) in the whitted integrator
L += f * Li * AbsDot(wi, n) / pdf;
So what is wrong in my derivation? Why do we "only" divide once by $4\pi r^2$ (to get the Intensity I) and not twice? Aren't we missing either the power per area or the power per steradian?
sources: http://www.pbr-book.org/3ed-2018/Color_and_Radiometry/Radiometry.html