Spherical Harmonics

by raffihotteron 12/20/2024, 5:34 AMwith 62 comments

by Scene_Cast2on 12/22/2024, 3:35 AM

If anyone is curious about applications - these can be used to approximate low-frequency components of a point's surroundings. They were used in Halo 3 to do real-time HDRI lighting and shadowing (see "Lighting and Material of Halo 3" from Siggraph 2008).

After the success of this method, there was a fairly long stretch of researchers looking for a better orthonormal basis (such as 2D Haar wavelents, as spherical harmonics is basically a Fourier Transform on a spherical basis). I think the pinnacle of this direction was Anisotropic Spherical Gaussians from 2013.

These days though, you'd at least use a neural net to learn a basis (or use a neural net to learn something else entirely). And of course, Gaussian Splats are the technique du jour for realtime relighting.

by JeremyHerrmanon 12/22/2024, 12:56 AM

For those of you curious about WHY these shapes look like the do (e.g. "why does l=0, m=0 have a donut in the middle of two lobes?"), this video from MĂĽnster University finally gave me an intuitive understanding of how these shapes arise.

https://youtu.be/Opufc3onVow

by vecteron 12/22/2024, 2:13 AM

Are these related to (or exactly) the distribution of electron orbits?

by pletneson 12/23/2024, 10:10 AM

If you need to work on numerical computation with spherical harmonics, I’ve used this library with some success.

https://github.com/SHTOOLS/SHTOOLS

by ghostpepperon 12/22/2024, 12:32 AM

Anyone know a good explanation of what spherical harmonics are?

by openriskon 12/23/2024, 8:53 AM

Next project: spin harmonics

https://en.m.wikipedia.org/wiki/Spinor_spherical_harmonics

by tomxoron 12/22/2024, 8:52 AM

Shameless plug, in 140 bytes https://www.dwitter.net/h/wikimedia

by gus_massaon 12/20/2024, 11:56 AM

They look too big. I expected all the l=1 to be like a cone near (0,0,0). And I expected one of them to be vertical instead of horizontal.

by setopton 12/22/2024, 9:05 AM

See also the “cubic harmonics”, which is an equivalent basis to spherical harmonics but they are real instead of complex, and also more natural to use in cubic crystals due to their symmetries.

I have also seen “triangular harmonics”, “zonal harmonics”, etc. in use in other materials.

by jms55on 12/22/2024, 4:18 AM

Obligatory useful SH paper for 3d rendering: http://www.ppsloan.org/publications/StupidSH36.pdf

Also lots of other cool research around SH in rendering, e.g. the recent ZH3 paper.

by lizmuttonon 12/22/2024, 12:40 AM

Neat!! thanks for sharing

by liontwiston 12/22/2024, 12:19 AM

why does the page scroll when I drag a slider?

by dagsson 12/23/2024, 10:16 PM

TL;DR about spherical harmonics: It is what you use instead of Fourier transforms if what you transform is on the surface of a sphere.

My experience is from cosmology (CMB) where they are heavily used just like Fourier transforms, I think they are also used in meteorology.