# Lighting gets messed up after build

**URL:** <https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [March 30, 2017, 4:33am UTC](https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844 "2017-03-30T04:33:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlentoTheMan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlentoTheMan](https://forums.unrealengine.com/u/PlentoTheMan)\
**Post date:** [March 30, 2017, 4:33am UTC](https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844/1 "2017-03-30T04:33:52Z")

</div>

Hey guys, I’ve been developing a game for a bit now and have decided its time to at least think about the lighting. I can position a directional light in a spot that looks good but as soon as I build the lighting, It goes to \*\*\*\*. It also seems that some of the meshes are not blocking light like their supposed to. I haven’t done anything with lighting in unreal so this is new. Any tips would be appreciated 🙂  
 ![44121256097cae045823ee9f227e8a70fd4b62d0.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)  
 ![459440720956c8462fdf3ee7311c252d3b1d3414.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [March 30, 2017, 5:16am UTC](https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844/2 "2017-03-30T05:16:13Z")

</div>

Make sure you have high enough light map resolution, closed off meshes, and non-overlapping UVs.

---

<div class="post-metadata">

**Author:** ![PlentoTheMan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlentoTheMan](https://forums.unrealengine.com/u/PlentoTheMan)\
**Post date:** [March 30, 2017, 7:05pm UTC](https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844/3 "2017-03-30T19:05:21Z")

</div>

Lightmaps could be it, Im sure theres meshes that need to be closed off. Im still not sure why It would completely screw it up after the build when it looked moderately ok before it.

---

<div class="post-metadata">

**Author:** ![Goldenvale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goldenvale](https://forums.unrealengine.com/u/Goldenvale)\
**Post date:** [March 30, 2017, 7:26pm UTC](https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844/4 "2017-03-30T19:26:41Z")

</div>

Is your directional light set to static? Try setting it to stationary and changing “Dynamic Shadow Distance” to 4000. Also, you should consider adding a skylight.

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [March 30, 2017, 8:02pm UTC](https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844/5 "2017-03-30T20:02:20Z")

</div>

The primary issue is that the lightmap resolution is too low, which causes the shadows to look blobby like it does there–default resolution is 64 pixels which is often too low.  
After you increase the resolution it might show other issues though.

---

<div class="post-metadata">

**Author:** ![PlentoTheMan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlentoTheMan](https://forums.unrealengine.com/u/PlentoTheMan)\
**Post date:** [March 31, 2017, 5:29am UTC](https://forums.unrealengine.com/t/lighting-gets-messed-up-after-build/88844/6 "2017-03-31T05:29:40Z")

</div>

Thanks for the reply’s, I will update the thread as soon as I try all of your suggestions.
