[bugreport] Creeping shadows in light

Did you check your light map uvs (channel 1)? It looks like a uv error.

Lightmass is having trouble with edges. Calculations cause a shadow to appear even in direct lighting when using a sharp edge. I have found no way around this. Is there a way to disable lighting on a model so that I can bake the light & shadows in the 3d program instead? This is a very worrying effect, that I cannot work with.

UPDATE: When using preview quality I don’t see this. As noted in the image it becomes apparent with higher quality setting.

UPDATE #2: I decided to check the UV’s as recommended by Roel. And much to my surprise there is indeed something going on. I updated this post with the settings I use, and a image showing what UE4 use. They don’t match. Now to be clear, I adjusted the UV’s and reimported the model, but the UV still remains as they were in the beginning (I thought), but rather it is using the UV from the lightmap, and applies them to the textures too. The position of the UV’s in the texture layer isn’t the same as in the lightmap (they are offset there). I will check if adjusting the lightmap UV’s matter. But this does look interesting.

UPDATE #3: I aligned the UV’s so they are the same, but the leaking still happens. So UV’s don’t seem to have anything to do with it as far as I can tell :frowning: (Not happy)

UPDATE #4: Roel led me to the correct issue. The second UV channel had the size 32 instead of 64. Correcting this and connecting the edges solved the issue. Many thanks to Roel :slight_smile:

See here:

(EDIT: I had to remove these links as the pictures are now gone.)

I’ve got two UV channels. Both are the same if this is what you are thinking of? What error in particular?

Probably your light map resolution you can change it in the static mesh editor.

In your picture, it looks as if the UV mapping for the light map channel is not leaving enough margin for the right side, and also not for the top side for the topmost rectangles.
Also the lighting problem seems to be with the top face, not the side faces, so the faces you are showing in your pictures are not the ones with the problem, so we can’t tell whether there’s a problem on the top face.

Ohh, and another thing, try to make the edges connected in your uv’s, it will show no lightmap errors in places where the edges are connected.

Thanks a bunch Roel :slight_smile: That was exactly it. The second channel was set to 32 instead of 64 like the first one. And fixing the edges helped too.

@jwatte. Roel was correct. The second channel had a map setting too small. So even though both UV channels were identical when exported. After having imported them, the second channel became half the size of the first one. Fixing that solved the issue. And connecting the edges solved the last bit of weird shadowing as well.