I’m using Distance Field Ambient Occlusion for my school project. As you can see in the video below, my problem is that it disappears with camera distance.
I checked “Distance Field Indirect Shadow” on all of my meshes, to make my skylight affect my AO. This changes a lot how my DFAO looks like.
I also checked Far Shadow but it doesn’t look like it does anything at all.
I obviously tried checking and unchecking everything I could, but nothing seemed to affect the fact that it disappears with camera distance.
We also tried with my teacher to recreate a very basic scene with Starter Content meshes, and the DFAO also disappeared at the same camera distance. How exactly are we supposed to setup this with large landcapes ?
Everything in my scene is set on movable (lights and meshes).
“Distance Field Ambient Occlusion disappears with camera distance”
yep that’s basically how they work. it’s an optimization to prevent it from being extremely costly
try this on the console: r.AOMaxViewDistance=50000
play with the value to your desired result. note that the bigger you make it, the less resolution it will appear to have.
you can tweak the close/far resolution relationship with this: r.AOStepExponentScale=0.5 (play around with the value)
I’ve tried everything you said, but nothing affected my issue. DFAO still disappears at the same camera distance.
I also noticed with the “Mesh DistanceFields” visualize tool that the Distance Field meshes themselves also disappear at about the same camera distance.
None of the above solves this. The right way is : click on your post process settings, in the details panel under ambient occlusion-> advanced → Fade out distance increase this number as you need