# Distance field shadows looks weird on specific meshes

**URL:** <https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209>\
**Category:** Rendering\
**Tags:** lightning, UE4-9, unreal-engine, Rendering, question\
**Created:** [October 4, 2015, 9:11am UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209 "2015-10-04T09:11:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MassiveKrull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MassiveKrull](https://forums.unrealengine.com/u/MassiveKrull)\
**Post date:** [October 4, 2015, 9:11am UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209/1 "2015-10-04T09:11:24Z")

</div>

Using the FirstPersonTemplate and the skysphere’s directional light. The images shows before checking “Distance field shadows” and after. Is this a lightmap problem? What am i doing wrong?

 ![61285-afterbox.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/0/0f0d06d3713a7dd4541e0a50958959854d0068b7.jpeg)

 ![61286-before.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/6/426809b6b7213b67bec0ccce27f4407b8686e94f.jpeg)

 ![61288-after2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/0/370a865bc65c276cfc5269e1a8dd8449d59ac771.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ff2522f3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ff2522f3](https://forums.unrealengine.com/u/anonymous_user_ff2522f3)\
**Post date:** [October 4, 2015, 2:37pm UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209/2 "2015-10-04T14:37:51Z")

</div>

dont use stationary lighting for the small object or increase the lightmap resolution.

hope this helps you :).

---

<div class="post-metadata">

**Author:** ![MassiveKrull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MassiveKrull](https://forums.unrealengine.com/u/MassiveKrull)\
**Post date:** [October 4, 2015, 10:33pm UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209/3 "2015-10-04T22:33:01Z")

</div>

The mesh is already set to ‘movable’ for testing purposes, if that is what you mean by stationary lightning for the object. Increasing the lightmap resolution gave me no better results. Here’s a pic of my lightmap if it can help solving this issue. Thanks.

 ![61351-lightmap.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/1/b41ee675c285f975a8ccc0ac2d3c43f173dfcb67.jpeg)

 ![61352-lightmap2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/5/8654c77675472b4a21cc2e5bb5db697a5a78be22.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ff2522f3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ff2522f3](https://forums.unrealengine.com/u/anonymous_user_ff2522f3)\
**Post date:** [October 5, 2015, 8:36am UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209/4 "2015-10-05T08:36:52Z")

</div>

the shader isnt compiled in the 2 and 3 image you have to wait for the shader to compile

---

<div class="post-metadata">

**Author:** ![MassiveKrull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MassiveKrull](https://forums.unrealengine.com/u/MassiveKrull)\
**Post date:** [October 6, 2015, 4:20am UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209/5 "2015-10-06T04:20:20Z")

</div>

Are you sure? Built lightning several times and messed with this for hours.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ff2522f3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ff2522f3](https://forums.unrealengine.com/u/anonymous_user_ff2522f3)\
**Post date:** [October 6, 2015, 11:52am UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209/6 "2015-10-06T11:52:37Z")

</div>

try to delete the object and to reimport it in the scene

---

<div class="post-metadata">

**Author:** ![MassiveKrull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MassiveKrull](https://forums.unrealengine.com/u/MassiveKrull)\
**Post date:** [April 2, 2018, 8:20pm UTC](https://forums.unrealengine.com/t/distance-field-shadows-looks-weird-on-specific-meshes/334209/7 "2018-04-02T20:20:01Z")

</div>

I tried that too, I gave up on getting it perfect. I believe it has to do with the engine itself. Thank you for trying to help anyways!

Think it’s time to move on with this so I’m marking this as answered.
