# Some HLODs turn black as their lightmap rather then have any lighting

**URL:** <https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877>\
**Category:** Rendering\
**Tags:** unreal-engine, bug-report, Lightmap, question\
**Created:** [August 31, 2016, 1:39pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877 "2016-08-31T13:39:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [August 31, 2016, 1:39pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/1 "2016-08-31T13:39:22Z")

</div>

Some HLODs turn black as their lightmap rather then have any lighting. Any ideas ?

---

<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:** [August 31, 2016, 2:04pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/2 "2016-08-31T14:04:33Z")

</div>

For something like this, it would be helpful to see the lightmap for the proxy mesh that is generated. Likely has bad UVs from overlapping geometry that didn’t have a good UV layout conducive to the auto-generated method before hand.

If it’s only happening with custom content try correcting the UVs and then regenerating the proxy mesh.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [August 31, 2016, 2:53pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/3 "2016-08-31T14:53:43Z")

</div>

the geometry is a bunch of flat walls… not much that can be done there in terms of uv layout. Its pretty basic 1 to 1 kinda thing. I will look up the mesh in a sec to see if unreal broke the uvs.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [August 31, 2016, 2:58pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/4 "2016-08-31T14:58:09Z")

</div>

Hey Tim,

After looking at the created meshes by unreal… it seems it created 2 extra uv sets for a total of 3 uv sets… uvset 0 ,1 ,2… uv set 1 looks like the appropriate one to use, but uv set 2 was the one that was using which had a lot of overlapping geometry. Any idea? i mean i can manually set it to 1, but its kind of a pain if i have to do that every time.

---

<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:** [August 31, 2016, 3:24pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/5 "2016-08-31T15:24:29Z")

</div>

Are these walls just a single plane or boxed geometry? I can give it a test with the template floor or the editor plane since these are set up how I would expect for normal UV layouts. I’m curious if it’s having issues knowing whether to create the UV when one is already there so it makes the third one and mistakenly assigns that one. Seems wonky if that’s case, though.

Thanks for the quick response!

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [August 31, 2016, 3:30pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/6 "2016-08-31T15:30:16Z")

</div>

its actually a very large hlod with like 40 models… all sorts of stuff in there i guess… I didnt expect it to be that large, but still that shouldnt matter… its kind of the point of the system… hell the mesh has like 40 materials on it, but its just a big combo of stuff. And as i said… uv 1 looks correct for a light map as u would it expect it to look… its just using uv 2 by default in the generated mesh settings.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [August 31, 2016, 3:32pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/7 "2016-08-31T15:32:32Z")

</div>

Also already checked the HLOD settings… target lightmap channel is already set to 1 in there… so it should not be using 2 by default… Like 3 different levels of HLOD all with own distance and size settings.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 5, 2016, 1:26am UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/8 "2016-09-05T01:26:59Z")

</div>

Hey Tim, Some more info… im messing around with my project in 4.13 now and im looking at some of these HLODs… for instance… 1 only has UV 0… which is obviously the textured assets uvs and they all overlap since they are combined… it never generated a uv 1 for a lightmap even though the settings are telling it to do that…

Another group created a uvset 0, 1 ,2 ,3 for some reason… and uses uvset 3… The uv set looks fine, but the lighting looks black regaurdless… doesnt make much sense…

This HLOD “system” has had problems since day 1. like 50 freakn problems …

---

<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:** [September 6, 2016, 9:28pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/9 "2016-09-06T21:28:21Z")

</div>

Hey,

I’ve submitted the ticket for this one to be investigated. It looks like a regression in behavior between 4.12.5 and 4.13. 4.12 would correctly assign the target lightmap coordinate where as now it’s not, and also another issue was if I already had a setup UV for the lightmap there would only be a single UV when I merged the two.

Eitherway, the issue can be tracked here if you need it: [Unreal Engine Issues and Bug Tracker (UE-35639)](https://issues.unrealengine.com/issue/UE-35639)

Thanks for reporting the issue.

Tim

---

<div class="post-metadata">

**Author:** ![OwenWP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OwenWP](https://forums.unrealengine.com/u/OwenWP)\
**Post date:** [February 8, 2017, 10:09pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/10 "2017-02-08T22:09:32Z")

</div>

This appears to have regressed again in 4.14 (happening to me in 4.14.3), all HLOD meshes come out with the lightmap index set to 0.

---

<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:** [February 13, 2017, 4:13pm UTC](https://forums.unrealengine.com/t/some-hlods-turn-black-as-their-lightmap-rather-then-have-any-lighting/368877/11 "2017-02-13T16:13:28Z")

</div>

@OwenWP

When I check this using the repro steps I had listed in 4.14.3 and in our latest 4.15 preview everything works as I would expect and the correct Lightmap UV is assigned. If you’re having an issue and you have steps that can reliably reproduce it, please post a new ticket in Bug Reports and we’ll have a look.

You may also want to try 4.15 when that releases later this week to see if the issue still persists for you.
