5
\$\begingroup\$

Now, the classic Torrance derivation for roughened surfaces which Cook took into vectorized form yields the familiar parametrization of a specular BRDF where we have the NDF which decides how much perturbation is around the average normal direction of the macrosurface. For example, in the isotropic GGX version, an alpha value is used to modulate just how rough the surface is or just how much specular reflection a partical halfdirection yields from the microsurface normal.

Then there's the geometry term which is, numerically, a protective term from the classic denominator of dot(n,v) * dot(n,l) which can tend to zero and the whole term to infinity. It also has a more physically intuitive side rendered irrelevant by the sheer horror of division by zero.

And there's the Fresnel term, the least threatening of all of them.

Basically, it's DGF / (4(n.v)(n.l)). And if any of these terms fail, it goes to hell. Hence, all of these terms have normalizing terms which force them in the [0,1] range. Unfortunately, the one I was studying from Epic does not converge give in to the normalization and some values at grazing angles get frustratingly high.

The BRDF is the ratio between the outgoing radiance and the incoming irradiance. Anything beyond 1 is weird to me. But 477.43 is... Well... I've double-checked everything, the math is a direct match. And yet...

Any ideas?

\$\endgroup\$
1
  • \$\begingroup\$ The exact formula and details on how you're using it could be useful. \$\endgroup\$
    – House
    Sep 19, 2013 at 13:19

1 Answer 1

7
\$\begingroup\$

The BRDF is a reflectance density, not a reflectance. Values beyond 1.0 are perfectly sensible as long as they occur only in a small region of the parameter space. The whole thing has to integrate to a value in [0, 1] to avoid adding energy, but that doesn't imply it has to be in [0, 1] everywhere.

It's similar to a probability density. If you look at a standard pdf like the normal distribution and plug in a small value for sigma, you'll see the distribution gets narrow with a high peak that goes much higher than 1.0, even though probabilities can't be higher than 1.0. It can do that because it's not a probability, but a probability density, i.e. probability per unit length. When there is a lot of probability crammed into a small distance you get a high density.

The BRDF has units of reflectance per unit solid angle, so whenever there is a lot of reflectance in a narrow solid angle (e.g. with a shiny, high-gloss surface), you will get values greater than 1.0.

FWIW, I've calculated the integrated directional-hemispherical reflectance for GGX and various other common BRDFs and found they indeed do not add energy. (They sometimes absorb it even when they're not supposed to, but that's another story...)

\$\endgroup\$
4
  • \$\begingroup\$ > The BRDF is a reflectance density < That's interesting, I've gone through a lot of sources a few weeks ago and nobody mentioned this specifically, and I hadn't realized it until now. But of course it has to be this way, otherwise we wouldn't be able to focus light with reflection and burn ants in the sun. \$\endgroup\$
    – TravisG
    Sep 19, 2013 at 18:45
  • \$\begingroup\$ @TravisG That's a bit different - in that case you're gathering light from a large area and focusing it into a small area, using a mirror or a lens. The BRDF being a reflectance density has more to do with the existence of a mirror-like surface to begin with - all the reflectance is concentrated in a very small range of angles around the perfect specular reflection angle. As opposed to a matte surface, where the reflectance is spread out over a large range of angles. \$\endgroup\$ Sep 19, 2013 at 19:07
  • \$\begingroup\$ @NathanReed So, how does that collective BRDF, a function which after normalization at certain inputs has a value of over 400 integrate to 1 over a unit hemisphere? There are no negative values to push it back. What am I missing? \$\endgroup\$ Sep 20, 2013 at 8:21
  • \$\begingroup\$ Nevermind, figured it out. Thank you for your insights, they've been a catalyst for my understanding! \$\endgroup\$ Sep 20, 2013 at 11:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .