AO (Ambient Occlusion) in Post Process Volume for UE5 and Lumen?

I’m thinking about the same question. So seems that Lumen replaced the global AO totally? Because Lumen is a software raytracing strategy, if you want a global AO you need to use ppv and turn on the raytracing AO. And if you dont use raytracing, there won’t be an AO buffer for you to visualize, and that’s why it’s absolutely white I guess. But I’m curious what kind of AO strategy they use for lumen? They support material AO, so maybe it’s SSAO?

I think I figure it out. There is no additional pass for AO in software raytracing system of Lumen, but the influence of AO is included in Lumen lighting. So if you want a global AO image you’d better use a PPV and turn on the ray tracing AO. Hope that’s helpful!

2 Likes

Hey guys. Just thought of adding this note.
First off - Ambient Occlusion is something that software does to fake the soft shadowing when meshes interact with one another. The Engine can do this shadowing by itself without having to do AO pass - but, you see, it is very resource intensive to do this soft shadowing with just lighting, you end up dropping performance if you do this. So that’s why the concept of doing an AO pass exists. Screen space and Raytracing renderer uses AO to do this shadowing effect (as a bonus, artists get to art direct this pass too - like controlling falloff radius, intensity and colors. You see the concept here? You are not actually modifying your lights for these effects. This is all just a pass generated by engine being composited on top).

If you take a pathtracer renderer like Arnold or even UE’s pathtracer, it does this self shadowing without having to generate an AO pass. The downside to this is that you lose artistic control of AO because the AO pass does not exist in the first place (that’s what I think at least). Lumen however uses a technique called 'Virtual Shadow mapping" to achieve this look. You can visualise using the view modes on your viewport too.

But for more stylised work, I think Epic should add an ability to give AO pass and be able to composite on top of final image in Engine itself. For now, the option is to take the AO pass from SS or raytracing GI and composite in some editing software like AE, photoshop or Nuke.

EDIT: User “cschrubini” has linked a video in the below comments showing how to enable SSAO with Lumen.

3 Likes

Hi,

I have similar problem. When I’m creating default Unreal (5.1) project (this one with race) - I have set Lumen and I can change for e.g colour of ambient occlusion - it works!
In my personal project I can see AO but i can’t change this colour for e.g.
Aaaand what is weir - it wokrs oly with scalability settings set on Low or Medium :open_mouth: With High, Epic, Cinematic - nothing hapend


Any ideas?

1 Like

Because that’s something like SSAO, not Limen, which is only enabled when Hogh, Epic or Cinematic, not being allowed to separate AO, which seems to be integrated into the Limen GI.

Ue5-lightning .pdf (18.5 MB)
image

1 Like
6 Likes

Thanks for sharing!
This method worked fine.

This does not seem to work when using a post process material with a lumen scene.
It’s fine and all that Lumen changes how AO works, but the AO pass is still vital for masking specific effects in a post process material volume.

1 Like

AFAIK you can’t, unless you disable the integrated AO inside Lumen (Short Range AO), which is much more precise, so the tradeoff usually won’t worth.

Thanks Alberto