# \[bug\] Lightmap color continuity issue

**URL:** <https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586>\
**Category:** Rendering\
**Tags:** unreal-engine, color, Lightmap, question\
**Created:** [April 25, 2014, 10:53am UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586 "2014-04-25T10:53:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigzer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bigzer](https://forums.unrealengine.com/u/bigzer)\
**Post date:** [April 25, 2014, 10:53am UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/1 "2014-04-25T10:53:30Z")

</div>

Hi,

I’m noticing on various maps we made a discontinuity in lightmap color.

Please have a look at this; [http://puu.sh/8mIVv.jpg](http://puu.sh/8mIVv.jpg)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/7/4797fd3eeb0ede4317221dba17465bc6d0dffe79.jpeg)

Also here you can notice inside that the ceiling is very bright, it seems it’s catching light from outside and propagating it across the entire mesh; [http://puu.sh/8mKN4.jpg](http://puu.sh/8mKN4.jpg)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/5/6529791c55b76c8884dd7dace6933cf0a7f5734b.jpeg)

How do I fix this?

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 3, 2014, 10:45pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/2 "2014-06-03T22:45:12Z")

</div>

I am experiencing the exact same issue on my end as well. Any word on a fix for this?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [June 4, 2014, 4:12pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/3 "2014-06-04T16:12:24Z")

</div>

Hi HynoticShark,

Can you provide more information on what’s going on? Can you provide screen shots as well? Is it only caused by the directional light?

Thank you!

Tim

EDIT:  
If you’re able to make a small scene that can replicate the issue you can upload the project file here. That would allow me to look at the problem much quicker. Just provide the link here. Thanks!

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 5:11pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/4 "2014-06-04T17:11:36Z")

</div>

Sure thing Tim, will do that but i highly doubt the file is going to be smaller than 512kb. Do you know a site that is not blocked by your firewall where I could upload it?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [June 4, 2014, 5:29pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/5 "2014-06-04T17:29:50Z")

</div>

dropbox is a good free sight to do so.

Before you try that, Is the offending object that is having light cast through it a plane? I’ve been playing around with the lighting and if you have a plane with a only one side displaying the material, if there is a light behind that mesh it will not recognize it since there is no material for it reflect off of. You can adjust the settings in two places for this. In the mesh details panel you can select “Cast Shadow as Two Sided” or in the material editor properties you can check to have the material be “two sided.”

This may solve your issue. if it does please post back here for confirmation. If you’re still having the problem I’ll gladly see if there is something I can see in your project.

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 5:48pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/6 "2014-06-04T17:48:39Z")

</div>

Thanks Tim. No, the offending object is a box. What is happening is the indirect lighting (whether it be from a directional light, point light or spotlight) gets abruptly cut off and lighting does not look continuous. Visually, this looks exactly like the first image in this thread, where the bounce light from the sun is hitting the floor and gets abruptly cut off. The first 2 row of tile on the right seem fine (look orangish due to the bounce) but the ones in the middle are dark.

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 6:02pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/7 "2014-06-04T18:02:28Z")

</div>

also having another lightmass issue where the indirect lighting looks blocky. The lightmap resolution of each mesh is set to 512 which I think should be more than sufficient. In the image I have just used the cube shape that comes with the starter content and placed a spot light, changed the lightmap res of the cube to 512 and built lighting. I can understand that the indirect illumination isn’t going to have smooth gradients but I would expect that at the pixel level and not at the mesh level. Each “block” you see in the image is actually a copy of the cube mesh as shown by the selection

 ![7740-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c3f80741f70ab32937c3c4fe88ad8f8c367a451.jpeg)

edit: forgot to mention that the light is a static light. But the issue remains the same with a stationary light.

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 6:19pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/8 "2014-06-04T18:19:44Z")

</div>

> **[Lightin\_default.umap](https://www.dropbox.com/s/cu642gctkp3w84d/Lightin_default.umap)**
>
> Shared with Dropbox

I have included only the map above. To open the map properly, just create a blank project with starter content and you should be able to just open the map as it is not using any custom assets. The lightmap resolution for the mesh is overridden in the map file itself.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [June 4, 2014, 8:11pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/9 "2014-06-04T20:11:26Z")

</div>

Hi HypnoticShark,

After loading up the map and looking at the objects UVs it made more sense. I had to export the shape cube to confirm that the Lightmaps were not set up to be tileable/seamless. Essentially what is happening is that the edge is not on a grid point in the UV editor window of a 3D software. This will leave the shadow baked seam that is appearing.

If you take a look at the attached image you can find the ‘Wall\_400x300’ that is included with the starter content. This has been setup with correct tileable lightmaps in the 2nd uv channel. I used your same scene as a reference and placed these above the floor you had to demonstrate.

 ![7730-shadowseams.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/8/e18cf812296b8570f1c5f7780e5b3adcf1b5986f.jpeg)

**[This information provided on [WorldofLevelDesign.com](http://WorldofLevelDesign.com) will help you with your own assets.][2]**

If you have any other questions feel free to ask!

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 8:44pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/10 "2014-06-04T20:44:59Z")

</div>

Ah i see. I guess that would solve that problem but what if the mesh was more complicated? it would involve a lot more work to make everything sit on a grid point so it does not lie in between pixels. I am guessing there is no edge dialation present in the lightmaps and empty areas in the lightmap are just black. Could this be added as a feature than working around the issue by making sure verts sit on grid lines? It would save everyone a lot of work. This is what an edge dilated texture would look like [http://pmarjanski.weebly.com/uploads/1/4/2/4/14242102/5191797\_orig.jpg?0](http://pmarjanski.weebly.com/uploads/1/4/2/4/14242102/5191797_orig.jpg?0). Some more info on the same [http://wiki.polycount.com/EdgePadding](http://wiki.polycount.com/EdgePadding) There is a photoshop action at the bottom of the polycount page that performs the padding in photoshop using the alpha channel as a mask

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 8:55pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/11 "2014-06-04T20:55:22Z")

</div>

Also there appear to be seams at the back of your image, would it it be possible to provide the map file so that I can take a look at it locally? Thanks!

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [June 4, 2014, 8:59pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/12 "2014-06-04T20:59:58Z")

</div>

Realistically for a complicated mesh it shouldn’t be that much more complicated. The edges are where you want make sure you are on a grid point more than anywhere else. The reason being that if it’s in between a grid point it’s rendered black if it’s on a grid point white. If you want to have a good seamless lightmap for modular walls this is a good way to go about it.

Alternatively you could do what others (myself included) have done and use something that would sit on that seam as a separate mesh to hide the fact that it’s got the seam. The scifi hallway does this by having pipes sitting over seams on one wall that I noticed.

Tim

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 9:12pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/13 "2014-06-04T21:12:19Z")

</div>

Hello,

I used the wall 400x300 mesh and I am still having this issue. There are no seams where the mesh is affected by direct lighting which is great, but the indirect part is still blocky

 ![7746-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/4/f647f1957c21814d7309ffb0d0664a2f7741ed6c.jpeg)

---

<div class="post-metadata">

**Author:** ![HypnoticShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HypnoticShark](https://forums.unrealengine.com/u/HypnoticShark)\
**Post date:** [June 4, 2014, 9:25pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/14 "2014-06-04T21:25:04Z")

</div>

I understand, but it is still a lot more work when it can be solved by just padding the lightmap, I wouldn’t mind manually doing this if I were given access to the lightmap assets. It is a much faster fix than going through every tileable game asset and modifying uvs to make sure they sit on the grid points and then reimporting everything. That would solve the seam issue but in the image I provided, it doesn’t look like seams are the only issue, the whole scene is lit by a directional light and a skylight and if the uvs are set up right for the wall 400x300 mesh this issue should not be occurring. Each mesh looks like it has its own indirect color which appears to be a different problem

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [June 16, 2014, 9:23pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/15 "2014-06-16T21:23:05Z")

</div>

Hi HypnoticShark,

The issue is within Lightmass at the moment. It’s something that is known. The ultimate resolution for now would be a workaround to solve the issue. That would be to use other meshes to conceal seams or to only have modular assets seams be at wall corners.

I’m always interested in developing using Modularity with walls and proper lightmaps, so you as I get more information or discover things that will help I will post updates here for tips and advice. 🙂

Thanks for your patience!

Tim

---

<div class="post-metadata">

**Author:** ![Angel1000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angel1000/32/703030_2.png) [@Angel1000](https://forums.unrealengine.com/u/Angel1000)\
**Post date:** [July 19, 2014, 12:28am UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/16 "2014-07-19T00:28:12Z")

</div>

Hi

I had a similar issue in a environment I am creating (see [https://answers.unrealengine.com/questions/55062/lighting-issues.html](https://answers.unrealengine.com/questions/55062/lighting-issues.html))

I may have found a fix. (I’m using 4.3)

I came across this video [- YouTube](https://www.youtube.com/watch?v=Oni6TG2DXnk) and after following the steps this is what I got

 ![10637-01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/4/e74fd8e6d27f7075eaa048be47b71e07fc141030.jpeg)

---

<div class="post-metadata">

**Author:** ![Angel1000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angel1000/32/703030_2.png) [@Angel1000](https://forums.unrealengine.com/u/Angel1000)\
**Post date:** [July 19, 2014, 2:05pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/17 "2014-07-19T14:05:39Z")

</div>

Update:

It’s a little buggy in places (see images)

Red colour from other side of the wall bleeding through

 ![10665-02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/c/0bcea9a60f4f874dcb446f17e1c7e8fc07754916.jpeg)

Red colour being too bright (should be the same as the floor colour)

 ![10666-03.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/a/2ea2a5ccc25d90fc1aff0b77deebe86357fc2a19.jpeg)

Also some areas are still too dark, but I should be able to offset this with point lights and white textures are too bright.

I can either keep posting updates here or start a new thread?

---

<div class="post-metadata">

**Author:** ![bigzer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bigzer](https://forums.unrealengine.com/u/bigzer)\
**Post date:** [July 19, 2014, 5:23pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/18 "2014-07-19T17:23:53Z")

</div>

better keep here so Epic can get all the related info in one place. Hopefully they’ll change their mind and try to fix this earlyer.

---

<div class="post-metadata">

**Author:** ![Angel1000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angel1000/32/703030_2.png) [@Angel1000](https://forums.unrealengine.com/u/Angel1000)\
**Post date:** [July 19, 2014, 5:32pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/19 "2014-07-19T17:32:06Z")

</div>

Ok I’ll keep updating here, hopefully a Epic dev will see this and figure something out, all I can do is keep tweaking settings.

As I also get colour from the floor bouncing onto the ceiling.

So while it fixes the lightmap seems, I get other issues cropping up.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [July 21, 2014, 3:09pm UTC](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586/20 "2014-07-21T15:09:01Z")

</div>

This is not a fix for the problem because they are handled differently. LPV’s use dynamic lighting, thus you are not seeing the baked lighting edge seams in the previous posts.

Keep in mind that LPV is still an experimental feature that is being developed. It is known to have issues that will be addressed when the feature moves to a ship-ready feature.

Thank you!

Tim

[Next page](https://forums.unrealengine.com/t/bug-lightmap-color-continuity-issue/281586.md?page=2)
