Ok so I've just about got my head around the theory. So can someone correct me if I'm wrong in thinking that Spherical Harmonics are an efficient means for storing the lighting contributions of the nearby environment for any given point in space.
Assuming I'm roughly correct so far, I need a bit of help in understanding how this is/can be applied in real time.
So I get that for a largely static environment, you can pre-compute a set of low resolution cubemaps and then reduce them to sets of spherical harmonic coefficients for the sake of memory efficiency. The questions I have so far are:
1) Where do you set the light probes? At the locations of each individual model? What about larger models that will need to deal with a possibly changing set of light values? Assuming you'd need more than one set, how do you blend between them?
2) How do you handle moving objects (just a few, obviously). Do you have to constantly render an environment map or is there a direct way of getting the right coefficients? I assume if you're going to be constantly rendering it, you'd only take into account objects within a certain distance?
Thanks in advance people!
Edited by gchewood, 04 October 2013 - 10:54 AM.