Recently I'm reading Eric Heitz's paper 'Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs', in section 5, 5.2, the paper defines the distribution of slopes and then says the distribution of normals is constructed from it (equation 64), I tried to understand it but still don't know how to manipulate the equations to do that, can somebody help me with this? Thanks a lot!
1 Answer
The "slope space" is a coordinate system that describes unit vectors in the upper hemisphere using their $x$ and $y$ slopes, i.e. $-x/z$ and $-y/z$. It's related to the usual polar coordinates $\theta, \phi$ by a certain change-of-variables formula.
When a probability density function like the $P^{22}$ function is taken through a change of variables, it picks up an additional factor called the Jacobian, which accounts for the scaling of volume during the change of variables. It preserves the total amount of probability within any given region of the space, and keeps the function normalized.
In the passage from slope space to polar coordinates, the relevant Jacobian is $1/\cos^4 \theta$, so you will see this factor show up whenever a density defined in slope space is reparameterized to polar coordinates.
More in-depth explanation here: Slope Space in BRDF Theory