Jump to content

Orthographic camera and SSAO

Recommended Posts

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

Link to post
Share on other sites

@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.


Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...