Blender Git Commit Log

Git Commits -> Revision 2a90de0

Revision 2a90de0 by Ton Roosendaal (master)
April 5, 2004, 21:04 (GMT)
Eeshlo AO patch, revised

- Ambient Occlusion is a more sophisticated ambient trick, which takes
nearby faces into account by firing a hemisphere of shadow-rays
around. AKA 'dirt shader'.
- Eeshlo made it a Lamp type, which doesn't fit well. I've moved the
settings to the World menu, and let the Material->ambient value control
the amount it contributes
- currently, the AO value is added/subtracted/mixed with the 'diffuse'
factor while shading, before it is multiplied with Material color

Buttons are in new Panel 'Amb Occ" in F8 menu. Note:

- "Dist:" by shortening the length of rays you get subtler effects and it
renders faster too
- "DistF:" the attennuation factor gives control over how the 'shadow'
spreads out.

Further it's just raytracing, so tends to be slooooow.... :)
Here same tricks as for other raytraced scenes apply, especially try to
keep the environment as small as possible (exclude faces from Octree by
giving them no Material Traceable).

I still have to think over a couple of aspects, will await feedback on it:
- AO color? Now it just adds 'white'
- other sampling patterns? I tried dithering, which was so-so
- method of controlling final 'samples' in F10? Might be useful for other
oversampling too (area light) to have it reacting to a percentage or so..

Commit Details:

Full Hash: 2a90de034826cd172117e6dd9764bfb481c1b14f
SVN Revision: 2243
Parent Commit: e4ce73c
Lines Changed: +188, -3

7 Modified Paths:

/source/blender/blenkernel/intern/world.c (+5, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+8, -0) (Diff)
/source/blender/makesdna/DNA_world_types.h (+17, -1) (Diff)
/source/blender/render/intern/include/rendercore.h (+1, -0) (Diff)
/source/blender/render/intern/source/ray.c (+98, -2) (Diff)
/source/blender/render/intern/source/rendercore.c (+20, -0) (Diff)
/source/blender/src/buttons_shading.c (+39, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021