Simple application that loads an OBJ file and an environment map and calculates & displays the corresponding 3rd order spherical harmonics coefficients
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cubemaps
glfw @ 9017eae
result_images
.gitmodules
CMakeLists.txt
README.md
dog.obj
imgui.cpp
imgui.h
imgui_draw.cpp
imgui_impl_glfw_gl3.cpp
imgui_impl_glfw_gl3.h
imgui_internal.h
m_math.h
main.cpp
s_shader.h
sphere.obj
stb_image.h
stb_rect_pack.h
stb_textedit.h
stb_truetype.h
yocto_obj.h

README.md

Spherical Harmonics Playground

This is a simple application that loads an OBJ file and an environment map and calculates & displays the corresponding 3rd order spherical harmonics coefficients for it. The coefficients can also be modified at runtime to see the effect of each coefficient.

Here is a dog statue (that I attempted to scan a few years ago) in a room environment: dog statue in room environment

And here is a simple sphere in an outdoor environment: sphere in outdoor environment

Linux dependencies for glfw: xorg-dev libgl1-mesa-dev

git clone --recursive https://github.com/ands/spherical_harmonics_playground.git
cd spherical_harmonics_playground
cmake .
make
./playground

dickyjim has collected various resources regarding spherical harmonics on his blog.