Algorithms for spherical harmonic lighting

  • Authors:
  • Ian G. Lisle;S.-L. Tracy Huang

  • Affiliations:
  • University of Canberra;University of Canberra

  • Venue:
  • Proceedings of the 5th international conference on Computer graphics and interactive techniques in Australia and Southeast Asia
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Spherical harmonic (SH) lighting models require efficient and general libraries for evaluation of SH functions and of Wigner matrices for rotation. We introduce an efficient algebraic recurrence for evaluation of SH functions, and also implement SH rotation via Wigner matrices constructed for the real SH basis by a recurrence. Using these algorithms, we provide a freely distributable C / OpenGL implementation for SH diffuse unshadowed, shadowed and inter-reflected models. Our implementation allows flexible switching of scene, light probe, SH degree and lighting model at run time.