I'm new to learning about ray tracing, but have been fairly confused by the mathematical foundations of it all. Specifically of radiometry/radiative transfer. I've internet searched a lot and skimmed a ton of references, but still very confused.
Here is a list of some of the things I have had to struggle a lot to understand:
Irradiance is a function of 3 variables $E(p,n, \mathrm{in}/\mathrm{out})$ and it's not really the derivative of anything with respect to anything else (in the function sense)
If $p$ is a point on an actual surface in a scene, irradiance doesn't make sense in directions that aren't the surface normal, except perhaps as limit.
Radiance is not meaningfully the derivative of irradiance (Wikipedia says it's the derivative w.r.t. étendue, which is a great way to get more confused).
Radiance can be defined without ever using the words "projected area", "solid angle" or "subtend".
You don't need to draw pictures with infinitesimals to think about radiance. I see infinitesimals in pictures a lot, e.g. Figures 1 and 2 Wikipedia's Lambert's cosine law article.
Radiance is preserved along paths (in vacuum). Is this an axiom of the theory or a theorem?
I've found the following approach more insightful than the usual presentations:
If you have an oriented surface, you can define the flux entering it $\Phi(S)$.
Irradiance is something that's integrated into flux: $$ \Phi(S) = \int_SE(p, n_p, \mathrm{in}) \mathrm{d}S(p)$$
For two surfaces, we can define direct flux transport between them: the power that exist $S_1$ and directly enters $S_2$, $\Phi(S_1, S_2)$.
"Flux transport density" (not sure if correct term) is something that's integrated into flux transport. It is the function of 4 variables $K(p_\text{source}, n_\text{source}, p_\text{target}, n_\text{target})$ $$ \Phi(S_1,S_2) = \int_{S_2} \int_{S_1} K(p, n_p, q, n_q) \mathrm{d}S_1(p) \mathrm{d}S_2(q)$$
"Light hull principle" consider two oriented disks $D_p = D(p, n_p, r_p)$ and $D_q = D(q, n_q, r_q)$ that are sufficiently small.
If $(q-p) \cdot n_p \le 0$ then $\Phi(D_p, D_q) = 0$
Taking the limit $r_p \to 0$ shows that $(q-p) \cdot n_p$ implies $K(p, n_p, q, n_q) = 0$
If $(p-q) \cdot n_q \le 0$ then $\Phi(D_p, D_q) = 0$
Taking the limit $r_q \to 0$ shows that $(p-q) \cdot n_q$ implies $K(p, n_p, q, n_q) = 0$
Let's assume $(q-p) \cdot n_p > 0$ and $(p-q) \cdot n_q > 0$ going forward. Maybe it's simplier to write $|\cos(\theta_p)| < \pi/2$, $|\cos(\theta_q)| < \pi/2$
Let's form the "light hull" of $D_p$ and $D_q$. This is a funny truncated cone like shape defined by $$H(D_p, D_q) = \{ t p' + (1-t) q' | p' \in D_p, q' \in D_q, t \in [0, 1] \}$$
It may later make sense to allow $t$ to go negative/greater than 1, extending the hull a bit.
Let $a$ be a point on the segment $pq$. Intersecting the light hull with a plane through $a$ gives as circular shaped section: $$H(a, n_a, D_p, D_q) = \{ b | (b - a) \cdot n_a = 0 \} \cap H(D_p, D_q) $$
In free space we have $$\Phi(D_p, D_q) = \Phi(D_p, H(a, n_a, D_p, D_q)) = \Phi(H(a, n_a, D_p, D_q), D_q)$$ I call this the light hull principle and is basically just geometry saying "if I put a transparent screen in the light's way, all the light will go through it".
Using the light hull principle, we see that we can replace $D_q$ with a similar disk-ish shape that's orthogonal to $pq$: $$ \Phi(D_p, D_q) = \Phi(D_p, H(q, p-q, D_p, D_q))$$ Let's call this shape $D_q'$.
For small $r_p^2$, $r_q^2$, the left hand side is $$ \Phi(D_p, D_q) \approx K(p, n_p, q, n_q) \pi^2 r_p^2 r_q^2$$ Or more formally $$ \frac{\partial^4 \Phi(D_p, D_q) }{(\partial r_p)^2 (\partial r_q)^2} \bigg|_{r_p = r_q = 0} = 4 \pi^2 K(p, n_p, q, n_q) $$ I don't want to go into too much detail here, but it's possible to prove for the right hand side that $$ \frac{\partial^4 \Phi(D_p, H(q, p-q, D_p, D_q)) }{(\partial r_p)^2 (\partial r_q)^2} \bigg|_{r_p = r_q = 0} = 4 \pi^2 \cos(\theta_q) K\left(p, n_p, q, \frac{p-q}{||p-q||} \right) $$ It follows that $$ K(p, n_p, q, n_q) = \cos(\theta_q) K\left(p, n_p, q, \frac{p-q}{||p-q||} \right)$$
Repeating the same argument at $p$ instead of $q$, we get $$ K(p, n_p, q, n_q) = \cos(\theta_p) \cos(\theta_q) K\left(p, \frac{q-p}{||p-q||}, q, \frac{p-q}{||p-q||} \right)$$
Assuming now that the two disks are directly facing each other, i.e. $n_p = \frac{q-p}{||p-q||} = -n_q$, we can apply the light hull principle and take a limit/derivative as $r_p, r_q \to 0$ to show the inverse square law $$ K(p, n_p, p+r n_p, -n_p) = \frac{1}{r^2} K(p, n_p, p+n_p, - n_p)$$
Let $r = ||p-q||$ and $n = \frac{q-p}{r}$. We now know that $$ \begin{aligned} K(p, n_p, q, n_q) &= K(p, n, p+n, -n) \frac{\cos(\theta_p) \cos(\theta_q)}{r^2} \\ &=: L(p,n,\mathrm{out}) \frac{\cos(\theta_p) \cos(\theta_q)}{r^2} \\ &=: L(q,-n,\mathrm{in}) \frac{\cos(\theta_p) \cos(\theta_q)}{r^2} \end{aligned} $$ Where $L$ is the defined by the equation above. We call $L$ radiance.
Taking the limit $p \to q$ shows that $L(q, n, \mathrm{out}) = L(q, -n, \mathrm{in}) = L(p, n, \mathrm{out})$. Therefore radiance is constant along rays (and $K$ is translation invariant).
The significance of this is that we have defined radiance and proved it invariant by using a simple geometric principle on finite (non-infinitesimal) surfaces and taking appropriate limits. It's a lot more work than saying irradiance over projected surface area times solid angle, but to me much more intuitive.
The light hull principle is an axiom/key "physical" fact, and everything else is a theorem.
My question is; is there a reference that deals with radiative transfer in general in a similar way as I've just dealt with radiance?
The closest thing I could find is Veach's PhD thesis where he defines some interesting concepts using measure theory in Chapter 3 and its appendix. The idea is that a scene is a system of $N$ non-interacting photons moving around. Radiometric quantities can then be defined by a snapshot of this system in time. I think it's a really cool idea and would love to see more of this. To me these are the true foundations. Sadly, I don't think Veach develops them in enough detail. (And I also don't see how a finite number of photons as Veach models them could create equilibrium in the sense that irradiance is independent of time)
Also, in Chapter 6, he presents a novel argument for the symmetry of the BRDF that's much more satisfying than "physical objects have symmetric BRDFs, now moving on..." that I've seen everywhere else.
I also found this paper by Lessig and Castro that says:
Radiative transfer describes the transport of electromagnetic energy in macroscopicenvironments, classically when polarization effects are neglected [37]. The theory originates in work by Bouguer [6, 7] and Lambert [22] in the 18thcentury where light intensity and its measurement were first studied systematically, cf. Fig. 1. In the 19thand early 20thcentury the theory was then extended to include transport and scattering effects [26, 9, 42, 43]. To this day, however, radiative transfer is a phenomenological theory with a mathematical formulation that still employs the concepts introduced by Lambert in the 18thcentury—and this despite the importance of the theory in a multitude of fields, such as medical imaging, remote sensing,computer graphics, atmospheric science, climate modelling, and astrophysics.
I don't know any physics so the paper is way over my head, but maybe it's the holy grail?
Please flood me with references!