# Lighting going through the walls

**URL:** <https://forums.unrealengine.com/t/lighting-going-through-the-walls/469412>\
**Category:** Rendering\
**Tags:** error, unreal-engine, lighting-problem, Rendering, UE4, question\
**Created:** [August 8, 2020, 5:11pm UTC](https://forums.unrealengine.com/t/lighting-going-through-the-walls/469412 "2020-08-08T17:11:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatheusMartin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MatheusMartin](https://forums.unrealengine.com/u/MatheusMartin)\
**Post date:** [August 8, 2020, 5:11pm UTC](https://forums.unrealengine.com/t/lighting-going-through-the-walls/469412/1 "2020-08-08T17:11:17Z")

</div>

Hello guys, I’m having this problem with my lighting, the light goes through the walls, I’ve tried to put a wall with black material so that the light doesn’t bounce or cross, but even so the light goes through.  
Does anyone know what can it be?

 ![309552-2020-08-05-15-13-24.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/8/fc87ad4bdabb67df5ec2472a15571f5da720b1d5.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 8, 2020, 5:49pm UTC](https://forums.unrealengine.com/t/lighting-going-through-the-walls/469412/2 "2020-08-08T17:49:55Z")

</div>

This problem occurs in various ways, I don’t know all the answers here, but:

1. Zero thickness meshes. Solution: give the mesh depth like it’s a real wall, double sided material wont help.

2. Static skylight, sometimes also static directional light. Solution: Try both on moveable.

3. Bad lightmap UVs. Take a look at the mesh(es) in the UE mesh editor, there should be material UVs on channel 1 and lightmap UVs on channel 2. The channel 2 UVs should not overlap or stray outside the box. Solution: UE can make pretty decent lightmaps from the material UVs, you just have to fiddle with the details panel to get that to happen ( tickbox ‘generate lightmap UVs’ ), there is also the scale of the UVs

4. Problems importing meshes from an external program. Solution: watch the official ( recent ) Epic vids on workflows from external products. Might be difficult to find but will absolutely be on the Epic youtube channel.

Any use?
