Is it possible to render AO with the openGL render?

I know there is a technique called SSAO which is used in some video games, so it should be possible.

How can I achieve this?

  • 1
    $\begingroup$ That would be really cool. Why can't Blender look like Crysis? $\endgroup$ – Matt Jan 9 '14 at 21:22
  • $\begingroup$ This can be done in the game engine in realtime. $\endgroup$ – iKlsR Jan 9 '14 at 22:46
  • $\begingroup$ @iKlsR How? And can it be used for rendering an animation? $\endgroup$ – gandalf3 Jan 9 '14 at 22:50
  • $\begingroup$ devlog-martinsh.blogspot.com/2011/10/nicer-ssao.html $\endgroup$ – iKlsR Jan 9 '14 at 22:52
  • $\begingroup$ @iKlsR That shader looks like this for some reason :/ $\endgroup$ – gandalf3 Jan 10 '14 at 0:29

I have come up with a hack to fake AO in the viewport using negative lamps.

enter image description here

The way this works is with a negative point lamp parented at the center of each cube, and an array of negative point lamps below the floor plane:

enter image description here

For the floor it would be more ideal to use an area lamp, however these are only supported in the BGE candy branch.

The world is set to Paper with a pure white Horizon Color. The Ambient color is also set to white.

GLSL shading and Only Render are also enabled.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.