#Lightmap packing issue

1 messages · Page 1 of 1 (latest)

grizzled inlet
#

Hi! I’m doing some light baking tests with my modular set. I’ve attached screenshots of my custom, manually created lightmap (UV channel 2) for the modular set, and the packed lightmap UV after baking into the global lightmap atlas. Why does the lightmapper place the islands so inefficiently and leave tons of empty space? Is there any way to make the lightmapper pack my islands as tightly as they are in my custom UV2?

honest perch
#

So there's stuff in the "empty" gaps, and you can see lighting information there too

#

So gaps are not expected
But I think it still tends to leave empty space in some circumstances
For that you can decrease max lightmap size so it allocates the islands to smaller textures

grizzled inlet
honest perch
grizzled inlet
honest perch
#

Which points to there really being UV regions in those spots

#

I can see the dark blue UV regions from the preview also on the lightmap as solid blue regions in another spot
Whatever that white highlighting means, it feels like that's where the split is happening

honest perch
# grizzled inlet

In this picture you've highlighted all the meshes in your scene, but it didn't highlight all the UV regions on the lightmap
So where do the rest come from?

honest perch
# grizzled inlet 512

Also, with 512 max size the lightmap layout did not change at all, implying the atlas was always 512 or smaller and you have to decrease max size further if you want to see an effect

grizzled inlet
grizzled inlet
grizzled inlet
#

And i have no idea, how to fix it

honest perch
#

I see!

grizzled inlet
#

64x64 resolution also provide some weird results

honest perch
#

I guess it makes sense that the lightmap space is in 0...1 range per mesh

#

Otherwise the lightmapper would have to effectively generate new lightmap UVs when it bakes

grizzled inlet
#

The question is "Can i create 'LightmapUV atlas' for my modular set and freeze it during packing process like here?"

grizzled inlet
honest perch
#

Add another instance of one of the pieces into the scene and it no longer fits in that puzzle

honest perch