Download experimental version(PC)
modified 18 Sep 04 - The file contains an additional generic plugin which makes it
easier to apply/remove the shader to/from all surfaces.
Added a button to save the current settings to the file SG_AmbOcc_Settings.txt
When a new instance of the shader is applied to a surface it will automatically look for this file in the content directory
and load the settings from it.

And after many moons it's finally here:
Mac Version by Ramprasad Sampath, let him know if you like it : ramsampath at hotmail com




This pdf made by Matt Gorner might be helpful when messing with the parameters: Ambient_Occlusion_Docs.pdf



Examples:
(Settings for all pics: white ambient light 70%, 1 white distant light 30%, no shadows, low AA)
(Surface color (255 255 255), diffuse 100%, everything else: 0% )



Number of Rays: 24
Shift: 0.0
Max Ray Length: 0.9
Max Angle 90°
Diffuse: on
everything else: off

Number of Rays: 24
Shift: 0.0
Max Ray Length: 0.9
Max Angle 90°
Diffuse: inv
everything else: off
Number of Rays: 24
Shift: 0.0
Max Ray Length: 0.9
Max Angle 90°
Color: on
Color value: 114 066 005
everything else: off
Number of Rays: 24
Shift: 0.0
Max Ray Length: 0.9
Max Angle 90°
Color: inv
Color value: 114 066 005
everything else: off

Number of Rays: 10
Shift: 0.0
Max Ray Length: 0.9
Max Angle 90°
Diffuse: on
everything else: off
Number of Rays: 24
Shift: 0.0
Max Ray Length: 0.3
Max Angle 90°
Diffuse: on
everything else: off
Number of Rays: 24
Shift: -0.5
Max Ray Length: 0.9
Max Angle 90°
Diffuse: on
everything else: off
Number of Rays: 24
Shift: +0.3
Max Ray Length: 0.9
Max Angle 90°
Diffuse: on
everything else: off
Number of Rays: 24
Shift: 0.0
Max Ray Length: 0.9
Max Angle 20°
Diffuse: on
everything else: off


Number of Rays: 24
Shift: 0.0
Max Ray Length: 0.9
Max Angle 90°
Surface Override: enabled
Note: When override is enabled, all other channel settings are ignored.
Lights will have no influence on the pixel.
Instead the occlusion value is written to RGB.
This is for easy rendering of "occlusion-only" passes.



Special thanks to Jabbermike and Dodgy for their ideas and feedback


Questions, comments, bug reports: skidbladnir(at)web(.)de

3 May 2006