LightsprintSDK 2021.08.08
|
Ambient occlusion on Wikipedia
[Direct] ambient occlusion is a function of a surface point and a surrounding geometry, with return value in 0..1 space, 0 for surface point fully occluded by surrounding geometry and 1 for completely unoccluded point.
[Direct] ambient occlusion is a result of direct illumination in a uniform white environment.
Sometimes ambient occlusion is desired to include effect of multiple light bounces and color bleeding. Let's call it global ambient occlusion.
Global ambient occlusion is a function with return value in 0..inf space, but with typical values inside 0..1 range.
Lightsprint supports global AO equally well as direct AO, so all that we say about AO matters for both direct and global AO.
Information about direction of incoming light can be precomputed and used in the same way as in case of classical lightmaps. See Directional lightmaps / vertex colors for more details.
Lightsprint can store object's ambient occlusion and global ambient occlusion in
Calculation of ambient occlusion is non-realtime process. To calculate ambient occlusion,
See data structures (links above) for more details on calculation.
See data structures (links above) for more details on use in renderer.