Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Shadow breaks in hard edges [Lightmap]

Hi all. I have weird problem which can't fix and do not understand why is this happening? Problem is, baked shadow flow (Do not know how to say properly in english) breaks in hard edge.

This is size of mesh for better understanding Lightmap resolution.alt text

Lightmap res. is 512 which I think is high for this mesh. But even with 1024 lightmap this issue still visible.

This is issue I get.alt textGreen line show how the shadows breaks in edges. There is no any gap between those edges and all connected properly.

1.Some edges are not snapped griid but I tried with snapping too and get same result. 2.I connected that edges in lightmap for smooth transition (which I think is not right decision because light illuminate them from different angle) and shadows still breaks same way.

And this is Lightmap with 64x64 greed in UVlayout.alt textGreen pieces are same area where I see problems. As you see there is enough padding (min 2 and max 5) with 64x64 map. And I increased this to 512x512 in my picture so I think this is not problem of that.

My Lightmass setting under world setting tab:alt text

alt text

Product Version: UE 4.10
size of mesh.jpg (223.6 kB)
shadow breaking.jpg (319.1 kB)
lightmap uv.jpg (548.7 kB)
please help.jpg (263.0 kB)
more ▼

asked Nov 22 '15 at 08:52 PM in Rendering

avatar image

17 2 3 6

avatar image Logan Bailey ♦♦ STAFF Nov 23 '15 at 08:22 PM

Hello Tural,

There are a few things you can do to increase the resolution of your Shadows. You explained that you have set up your Light Maps properly and increased the resolution within UE4. I have a few questions for you that should help you with your issue.

  1. If you set your lights to stationary or movable does this issue still happen?

  2. If you are using Cascaded Shadow Maps what is your Dynamic Shadow Distance StationaryLight and Num of Dynamic Shadow Cascades set to?

  3. Have you set your Lighting quality to build at production?

After I have this information I should be able to narrow down what is causing this and work towards a solution.


avatar image Tural Nov 23 '15 at 09:29 PM

Hello and THX for reply.

  1. When I set directional light to dynamic the issue is not happening. Same as with stationar light without bake.Here is picture.alt text As you can see shadows is straight lined perfectly in hard edge. I baked light in 4.8 build but still get same weird shadow.

  2. I didn't changed anything in dynamic lighting setting. I didn't use dynamic light for this scene. All are default setting.

  3. Yes. Quality is production.

dynamic light.jpg (338.2 kB)
avatar image Tural Nov 24 '15 at 11:55 AM

Oh Logan, when you yesterday wrote me that was 2 oclock evening in my country so I understood your 2nd question wrong. I checked it again today with fresh brain and Dynamic Shadow Distance StationaryLight solved my problem. THX :)

So what I understand there is no way to make baked shadow look more accurate with just default setting not matter how is my lightmap uv and res set up. Or is there something still I missed?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You are correct in your assumption that there are limits to the accuracy of your baked shadows. I will link you to a troubleshooting guide for lighting and documentation on lighting and shadows for any further questions you may have.




more ▼

answered Nov 24 '15 at 02:29 PM

avatar image Tural Nov 24 '15 at 04:02 PM

THX you again. )))

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question