Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actuallipsryme

Posted 01 September 2012 - 01:48 PM

Hmm it doesn't seem to work in combination with my ssao.
What I had before was a R32 texture rendering the depth like this:
viewPos.z / farClipDist
And inside the ssao I sample from this texture two times using different tex coords.

Now when I sample from my hw depth stencil buffer and then convert it the way you described it, it just gives me a grey screen.




Edit: Ah it does work it was my projection matrix that was wrong somehow.
Thanks for the solution !

#1lipsryme

Posted 01 September 2012 - 01:42 PM

Hmm it doesn't seem to work in combination with my ssao.
What I had before was a R32 texture rendering the depth like this:
viewPos.z / farClipDist
And inside the ssao I sample from this texture two times using different tex coords.

Now when I sample from my hw depth stencil buffer and then convert it the way you described it, it just gives me a grey screen.

PARTNERS