Archived

This topic is now archived and is closed to further replies.

osh

Spherical Harmonic Lighting

Recommended Posts

30 min to calculate this. You don''t want the user to wait 30 min just to load something...



Member of the Shove Pouya Off A Cliff club, SPOAC . (If you wish to join, add this line to your signature.)
Member of "Un-Ban nes8bit" association, UNA (to join put this in your sig)

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
quote:
Original post by merlin9x9
Precalculate.


Possible. But it is good for static object and static light sources only, right?



Member of the Shove Pouya Off A Cliff club, SPOAC . (If you wish to join, add this line to your signature.)
Member of "Un-Ban nes8bit" association, UNA (to join put this in your sig)

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
spherical harmonics are just compressed cubemaps, wich have some nice mathematical behaviours. but to get the incomming lighting, to get to that cubemap, that you can compress then, you need to do this calculations somehow. and this is, generally, very slow.. normally done with raytracing of millions of rays.. or by rastericing from each point a surrounding cubemap. wich way you ever wanna choose. the calculation part is slow.

the power of the sh is, you can with small storage STORE that calculations. it doesn''t make your calculations any faster, no..


so, precalc only. dynamic? never.




If that''s not the help you''re after then you''re going to have to explain the problem better than what you have. - joanusdmentia

davepermen.net

Share this post


Link to post
Share on other sites