# Distance Field AO Funk?

**URL:** <https://forums.unrealengine.com/t/distance-field-ao-funk/392481>\
**Category:** Rendering\
**Tags:** skylight, dfao, unreal-engine, Lighting, UE4, question\
**Created:** [May 2, 2017, 2:41pm UTC](https://forums.unrealengine.com/t/distance-field-ao-funk/392481 "2017-05-02T14:41:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trentpolack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/trentpolack/32/1173069_2.png) [@trentpolack](https://forums.unrealengine.com/u/trentpolack)\
**Post date:** [May 2, 2017, 2:41pm UTC](https://forums.unrealengine.com/t/distance-field-ao-funk/392481/1 "2017-05-02T14:41:42Z")

</div>

I was checking out the DFAO randomly this morning and was kind of noticing that the visualization didn’t entirely match up with what I was seeing in the final scene composition. So I played around with the clipmap distance exponent to get it really exaggerated and, with a black occlusion tint, the scene looks like this:

 ![136460-dfao_black_tint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/7/2e757d4f1977b36a8a2a205d33e5c67e4bd4c2be.jpeg)

And here’s the scene with a green-tinted AO.

 ![136461-dfao_green_tint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/5/d253b2100bae8806f55d6035a14feed6ca36c354.png)

**NOTE**  
I could _potentially_ see this as a byproduct of the tonemapper/eye-adaptation, but it still seems that the black-tinted AO should show up given the extreme presence of the green.

Also worth mentioning: movable directional light, movable skylight.

---

<div class="post-metadata">

**Author:** ![trentpolack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/trentpolack/32/1173069_2.png) [@trentpolack](https://forums.unrealengine.com/u/trentpolack)\
**Post date:** [May 4, 2017, 7:17am UTC](https://forums.unrealengine.com/t/distance-field-ao-funk/392481/2 "2017-05-04T07:17:18Z")

</div>

Per Sir Tim Hobson’s request, here are a couple more screens (again, I have the cvar “r.AOGlobalDFClipmapDistanceExponent” jacked up pretty far (32) just for testing this):

Visualize Distance Field AO:

 ![136744-visualize_dfao.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/8/d08b1838afab03297d3923827b171f1914324110.png)

Visualize Mesh Distance Fields

 ![136745-visualize_mesh_distancefields.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/3/53310961b7256f4bfaddf5dea25b297ddabcd417.jpeg)

The rest of the results are the same as the originally-posted ones.
