Hacker News new | ask | show | jobs
by agumonkey 3774 days ago
And while fun to read, the cheap trick above doesn't have the right lightwaves to make you feel the same.
1 comments

I have a suspicion you may not even need scattering to achieve similar psychological effects.

In computer graphics, if you want to get "daylight" illumination for cheap, you simply use two lights - one white-to-yellowish directional and one bluish hemispherical:

http://threejs.org/examples/webgl_lights_hemisphere.html

You only compute expensive scattering if you need volumetric effects (e.g. god rays or atmospheric fog blueing things far away, on the order of at least hundreds of meters).

But here for simple indoor lighting, you don't really need volumetric effects. You just need proper light color coming from roughly appropriate directions - one strong white-to-yellowish light (coming from uniform direction) that will cast hard shadows and one weaker bluish diffuse light (coming from many directions) that will cast soft shadows.

Could you send me a screenshot, my IGP has no love for webgl.
Sure, here are screenshots of that WebGL demo (final result, plus broken into lighting components):

http://imgur.com/a/2fUmE

Real physical double-light would look better - this demo lacks ambient occlusion for hemispheric component (soft shadows in real world are free, in rendering they are expensive).