# Distance Field Resolution change not working

**URL:** <https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [August 7, 2016, 11:26am UTC](https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870 "2016-08-07T11:26:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_26639b29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_26639b29](https://forums.unrealengine.com/u/anonymous_user_26639b29)\
**Post date:** [August 7, 2016, 11:26am UTC](https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870/1 "2016-08-07T11:26:28Z")

</div>

Hello,  
I’m trying to create a material, that will outline the intersection with another object. I was able to make it work with Distance Field but the result looks really choppy. On the internet it’s said that You have to increase the “Distance Field Resolution Scale” which I tried. But even though I set the value to maximum it’s not changing anything. I tried all kinds of stuff that I was able to find on the internet but nothing seems to work.  
Can someone help?

---

<div class="post-metadata">

**Author:** ![Construc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Construc](https://forums.unrealengine.com/u/Construc)\
**Post date:** [August 11, 2016, 1:58am UTC](https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870/3 "2016-08-11T01:58:28Z")

</div>

Is there a way to reference the per-object distance fields in a material somehow?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_26639b29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_26639b29](https://forums.unrealengine.com/u/anonymous_user_26639b29)\
**Post date:** [August 13, 2016, 8:19am UTC](https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870/5 "2016-08-13T08:19:12Z")

</div>

DistanceToNearestSurface and “Global DistanceField View Distance”

Oh man, thank you so much! As you assumed we are using DistanceToNearestSurface for the material and by changing “Global DistanceField View Distance” (in the UI dialog) from in our case 20.000 to 5.000, the shader is now exactly doing what it’s supposed to be doing. Perfect! Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Gmi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gmi](https://forums.unrealengine.com/u/Gmi)\
**Post date:** [August 16, 2016, 4:28pm UTC](https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870/6 "2016-08-16T16:28:52Z")

</div>

I apologize for a dumb question, but @InScene , but I’m not finding the “Global distancefield view distance” setting over here. Do I need to enable something somewhere? I’ve already enabled the distance fields in the editor settings. I’ve got the “DistanceToNearestSurface” node working (it looks like it does in your original screenshot.)

I just can’t find the view distance setting you show in your latest post.

Is this perhaps because I’m still on 4.9 ? What Version are you on?

![RhxdAXA.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/3/23602c0f79421a987065a77906f748241eb5690e.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_26639b29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_26639b29](https://forums.unrealengine.com/u/anonymous_user_26639b29)\
**Post date:** [August 16, 2016, 7:19pm UTC](https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870/7 "2016-08-16T19:19:01Z")

</div>

Hi Gmi,

we’re using version 4.11 and 4.12. I’m quite new to unreal engine development, so I can’t tell if the option only exists in the newer versions.

I’ve also activated the option “Generate Mesh Distance Fields” which you can find in “Project Settings -\> Rendering -\> Lighting”. But even if it is disabled, the “Global DistanceField View Distance” parameter is visible at “Windows -\> World Settings”.

So maybe you should try to update to a newer version. Maybe @DanielW knows more about this as he seems to be an unreal developer.

---

<div class="post-metadata">

**Author:** ![Gmi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gmi](https://forums.unrealengine.com/u/Gmi)\
**Post date:** [August 16, 2016, 9:53pm UTC](https://forums.unrealengine.com/t/distance-field-resolution-change-not-working/70870/9 "2016-08-16T21:53:15Z")

</div>

Ah, I see. Thank you guys! I guess I’ll have to move my project to a newer version 🙂
