Unable to bake proper shadows

Greetings. I’m trying to learn unreal engine for the last week and i have a problem with my shadows.

I am trying to bake them but for some reason they look very bad. I tried with my light source as static or stationary but both look bad. Using dynamic shadows with movable light source looks good, I have a proper lighmap uv setup and no overlapping uvs. My scene is just a terrain, a house and one light source for now.

First screen is using static, second stationary and last one is my lightmap settings of the model. Thanks for your help in advance!

Hey los_re,

Your UVs are being generated by UE4 itself and you Min Lightmap Resolution is still set to 64. Try setting that at 512 as well and apply it with the build button. This will get you way more accurate padding for your lightmap UVs.

I pushed the resolution to 1024 and tried again. Things are much better, but still a bit off though. Note that these screens are with production (highest) detail shadows. Do you think the problem is just limited uv space? UVs in second channel made by me with better density will have better results maybe?

Btw what is the difference between min lightmap resolution and light map resolution? Should i put the resolution that i want in both fields? Thanks again!

Alright, i think i understand the problem. Do i do the splitting in my modeling application and making my own uvs in new channel or is there an option i can use inside unreal in the auto generating uvs?

My problem is that my mesh is already split (roof, walls, etc) but when i import it in unreal the lightmaps uvs get combined. Do i have to untick the “Combine Meshes” in the import in order to use multiple lightmaps uvs? I hope the above makes sense to you. Unfortunately english is not my native language. Thanks again.

Min Lightmap Resolution is the resolution used during the building of the UV Lightmap

Light Map Resolution is the default lightmap resolution, this can be overridden on the StaticMeshActor in the details panel:

268065-lightmapuv.png

It is best to keep the Min Lightmap Resolution as close to your actual Light Map Resolution to get accurate padding between UV islands.

Looking at your mesh complexity, you might be better off splitting it in 3-4 parts and give each part a 512 or 1024 resolution. House_Roof, House_Walls, House_Floor, etc.

Yep, unticking Combine Meshes can do the trick.

Splitting up the mesh is done in your modeling application indeed.

UVs should automatically be taken care of if you set each of your imported meshes up as you did in the above screenshots.