# Distance Field enable but not working

**URL:** <https://forums.unrealengine.com/t/distance-field-enable-but-not-working/1686355>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, question\
**Created:** [February 13, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/distance-field-enable-but-not-working/1686355 "2024-02-13T16:13:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnicbling1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mnicbling1](https://forums.unrealengine.com/u/mnicbling1)\
**Post date:** [February 13, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/distance-field-enable-but-not-working/1686355/1 "2024-02-13T16:13:17Z")

</div>

Hi! I have been trying to use the DistanceToNearestSurface node but is not making any change in the material. To be sure I also turned on the Visualize \> Global Distance Fields and Mesh Distance Fields, but it show me the message that “Mesh distance fields generation is disabled by project settings, cannot visualize DFAO, mesh or global distance field.” even though is enable in the project.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/d/ecd35feb7d082cf88d132a38bce366519fbff4a8.png)

What other setting could I be missing?

---

<div class="post-metadata">

**Author:** ![mnicbling1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mnicbling1](https://forums.unrealengine.com/u/mnicbling1)\
**Post date:** [February 13, 2024, 4:56pm UTC](https://forums.unrealengine.com/t/distance-field-enable-but-not-working/1686355/2 "2024-02-13T16:56:44Z")

</div>

found this thread that had the solution

> [@Doesn't work Global distance field Lyra Starter Game UE 5.3.1](https://forums.unrealengine.com/t/doesnt-work-global-distance-field-lyra-starter-game-ue-5-3-1/1332602):
>
> I just downloaded the lyra starter game and launched it with version 5.3.1 and I have a problem, I don’t see the global distance field, it doesn’t work at all because the particles don’t collide with settings GPU \>collision \> distance field. Which is very strange is that in the project settings I have Generate mesh distance field enabled and if I create a default project, the distance field works very well. I can’t understand, if everything is included, how can it be that the distance field do…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 14, 2024, 4:57pm UTC](https://forums.unrealengine.com/t/distance-field-enable-but-not-working/1686355/3 "2024-03-14T16:57:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
