Tomm Huth Posted November 20, 2017 Share Posted November 20, 2017 I was playing around with SSAO, but could not get it to work with an orthographic camera. Is this not possible? Any workarounds? Any feedback appreciated Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 20, 2017 Share Posted November 20, 2017 We are doing some assumptions for the SSAO and one of them is that we are in a perspective projected space Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 20, 2017 Share Posted November 20, 2017 Pinging @Luaacro in case he has an idea Quote Link to comment Share on other sites More sharing options...
Tomm Huth Posted November 21, 2017 Author Share Posted November 21, 2017 Would be totally cool if that would be possible for orthographic as well! Maybe the documentation should mention this? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 21, 2017 Share Posted November 21, 2017 Let me ping @Luaacro again Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted November 21, 2017 Share Posted November 21, 2017 @Tomm Huth thanks! can you share me a playground so I can be based on in order to try to find a solution ? Thanks ! Quote Link to comment Share on other sites More sharing options...
Tomm Huth Posted November 24, 2017 Author Share Posted November 24, 2017 @Luaacro i'll see if i can't cock something up Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted November 24, 2017 Share Posted November 24, 2017 Thanks ! Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 1, 2017 Share Posted December 1, 2017 @Tomm Huth any news ? Quote Link to comment Share on other sites More sharing options...
Tomm Huth Posted December 1, 2017 Author Share Posted December 1, 2017 @Luaacro sorry about that! https://playground.babylonjs.com/#KAQYTH Uncomment the camera.mode line to see the difference Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 5, 2017 Share Posted December 5, 2017 Hey; just tried to understand the problem but found that if I set the maxZ value of the camera to 100 I can get a good result: https://playground.babylonjs.com/#KAQYTH#3 I assume that we store well the depth in the depth map, so I need to understand why the depth metrics have different impacts when you set as orthographic Quote Link to comment Share on other sites More sharing options...
Tomm Huth Posted December 6, 2017 Author Share Posted December 6, 2017 @Luaacro If you're asking me, it's a semi random number. If i reduce it to 500 (works with my scene) ssao effect does kick in. New question tho: Because SSAO introduces alot of aliasing, how would you combine this with a FXAA? Is that even possible? I've tried camera.attachPostProcess(new FxaaPostProcess("d", undefined, camera)) const ssao = new SSAORenderingPipeline('ssaopipeline', scene, 1, [camera]); I get You're trying to reuse a post process not defined as reusable. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 6, 2017 Share Posted December 6, 2017 For faxa, you should add it after the SSAO to antialias the output of the SSAO yeah I’m still looking for a solution in depth values. I’ll try with 500 ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.