# Lightmap artifacts on large mesh

**URL:** <https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587>\
**Category:** Rendering\
**Tags:** artifacts, unreal-engine, Lightmap, question\
**Created:** [October 8, 2014, 12:18pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587 "2014-10-08T12:18:34Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 8, 2014, 12:18pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/1 "2014-10-08T12:18:34Z")

</div>

I am woking with UE4 for a few days now, have been reading a lot of documentation and watched all the videos I could find, but still struggling with one thing … light maps.

First of all I only want to do archviz work so no game stuff whatsoever.  
probably no need for Blueprints just some moving camera shots.  
My meshes come from Lightwave, I apply UV texture coord as well as lightmap UV in Lightwave.  
The only method I know and use in Lightwave for creating a lightmap is called atlas mapping and is automated.

However because lightmap UV should be within 0-1 range for larg(er) meshes the resolution will soon get to small, for small meshes I don’t have a problem but my main building keeps getting ugly splotches and artifacts along the seams of the inner walls. I tried things like upping lightm][1]ap resolution for the building mesh (even up to 2048!) or splitting things up in smaller meshes (which isn’t very convenient) but even then I can’t seem to get clean lighting solution.

How to get nice clean lighting?

 ![ScreenShot050.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/4/6454f9ad95f537d0efebc35827b6abe4c2357b1f.jpeg)

 ![ScreenShot038.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/9/3950b838c95d001f9d3a2ea818dabdc564ae6152.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 23, 2014, 7:32am UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/2 "2014-10-23T07:32:13Z")

</div>

Well if no one can answer my question or give any directions I am afraid I will have to cancel my subscription.  
No use for software I get stuck with.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7dbf6780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7dbf6780](https://forums.unrealengine.com/u/anonymous_user_7dbf6780)\
**Post date:** [October 23, 2014, 7:34pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/3 "2014-10-23T19:34:23Z")

</div>

Was lightmap generated by engine? Also I’m not sure, that 2048 is enough for so huge mesh. Also splitting meshes to modular pieces and setting lightmap resolution for every piece to something about 128 should work fine, lighting also should be builded in the production quality.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 24, 2014, 7:13am UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/4 "2014-10-24T07:13:33Z")

</div>

Lightmap was generated in Lightwave. I haven’t tried higher Lightmap resolution as I understand that 2048 is already out of range (normally).  
I tried splitting my building into smaller parts but that didn’t work.  
Lighting build in production quality also contained artifacts.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7dbf6780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7dbf6780](https://forums.unrealengine.com/u/anonymous_user_7dbf6780)\
**Post date:** [October 24, 2014, 7:18am UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/5 "2014-10-24T07:18:36Z")

</div>

Can you show your lightmap UV or attach your mesh? You can try also [Distance Field Soft Shadows in Unreal Engine | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/latest/INT/Engine/Rendering/LightingAndShadows/RayTracedDistanceFieldShadowing/index.html) if you don’t like lightmapping.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 24, 2014, 7:52am UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/6 "2014-10-24T07:52:37Z")

</div>

Thanks gonna give that a try and upload my mesh/lightmap UV

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 24, 2014, 7:53am UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/7 "2014-10-24T07:53:34Z")

</div>

![18849-screenshot061.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/3/c139de6d83dfdafba8c84a5666aacdf25fc91b1d.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 24, 2014, 7:55am UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/8 "2014-10-24T07:55:17Z")

</div>

link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7dbf6780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7dbf6780](https://forums.unrealengine.com/u/anonymous_user_7dbf6780)\
**Post date:** [October 24, 2014, 1:35pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/9 "2014-10-24T13:35:55Z")

</div>

Well, I have the same issue, with properly unwrapped UV(even realistic rendering example in marketplace has issues like yours, you can easily check it), however dynamic GI solution, which I mentioned above, gives me acceptable results, just give it a shot.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 24, 2014, 2:43pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/10 "2014-10-24T14:43:38Z")

</div>

Thank, quite busy right now but surely gonna give it a try!

---

<div class="post-metadata">

**Author:** ![Chris.R](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chris.r/32/479920_2.png) [@Chris.R](https://forums.unrealengine.com/u/Chris.R)\
**Post date:** [October 24, 2014, 3:26pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/11 "2014-10-24T15:26:19Z")

</div>

Lightmapping is tricky business but when done right it gives you remarkably good results. First rule to follow is pretty simple, NEVER autogenerate your lightmap! When building lightmaps you need to separate every piece that is facing in a different direction, otherwise you get mad light bleeding. **Also keep in mind to leave at least 4px space between each uv shell to avoid artifacts.** Which i think is the case with your lightmaps, there is just noc room between the shells. I don’t know if lightwave has a similar option but in maya you can pack your uv’s with a mapsize of 64px which pretty much ensures that you have enough room between the shells.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 24, 2014, 3:44pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/12 "2014-10-24T15:44:56Z")

</div>

Hmmm the point is I would like to do some archviz work (after seeing stuff done by Koola) but if that means spending hours getting my Lightmap UV’s right that would definitely be a dealbreaker. Quick (and dirty) way in Lightwave is using atlas mapping (generating result as shown above). In fact I don’t know how I would have to create Lightmap UIV’s otherwise. By hand would be very tedious and time consuming.  
Having a 4px space would still mean that map size for smaller wall parts would be far too small?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7dbf6780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7dbf6780](https://forums.unrealengine.com/u/anonymous_user_7dbf6780)\
**Post date:** [October 24, 2014, 4:09pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/13 "2014-10-24T16:09:49Z")

</div>

You’ll get the same issue even with correctly unwrapped lightmap. Lightmass just doesn’t work as it should in some cases. I saw fully correct lighting only when scene doesn’t have dark places. Many examples in the marketplace have problems with shadows.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6f55213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6f55213](https://forums.unrealengine.com/u/anonymous_user_d6f55213)\
**Post date:** [October 31, 2014, 9:26am UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/14 "2014-10-31T09:26:39Z")

</div>

Normal lightmapping even when creating a decent lightmap doesn’t give me anywhere near results.  
So tried the Ray Traced Distance Field Soft Shadows technique but can’t seem to find the required settings. Anyone shed some light?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7dbf6780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7dbf6780](https://forums.unrealengine.com/u/anonymous_user_7dbf6780)\
**Post date:** [November 1, 2014, 4:24pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/15 "2014-11-01T16:24:48Z")

</div>

Firstly, use this tutorial [Lighting the Environment in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Engine/Rendering/LightingAndShadows/LightPropagationVolumes/index.html)  
, then set CSM distance to zero, then follow ray traced shadows tutorial, and you’ll be ok. Also, according with your screenshots, you’re using old version of unreal engine, you have to download 4.5.1

---

<div class="post-metadata">

**Author:** ![TudorG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TudorG](https://forums.unrealengine.com/u/TudorG)\
**Post date:** [November 1, 2014, 5:49pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/16 "2014-11-01T17:49:55Z")

</div>

I had the same problem, check this out [https://answers.unrealengine.com/questions/107324/static-lighting-level-scale-setting-low-values-cre.html](https://answers.unrealengine.com/questions/107324/static-lighting-level-scale-setting-low-values-cre.html)  
Also doing archviz.

---

<div class="post-metadata">

**Author:** ![fanzypantz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fanzypantz](https://forums.unrealengine.com/u/fanzypantz)\
**Post date:** [January 16, 2015, 1:09pm UTC](https://forums.unrealengine.com/t/lightmap-artifacts-on-large-mesh/295587/17 "2015-01-16T13:09:41Z")

</div>

I know this a long time ago, but if you haven’t figured out yet … Just cut the mesh up in pieces. Generally large meshes needs way larger lighmap resolutions. Don’t keep the entire house as one mesh, cut all the walls up in smaller pieces, cut all the roofs and floors into pieces. But keep the pivot point the same so you can more easily place them.
