r/GraphicsProgramming • • Oct 19 '26

Article Demystifying Spherical Harmonics: An Optimization Approach

https://andrew-helmer.github.io/demystifying-spherical-harmonics/
97 Upvotes

14 comments sorted by

View all comments

3

u/SV-97 Oct 19 '26

Is this "L1" terminology really something that some people use? If so that's highly unfortunate because there's an entirely different thing called L1 Regression, L1 Approximation etc. (it's just regression etc. using the L1 norm)

7

u/AndrewHelmer Oct 19 '26

Yes indeed it is, I think it's the most common terminology in the graphics community? Though a lot of people and code use SH2 (which is L1 SH), SH3, etc. In practice I haven't found it too confusing, it's usually pretty obvious in context, but there was a situation where I did L2-norm regularization for a regression to calculate L1 SH coefficients, and I tried to make sure to write it out fully everywhere.

2

u/SV-97 Oct 19 '26

Interesting / curious. Thanks! :)

1

u/LehdaRi Oct 20 '26

In those cases you could use the MAD / MSE (mean absolute diff / mean squared error) nomenclature to provide a clear differentiation between the two.

0

u/DankPhotoShopMemes Oct 20 '26

L1, L2, etc are used so commonly in math and CS, though some definitions are related. norms, regression, spherical harmonics, cache levels, function spaces, and many more I bet. It just depends on the context lol.

3

u/SV-97 Oct 20 '26

Norms, Regression and Function Spaces / Lebesgue Spaces are all the same kind of Lp. The post talks about stuff like "L1 approximations"; that these have nothing to do with cache levels is clear but even in the context of the post the term could easily be confused with L1 approximations in the Lp sense.