# Black rips and triangles in all static meshes after lighting build

**URL:** <https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317>\
**Category:** Rendering\
**Tags:** lighting-build, unreal-engine, bug-report, lighting-problem, Lighting, question\
**Created:** [October 18, 2017, 12:09pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317 "2017-10-18T12:09:02Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 12:09pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/1 "2017-10-18T12:09:02Z")

</div>

Hi there,  
I am having huge problems building lighting in UE4. I get artifacts all over the static meshes, they seem to be rips or black triangles. It doesn’t matter whether there is a texture on the model or not, they are there regardless.  
The models are all photogrammetry sourced but have had their lightmaps generated in UE4 at 2048 res. I have tried almost all iterations of the rebuild settings in the static mesh editor but cannot seem to get rid of the black triangles unless I go completely dynamic lighting which I would prefer not to do.  
Please help, as I am going nuts trying to figure this one out!

 ![217076-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/c/bdce8a2ed270bbc3872ff8ff38f71d263fe67c10.jpeg)

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [October 18, 2017, 12:28pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/2 "2017-10-18T12:28:05Z")

</div>

Commonly, it is caused by improper UV layout for lightmapping. Make sure your UV channel 1 contains a proper unwrap,without any overlaps.

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 12:41pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/3 "2017-10-18T12:41:53Z")

</div>

Hey,  
Thanks for the quick response. I am not getting any warnings about overlapping UVs in the editor and the UVs for the second channel (lightmap channel) were created via UE4 at 2048 with high precision everything. Would I expect issues still?

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [October 18, 2017, 1:49pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/4 "2017-10-18T13:49:10Z")

</div>

Normals of your Model Pointing the wrong direction?

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 1:51pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/5 "2017-10-18T13:51:41Z")

</div>

Thats interesting, I will look now. How is it best to see this? In unreal or modelling software? Also, how to change the direction if that is the answer?’

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [October 18, 2017, 2:25pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/6 "2017-10-18T14:25:45Z")

</div>

Best way is to look at them in your 3D modeling Application (google it up how to show them for your Application). Changing them is only possible inside a 3D Application. They should all face outwards so they are recognized as front faceing and not backfacing. Here some random google image as example: [http://help.autodesk.com/cloudhelp/2015/ENU/MayaLT/images/GUID-AA348888-CF07-4154-BCD2-D1CED0329B57.png](http://help.autodesk.com/cloudhelp/2015/ENU/MayaLT/images/GUID-AA348888-CF07-4154-BCD2-D1CED0329B57.png)

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 3:25pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/7 "2017-10-18T15:25:51Z")

</div>

Hi,  
Thanks for the suggestions so far. I have checked normals in Maya and all seems well or at least, nothing obvious wrong. i have conformed anyway and re-imported to UE4 but to no avail. Still the same problem. Am pulling my hair out!

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 3:26pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/8 "2017-10-18T15:26:46Z")

</div>

Hi,  
Thanks for the suggestions so far. I have checked normals in Maya and all seems well or at least, nothing obvious wrong. i have conformed anyway and re-imported to UE4 but to no avail. Still the same problem. Am pulling my hair out!

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [October 18, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/9 "2017-10-18T17:30:37Z")

</div>

Quite possible that more info is needed to help you. Post wireframe of your mesh, as well as shots of both UV layouts.

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 6:48pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/10 "2017-10-18T18:48:08Z")

</div>

Hey,  
Thanks for helping out on this. Below are some screen shot

 ![217106-uvm.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/c/e4c19851323b668027846821b81ca6b944cf499e.jpeg)

s of wireframes from Maya and UE4 plus the Texture UVs from Maya and the lightmap channel from UE4. The textures are 6 UDIM tiles of 8k each.

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [October 18, 2017, 7:15pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/11 "2017-10-18T19:15:23Z")

</div>

Thing is… that with such density of the mesh, certain effects might take place. The size of your triangles might actually approach limits of precision of UVs, so light mapping might regard some of them as having zero surface area. Whatever the underlying cause is, I would not expect to get any kind of correct light bake with that kind of mesh.

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 7:20pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/12 "2017-10-18T19:20:33Z")

</div>

so reduce further? The original was 140M, this one is 1.8M. What size is good to keep the triangle size above UV precision?

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [October 18, 2017, 7:48pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/13 "2017-10-18T19:48:11Z")

</div>

Here it is in the viewport after a lighting build:

 ![217109-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/a/1dacbbcfb62e003cb56eec654545a4e68ec4304f.jpeg)

and here in the Static Mesh editor with dynamic lights…

 ![217110-untitled-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/9/789acf620417575d2c5195a6a726a48e78011a86.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f26c856c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f26c856c1](https://forums.unrealengine.com/u/anonymous_user_f26c856c1)\
**Post date:** [November 8, 2017, 4:32pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/14 "2017-11-08T16:32:42Z")

</div>

Hi!

I’d say the padding is too low in your lightmap and you could get light/shadow bleeds…  
Also another idea: have you tried 2 sided material /if it’s a problem with normals maybe…/

Good luck! 🙂

---

<div class="post-metadata">

**Author:** ![Medusam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medusam](https://forums.unrealengine.com/u/Medusam)\
**Post date:** [November 8, 2017, 6:25pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/15 "2017-11-08T18:25:20Z")

</div>

Hey Makigirl,

Thanks for the help, both good ideas. Unfortunately it is still the same after the build. I have upped the lightmap resolution to 2048 in both the lightmass settings and the build settings as I believe that is the only way to change padding in UE4 generated lightmap UV’s? I also ticked the 2-sided material option for the material but still no luck. Any other suggestions would be very welcome.

---

<div class="post-metadata">

**Author:** ![ZaneJensen013](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZaneJensen013](https://forums.unrealengine.com/u/ZaneJensen013)\
**Post date:** [March 13, 2023, 9:23pm UTC](https://forums.unrealengine.com/t/black-rips-and-triangles-in-all-static-meshes-after-lighting-build/407317/16 "2023-03-13T21:23:09Z")

</div>

Hey I am having similar issues with a highly detailed mesh as well, using it along with Nanite. Did you ever happen to find a solution to this problem? or did you end up reducing the poly count?
