A Compression Method For Spectral Photon Mapping
Gorm Lai Department of Computer Science,
University of Aarhus and Deadline Games
Niels Jørgen Christensen, Informatics and
Mathematical Modelling,
Technical University of
Denmark
Spectral Rendering
Interesting Effects:
Dispersion Interference
Diffraction
Rayleight Scattering Phosphorescence
Flourescence
Why?
Problems of Spectral Photon Mapping
Spectral power distribution repr. as an array of N uniformly distributed point samples.
Size of the photon map
1 sample = 1 float = 4 bytes 1 SPD = N * 4 bytes
1 Photon map = M * N * 4 bytes
For a simple scene with 200000 photons, and
N=100, the photon map requires approx 200.000 *
100 * 4 = 76 MB
Solution?
Compression!
Basic idea
Centralize compression in the photon map.
1. Compress when adding photons.
2. Decompress when looking up
photons.
Photon Emission
Calculations done in the spectral space.
No compression until put in the photon map.
Calculations done in the spectral space. No loss Calculations done in the
spectral space. No loss
Calculations done in the spectral space. No loss Calculations done in the
spectral space. No loss
IMPORTANT! Emitted photons carry the entire spectrum of the light source.