hi,
i got an strange shadow after build lighting in ue4.12.2:
i got an lightmap in my fbx
no smooth mesh selected…
what is my mistake?
thanks for an answer and a sunny weekend for everyone
greetz
loopon
ps. i´m sorry for the title… :-))
hi,
i got an strange shadow after build lighting in ue4.12.2:
i got an lightmap in my fbx
no smooth mesh selected…
what is my mistake?
thanks for an answer and a sunny weekend for everyone
greetz
loopon
ps. i´m sorry for the title… :-))
What do the channel 1 UVs look like? You can open up the static mesh editor and click the UV button, and change the drop down to UV Channel 1.
hi ZacD,
i changed the uv-button onto UV Channel1 and saved the static mesh…
but when i reopen the static mesh editor, the UV Channel is on 0 again.
so i got the same build lighting result as before.
your lightmap resolution is too low
I wanted to see a screen shot of the UV channel 1, changing that drop down only changes the preview.
@darthviper107
thanks for this tip…maybe 512 is high enough?
@ZacD
ok… here is he screen shot:
You need some more space between the UV islands and you need to try and make sure that the rectangular pieces are 90 degrees shaped.
You probably need UV splits on the 90 degree angles or a higher resolution light map.
This one is pretty simple, but im not very good at explaining things so bear with me.
Lightmass needs like ~3 pixels between each UV island when the edges are hard angles. for the side of a cube, that means the edges there need to have 3 pixels between the UVs for the lightmap.
Unreal Engine since 4.4 has had a built-in tool for separating and spacing our your UVs in a way that lightmass can work with, and its super easy and useful to use.
Here’s how:
here you will find some settings that may or may not make sense, but all we need to worry about for this is: ‘generate lightmap UVs’ ‘minimum lightmap resolution’, ‘source lightmap index’, and ‘destination lightmap index’
we are going to work back-and-forth between this menu and the one slightly below it, under ‘static mesh settings’
an overview of what we are going to do:
build settings: will set the UV channel for the lightmaps, and bake the UVs so that lightmass can work properly
static mesh settings: will define the resolution of the lightmap.
source lightmap index is where the Unreal Engine will get the UVs from to make the lightmap UV set. This is ‘0’ by default, and probably wont need to change unless you’re doing something complex.
destination lightmap index is where Unreal Engine will put the lightmap UVs. You can set both of these settings to ‘1’ if you have weird UVs in channel 0 and a pre-made lightmap UV set in channel 1. We’re going to leave these alone though, they dont need to change.
minimum lightmap resolution defines how much space to put between your UV islands so that the lightmap doesnt bleed through to other areas of the mesh, creating the artifacts that you are having. the lightmap resolution that you end up using can always be higher than this, but should never be lower.
You have, in your mesh settings, over-written your lightmap resolution to 256. Let’s work with that then. Under the static mesh settings, set the lightmap resolution to 256.
-click ‘apply changes’ under build options to save these changes.
Happy deving
wow…
thats, why i love this community…
many thanks to all !!!
and a special thank you goes to Construc for his great tutorial.
now i know again, that i don´t know ue4 at all :-))
a great weekend for everyone!
greetz
loopon