# Weird lighting bug

**URL:** <https://forums.unrealengine.com/t/weird-lighting-bug/48252>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [November 23, 2015, 8:13pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252 "2015-11-23T20:13:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mago314](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mago314](https://forums.unrealengine.com/u/mago314)\
**Post date:** [November 23, 2015, 8:13pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252/1 "2015-11-23T20:13:41Z")

</div>

Hello. I’m working with the ‘RealisticRendering’ scene, and, after importing a custom mesh, I’m running into a very weird bug:

Here’s the first version of the mesh:

 ![HighresScreenshot00000.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/7/c73edc21b3347df8e156e575d0192d3ad6745980.png)

As you can see, there is a weird color in the center. However, just by deleting a few vertices in blender:

 ![HighresScreenshot00001.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/0/303734ac24c15f820c8372bc935612720a51cb9a.png)

It looks waay better. Lighting has been built in both cases, and the materials are simple colors. Any ideas on how can I get the first mesh to work, or what is causing the bug?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2a80c1f4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2a80c1f4](https://forums.unrealengine.com/u/anonymous_user_2a80c1f4)\
**Post date:** [November 23, 2015, 9:20pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252/2 "2015-11-23T21:20:10Z")

</div>

I don’t think it’s a bug. Bad modeling might lead into bad result.

---

<div class="post-metadata">

**Author:** ![James\_Gallagher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@James\_Gallagher](https://forums.unrealengine.com/u/James_Gallagher)\
**Post date:** [November 23, 2015, 9:30pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252/3 "2015-11-23T21:30:15Z")

</div>

Can you show us your model and the UV maps? That’ll give a good idea of what’s happening.

---

<div class="post-metadata">

**Author:** ![mago314](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mago314](https://forums.unrealengine.com/u/mago314)\
**Post date:** [November 24, 2015, 3:31pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252/4 "2015-11-24T15:31:34Z")

</div>

Here are the FBX:

> **[MEGA](https://mega.nz/#!y5lWXDJL!_gkrX1ROs0-qsaNsvBuggS5tXMB6t7yB1P0RJBzfAcU)**
>
> MEGA provides free cloud storage with convenient and powerful always-on privacy. Claim your free 20GB now

> **[MEGA](https://mega.nz/#!y1cGRapR!xxVfSYye42MWzpcixYv2lULTpg137u4vEvAPOtW8UeM)**
>
> MEGA provides free cloud storage with convenient and powerful always-on privacy. Claim your free 20GB now

And the UVs:

Not working mesh:

 ![Armchair_NotWorking.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f5b605577601d7f2eabf298e52afeff5e8799841.png)

Working mesh:

 ![Armchair_NotWorking.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/e/a0e51470ea11e9f19e30f16a01df619236efc5ed.png)

ad2mesh, looks like you have some ideas in how could I improve the models. Could you please share them?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2a80c1f4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2a80c1f4](https://forums.unrealengine.com/u/anonymous_user_2a80c1f4)\
**Post date:** [November 24, 2015, 4:43pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252/5 "2015-11-24T16:43:52Z")

</div>

you export your fbx without smoothing group obviously when Import UE4 its pop up a warning!

 ![e666f157067f62bd820be5fca7e2ebb2f8465f54.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/6/e666f157067f62bd820be5fca7e2ebb2f8465f54.jpeg)  
here a link u can read staticmesh pipeline:

> **[FBX Static Mesh Pipeline](https://docs.unrealengine.com/5.2/en-US/fbx-static-mesh-pipeline-in-unreal-engine/)**
>
> Setting up, exporting, and importing Static Meshes using the FBX content pipeline.

---

<div class="post-metadata">

**Author:** ![mago314](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mago314](https://forums.unrealengine.com/u/mago314)\
**Post date:** [November 24, 2015, 7:06pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252/6 "2015-11-24T19:06:21Z")

</div>

Thank you very much! 😃 I thought that it wasn’t necessary as all of the meshes faces are flat. It still had some minor artifacts, but they disappeared by increasing the lightmass resolution.

Still, even if it looks good, it looks rounded. I’ve tried setting different export/import options and messing with the mesh in my 3d application, but looks like I can’t get the faces to look perfectly flat and perpendicular. Anyone has experienced this issue?

---

<div class="post-metadata">

**Author:** ![tupikp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tupikp](https://forums.unrealengine.com/u/tupikp)\
**Post date:** [November 24, 2015, 7:36pm UTC](https://forums.unrealengine.com/t/weird-lighting-bug/48252/7 "2015-11-24T19:36:44Z")

</div>

If it looks rounded, then you are using just one smoothing group. Try to use multiple smoothing group, AutoSmoothing in Max, to get flat and perpendicular look.
