Implementation of paper: Analytic Spherical Harmonic Coefficients for Polygonal Area Lights
run real-time demo with provided datas:
run.bat
place your data under data/
folder as:
- mesh:
data/your_mesh.obj
- envmap:
data/your_envmap.exr
and modify the variables in run_full.bat
:
set envmap=your_envmap
set mesh=your_mesh
and run:
run_full.bat
- Use
trimesh
for mesh io replacingopen3d
- Use
pytorch-minimize
to optimize zonal harmonics
- "An efficient representation for irradiance environment maps" by Ravi Ramamoorthi, Pat Hanrahan, SIGGRAPH 2001
- "Sparse Zonal Harmonic Factorization for Efficient SH Rotation" by Derek Nowrouzezahrai et al., SIGGRAPH 2012
- "spherical-harmonics" https://github.com/google/spherical-harmonics
- "SphericalHarmonics" https://github.com/chalmersgit/SphericalHarmonics
- "Analytic Spherical Harmonic Coefficients for Polygonal Area Lights" by Jingwen Wang, Ravi Ramamoorthi, SIGGRAPH 2018
- "Applications of Irradiance Tensors to the Simulation of Non-Lambertian Phenomena" by James Arvo, SIGGRAPH 1995