# Distance field not generating on specific meshes

**URL:** <https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279>\
**Category:** World Creation\
**Tags:** distance-field-ambie, ray-traced-distance-, unreal-engine, bug-report, question\
**Created:** [February 18, 2015, 2:37am UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279 "2015-02-18T02:37:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshezzell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joshezzell](https://forums.unrealengine.com/u/joshezzell)\
**Post date:** [February 18, 2015, 2:37am UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/1 "2015-02-18T02:37:27Z")

</div>

I have 8 tree meshes from speedtree. 4 of them generate a distance field. The other 4 act like they generated them, but they are not receiving or creating any DFAO. They also don’t have a distance field representation in the visualizer.

Typically, I see a mesh lose it’s distance field when the size of it gets to be 4Mb. The mesh editor dialog says the distance fields for all 8 trees are .50Mb.

---

<div class="post-metadata">

**Author:** ![joshezzell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joshezzell](https://forums.unrealengine.com/u/joshezzell)\
**Post date:** [February 18, 2015, 3:16am UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/2 "2015-02-18T03:16:56Z")

</div>

okay, so this is really weird. After several restarts I was able to get 5 out of the 8 to generate distance field, but only after changing the distance field resolution on all the LODs for the meshes to ‘0’. I just restarted again though, and all the meshes have DFAO now except trees 1-3, which previously had it.

---

<div class="post-metadata">

**Author:** ![gustavorios2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gustavorios2/32/1194641_2.png) [@gustavorios2](https://forums.unrealengine.com/u/gustavorios2)\
**Post date:** [February 18, 2015, 1:31pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/3 "2015-02-18T13:31:17Z")

</div>

I’m having the same problem  
some meshes aren’t generating the distance fields

it looks the problem is in the resolution scale. if I set it to 1 the distance fields works ok

---

<div class="post-metadata">

**Author:** ![joshezzell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joshezzell](https://forums.unrealengine.com/u/joshezzell)\
**Post date:** [February 18, 2015, 5:17pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/4 "2015-02-18T17:17:45Z")

</div>

Yes, the distance field resolution has a play on whether or not it will build. The problem with mine is that it’s set to 1 already and some of my trees are not building a DF.

---

<div class="post-metadata">

**Author:** ![gustavorios2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gustavorios2/32/1194641_2.png) [@gustavorios2](https://forums.unrealengine.com/u/gustavorios2)\
**Post date:** [February 18, 2015, 5:28pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/5 "2015-02-18T17:28:13Z")

</div>

I tested my meshes in a new clean project and they worked fine.  
looks like update the project to new ue4 versions break the project.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [February 19, 2015, 8:32pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/6 "2015-02-19T20:32:11Z")

</div>

Hi joshezzell and gustavorios2,

I’ve tried to replicate this but I can’t get this to repro with any project I’ve used Distance Fields on in 4.6 that is opened with a copy in 4.7, with preview 8 being the latest version I’ve tried.

@joshezzell: is this only happening with SpeedTree Assets?

@Gustavorios2: you mention you’re using resolutions other than the default 1. What resolutions are you using that is causing the issues you have? If you’re using anything below 1 you will see a much lower resolution or non-existent distant field representation.

Thanks,

Tim

---

<div class="post-metadata">

**Author:** ![lvl45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lvl45](https://forums.unrealengine.com/u/lvl45)\
**Post date:** [March 7, 2018, 11:13am UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/7 "2018-03-07T11:13:16Z")

</div>

Sorry for necro this post,

but it maybe helpful to some other folks.

Since I had the same struggle with trees that were painted like foliage in my scene (they didn’t have distance field on them) I found out solution in my case.

Basically when you put your tree in foliage painter (for example “tree\_01”) it make copy of it in browser and names it “tree\_01\_Foliage\_Type”. So when you double click on that “tree\_01\_Foliage\_Type” Under ‘Instance Settings’ there is a check box for “Affect Distance Field Lighting” which was unchecked.

As soon as I checked that it generated DF for that instance tree.

Hope it helps, Cheers!

Vlad

---

<div class="post-metadata">

**Author:** ![jwtrp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jwtrp](https://forums.unrealengine.com/u/jwtrp)\
**Post date:** [November 15, 2018, 7:10pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/8 "2018-11-15T19:10:40Z")

</div>

Hey, I’m having the problem that I’m making roads with the landscape spline tool and the segment meshes are also not generating a distance field. intersection that I’m assigning via the individual controll points do have a distance field. also the landscape it self does not seem to create a distance field.

---

<div class="post-metadata">

**Author:** ![jwtrp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jwtrp](https://forums.unrealengine.com/u/jwtrp)\
**Post date:** [November 15, 2018, 7:31pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/9 "2018-11-15T19:31:12Z")

</div>

that fixed it for me with the foliage - but still noe distance field for the spline segment meshes

---

<div class="post-metadata">

**Author:** ![lvl45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lvl45](https://forums.unrealengine.com/u/lvl45)\
**Post date:** [November 15, 2018, 8:00pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/10 "2018-11-15T20:00:38Z")

</div>

For the spline segment meshes you cant generate mesh distance field as far as I know, you need to convert them to regular meshes

---

<div class="post-metadata">

**Author:** ![jwtrp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jwtrp](https://forums.unrealengine.com/u/jwtrp)\
**Post date:** [November 15, 2018, 11:16pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/11 "2018-11-15T23:16:24Z")

</div>

ah thats interesting - thanks for the hint. going to try that. would be a pitty that I can’t keep the splines alive in case I want to change things or even want to generate some of them proceduraly.

---

<div class="post-metadata">

**Author:** ![That\_guy\_over\_there](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@That\_guy\_over\_there](https://forums.unrealengine.com/u/That_guy_over_there)\
**Post date:** [June 10, 2025, 10:31pm UTC](https://forums.unrealengine.com/t/distance-field-not-generating-on-specific-meshes/307279/12 "2025-06-10T22:31:29Z")

</div>

Hello necroing again here.

I have this screenshot.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/2/ee2a58df44c6d9f30b3b10e3cf04a67df8447fc5.jpeg)  
you can see here that distnace fields arent working on meshes that i got from fab. they are working fine on all the other meshes.

Note that the distnace fields do work on them when i use them in the material editor but not in the actual editor.

THis is a weird bug i did go look at all the settings and toggle most on and off but nothing resolved annything.

this is a weird problem and i whould like to fake ao.

:EDIT  
If i export the meshes and delete their attributes and import them again there is no issue.  
I will check all the atrributes until i find the culprit

:edit ok turns out that even though they don`t show up they do work but only if its inside another mesh
