# Ligting and lightmaps going for a toss in mobile preview

**URL:** <https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [March 29, 2015, 6:14am UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769 "2015-03-29T06:14:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdhananjay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdhananjay](https://forums.unrealengine.com/u/mdhananjay)\
**Post date:** [March 29, 2015, 6:14am UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/1 "2015-03-29T06:14:42Z")

</div>

Hey guys,

I am using Unreal 4.7.3 and I am facing a weird issue when I am previewing my level in Mobile Previewer or on the Mobile Platform.  
But first, a couple of screenshots:

 ![HighresScreenshot00000.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/0/90de6a0eb161c5a999e901731823b2bcc69aa6e3.png)  
This is the level when I am viewing it using the SM 5.0 previewer in the editor.

 ![HighresScreenshot00001.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/1/3116c38c44ba257126b02d7283e2c4beaf9ea67c.png)  
And this is the level when I preview it in the Mobile Preview and on the Device (Samsung Galaxy Note4 + GearVR)

Now my first, obvious question is what the hell? Why am I getting this discrepancy in the output?

My second question is a little more involved. Again, two more screenshots for your benefit:

 ![HighresScreenshot00002.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/1/a10ae00cd120576272c8ffa4428c283394d8fe8f.png)  
SM5.0

 ![HighresScreenshot00003.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/4/14263b4373fbdba8ac6962a7a36fb9e7d823252f.png)  
Mobile Preview + Device

If you look closely at the ES 2.0 image, you will find a lot of “banding” happening in the lightmap, giving the overall impression that this is a really low resolution thing. How do I get rid of this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fb8e1974](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fb8e1974](https://forums.unrealengine.com/u/anonymous_user_fb8e1974)\
**Post date:** [March 29, 2015, 8:12pm UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/2 "2015-03-29T20:12:29Z")

</div>

I think much of this is fixed if you’re using GL ES 3.0 (feature set should be similar to DX3D 11). Problem is, I think you need to build the actual source from GitHub to use it (in addition to the extension pack for Android as well), which I don’t know how to do (nor have the data bandwidth to spare).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d7940737](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d7940737](https://forums.unrealengine.com/u/anonymous_user_d7940737)\
**Post date:** [March 30, 2015, 3:48pm UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/3 "2015-03-30T15:48:49Z")

</div>

Hi mdhananjay,

Have you checked the[Mobile Development Guidelines](https://docs.unrealengine.com/latest/INT/Platforms/Mobile/index.html) to make sure you’re not using any assets, lights or post processing effects that will not perform well on mobile? It might have some useful info, if you have not.

---

<div class="post-metadata">

**Author:** ![mdhananjay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdhananjay](https://forums.unrealengine.com/u/mdhananjay)\
**Post date:** [March 31, 2015, 6:15am UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/4 "2015-03-31T06:15:41Z")

</div>

Hi wittlief,

I have checked that thread, and in fact I have followed all of the settings from the Mobile Temple example you guys have provided, and am pretty much stumped at this point. All my lights are static, I have no post process effects on, in fact I don’t even have a Post Process Volume in there.

Plus, I have made sure that TemporalAA is off in the project rendering settings.

Any clue?

Hey Zodiark,

Thanks for chiming in; my problem is that I need this to work on the gearvr and I’m not too sure how well the GL ES 3.0 will play with that…

---

<div class="post-metadata">

**Author:** ![mdhananjay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdhananjay](https://forums.unrealengine.com/u/mdhananjay)\
**Post date:** [April 6, 2015, 6:13am UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/5 "2015-04-06T06:13:04Z")

</div>

Awwwww yisssssss! Found out what the problem was. I had put in a Skylight actor and had forgotten to turn it to Static instead of stationary. That solved the colour difference problem. But the “blockiness” or pixelation of the Lightmaps is still an issue.

---

<div class="post-metadata">

**Author:** ![mdhananjay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdhananjay](https://forums.unrealengine.com/u/mdhananjay)\
**Post date:** [April 6, 2015, 11:26am UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/6 "2015-04-06T11:26:04Z")

</div>

Ok so, now we come to the other issue, which is the strange “blockiness” of the lightmaps. Surprise, surprise, they are compression artifacts. On investigating further, I turned off Lightmap Compression, and voila! Clean lightmaps everywhere. But the consequence was that my project size exploded four times, which in their defense, Epic states will happen. And apparently I am not the only one with this problem; this [dude](https://answers.unrealengine.com/questions/117045/selective-compression-of-lightmaps.html) was/is also facing the same problem.

Any advice here? Is there some way to set the compression quality of the textures to a higher setting, especially for lightmaps?

---

<div class="post-metadata">

**Author:** ![mdhananjay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdhananjay](https://forums.unrealengine.com/u/mdhananjay)\
**Post date:** [April 7, 2015, 10:02am UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/7 "2015-04-07T10:02:04Z")

</div>

To anyone following this thread:

Okay, so I found some more clues to point me in the right direction: Modular assets. Apparently large surfaces with uniform shading tend to have compression artifacts displaying prominently in their lightmaps. Lightmaps may have those artifacts in general, but when you have some sort of a pattern going on, it tends to cover the compression artifacts. I found an excellent resource about this whole issue over [here](http://worldofleveldesign.com/categories/udk/udk-lightmaps-03-how-to-fix-light-shadow-lightmap-bleeds-and-seams.php).

---

<div class="post-metadata">

**Author:** ![Grafix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grafix](https://forums.unrealengine.com/u/Grafix)\
**Post date:** [June 28, 2022, 1:21pm UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/8 "2022-06-28T13:21:41Z")

</div>

I´m having the exact same problem. What fixed it for me was setting “Visualize Ambient Occlusion” to TRUE in the World Settings. After that the lightmaps look very sharp and crisp without any splotches at all.  
I really don´t know why this is happening and why this boolean does fix it but for me it worked. I don´t know how it will look after building the app honestly, but this is something i´ll see by the end of the week^^

---

<div class="post-metadata">

**Author:** ![Grafix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grafix](https://forums.unrealengine.com/u/Grafix)\
**Post date:** [June 28, 2022, 1:38pm UTC](https://forums.unrealengine.com/t/ligting-and-lightmaps-going-for-a-toss-in-mobile-preview/25769/9 "2022-06-28T13:38:14Z")

</div>

Hm… but i think it is getting rid of Global Illumination when doing that. Shadows are way better but the overall warmth of the image is missing then.  
I will further investigat and let you know if i am finding something that works.  
It seems a bit bugged from unreals side though…
