Lightmap artifacts using enlighten

Hey there,

I have a Problem with some weird Lightmap artifacts.

As you can see in the images below, I get highlights on hard edges from a light that should never get there.
I was thinking that it might be a packing Problem when Unity creates the Lightmap UV´s, or maybe has something to do with the Hard Angle, Pack Margin values in the fbx settings. I tried several different values but it didnt fix it, or it made other areas worse.

However, I haven´t found a solution yet and we are running low on time with the project so here I am : ) .

Any help is much apreciated! : )

Thanks!

Hello there,

I found a setting that works for me and the bleeding is gone. But now I have a different question.

In the image below is shown that now I get some really hard seams on some objects.

One thing to note here. Almost all objects in that scene, Floor, Pillars, walls etc, are imported in one single fbx… It occured to be that maybe that might be a problem since unity only has one global lightmap UV setting for one fbx and some meshes might need other setting right?

Well, gonna try this.

:slight_smile:

Hey Eispin, i’m curious about how did you fix your lightmap artifacts?

Hello, Eispin.
You said “when Unity creates the Lightmap UV´s”. Are you using Unity’s auto generated Lightmap UVs or you import your own?

In the first case the seam is most likely the result of bad charting (several charts in the place there should be one). For such complex geometry like this room (specially in one fbx file) It is strongly recommended to have your own manually created lightmap UVs.

If it your own Lightmap UVs then:

  • check if unwrapping for this part of the pillar is one chunk
  • if it is one chunk but still you will have two edges adjoin somewhere and seam under the arrow could be this place. In this case try to give more indentation for this chunk to prevent bleeding from neighbors.
  • one more assumption, check normals in place of the seam. (unlikely but still could be a reason)