Can anyone explain spherical harmonics to an artist?

Examining the statistics of the spherical harmonics that make up the above map give us insight into basic physics.

And the past of the universe too...not to forget ;)
it also may help us to better understand where the universe is going and the elusive dark-matter and dark-energy.

So a "tad" more than just basic physics ;)
 
Yes, but it will be distorted. Size scales won't accurately be represented in the Fourier transform.
I'd also add that it works out rather nicely when you get around to reconstructing the sum of the functions when running through a shader and everything works out accordingly in unit-sphere space, and everything is unbiased meaning you don't have to re-adjust weighting on reconstruction.

Yesteday I explained SH to one of our artists and I tried to do that cutting most of the mathematical stuff.
For me, I was mostly explaining it to people who were anyway doing lighting work, and they'd be using the tools for the irradiance volumes, so I used the context of lighting. Went something like ...

Me : You know how you express lighting in terms of the sum of these components... the ambient, diffuse, specular, reflection, etc...?
Artist : Right, add it all together and you get the total lighting effect.
Me : So you also know that each of these is progressively higher detail... ambient is just flat, low detail, diffuse is somewhat higher detail as it varies based on direction, and specular highlights are higher detail -- small highlights, and then reflection is even higher detail as it is a dead-on image...
Artist : Right. And sometimes we don't need all of them, but yeah...
Me : So the spherical harmonics is essentially doing the same thing. We transform the light coming in as a sum of components of progressively higher and higher detail and add them together to get a lighting effect. For us, we're using it to replace the ambient component, so we don't go very high detail in the end, but still better than just a flat color.
Artist : Okay. So we punch in colors for this how?
Me : Don't have to do that. The values are calculated based on the environment, so we can get lighting based on where the character is at, and it's all calculated offline, and the results are just a few numbers we use at runtime. <snip>

I'd include the rest, but it gets more nit-picky and closes out a little on the creepy side.
 
Back
Top