19 February 2016

Here’s an interactive demo that lets you visualize spherical harmonic approximations, up to 5 bands. You can interactively slide the coefficients for the first three bands, while the other two bands can be set using the manual text entry button.

Don’t know what spherical harmonics are? Wait for the next post for a primer.

Band 0

l = 0, m = 0 0.000

Band 1

l = 1, m = -1 0.000
l = 1, m = 0 0.000
l = 1, m = 1 0.000

Band 2

l = 2, m = -2 0.000
l = 2, m = -1 0.000
l = 2, m = 0 0.000
l = 2, m = 1 0.000
l = 2, m = 2 0.000

Band 0

l = 0, m = 0 0.000

Band 1

l = 1, m = -1 0.000
l = 1, m = 0 0.000
l = 1, m = 1 0.000

Band 2

l = 2, m = -2 0.000
l = 2, m = -1 0.000
l = 2, m = 0 0.000
l = 2, m = 1 0.000
l = 2, m = 2 0.000

Band 0

l = 0, m = 0 0.000

Band 1

l = 1, m = -1 0.000
l = 1, m = 0 0.000
l = 1, m = 1 0.000

Band 2

l = 2, m = -2 0.000
l = 2, m = -1 0.000
l = 2, m = 0 0.000
l = 2, m = 1 0.000
l = 2, m = 2 0.000
Exposure:
Gamma transform:
     Monochrome:

There are several different visualization modes:

  • The default view is a diffuse sphere lit by the spherical function as an environment map
  • A specular sphere lit by the spherical function as an environment map (which is the same as rendering the spherical function as the intensity on a sphere, with axes reversed)
  • Spherical function as the radius of a shape. This is the only mode that will let you see negative values, which are shown as red. Positive values are shown in green.
  • Cubemap of the spherical function (to be implemented)



blog comments powered by Disqus