[2.1] Correct way to retrieve normals for SSAO

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
van4dium
Halfling
Posts: 40
Joined: Fri Jul 30, 2010 2:40 am
x 1

[2.1] Correct way to retrieve normals for SSAO

Post by van4dium »

Hello to all.
I'm trying to do the porting of the demo SSAO but I can not understand
how to get the normal (fill gbuffer) with the new compositor system.

I found online some examples of how to get the normal
from the depth buffer, but no one works well.

Can you tell me the way to having SSAO in OGRE 2.1?
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 169

Re: [2.1] Correct way to retrieve normals for SSAO

Post by xrgo »

while ago I managed to make this SSAO work with Ogre 2.1 http://blenderartists.org/forum/showthr ... -fast-SSAO it uses only depth and its quite fast. sadly I dropped it because I couldn't make it work with MSAA so I don't have the rest of the code (compositor stuffs mainly) =(, but as far as I remember it was very easy to make it work