i
i
i
i
i
i
i
i
258 7. Advanced Shading
Various other isotropic NDFs have been proposed in the computer
graphics literature [97, 192, 193, 1270], but these are similar visually to the
cosine power NDF and are more expensive to compute.
17
Some materials
exhibit multiscale roughness (different roughnesses at different scales). This
results in NDF curves that appear to be combinations of simpler curves, for
example a low broad curve and a high narrow one. One simple way to im-
plement such NDFs is to use a sum of appropriately weighted Blinn-Phong
lobes.
Anisotropic NDFs can be used as well. Note that unlike isotropic NDFs,
anisotropic NDFs cannot be evaluated just with the angle θ
h
; additional
orientation information is needed. In the general case, the half vector h
needs to be transformed into the local frame defined by the normal, tangent
and bitangent vectors (see Figure 7.31 on page 248). The Ward [1326] and
Ashikhmin-Shirley [42, 43] BRDFs both include anisotropic NDFs that
could be reused in a modified Blinn-Phong BRDF.
18
A particularly interesting option is to “paint” an arbitrary highlight
shape into a bitmap for use as an NDF [632]. This is known as NDF map-
ping and allows for a variety of effects. If care is taken, the result can still
be a physically plausible BRDF [41, 46]. NDFs can also be drawn from vi-
sual inspection of the highlight shapes of real materials [44]. However, since
an NDF map is not a parametric representation, NDF mapping precludes
the texturing of NDF parameters, which is useful for modeling spatially
variant materials.
Pretty much any function over the hemisphere can be used as an NDF.
Usually NDFs are assumed to be normalized so that they integrate to 1
over the hemisphere, but this is not necessary for empirical BRDFs such
as Blinn-Phong, since the specular term needs to be renormalized after
incorporating a new NDF.
Some surfaces are not modeled well with a Blinn-Phong-style BRDF,
regardless of the NDF chosen. For example, extremely anisotropic surfaces
like brushed metal and hair are often best modeled as tightly packed one-
dimensional lines. Kajiya and Kay developed a simple BRDF model for this
case [620], which was given a solid theoretical foundation by Banks [57]. It
is alternately known as “the Kajiya-Kay BRDF” and “the Banks BRDF.”
The basic concept is based on the observation that a surface composed
of one-dimensional lines has an infinite number of normals at any given
location, defined by the normal plane perpendicular to the tangent vector t
at that location (t represents the direction of the grooves or fur [764]). The
17
It is interesting to note that Blinn [97] proposed the Trowbridge-Reitz NDF as a
replacement for the cosine power NDF because it was cheaper to compute. It was—in
1977. Changes in hardware have now made the cosine power NDF cheaper.
18
When implementing the Ward NDF, see the technical report by Walter [1316] that
includes a hardware-friendly form using only dot products.