Lightmapping headache... :-(

So - my artist is using his server to generate lightmaps for our game’s levels. This works great. He sends me the scenes in game-ready form, and the plan is that I drop them into the game.

The issue being that as my levels are so complex, it’s far easier to import the level model into a pre-existing level build than it is to re-construct new levels every time.

What I’m doing is opening his scene and making the level model he’s created into a Prefab. I then close that scene and open the model-ready game-scene. I drag the prefab into the scene, then reset the lightmaps to the ones he’s baked off, meaning that the level is mapped as he intended… or that’s the theory.

In 3 circumstances now, 4 of 5 lightmaps have worked fine, but there’s always one which doesn’t map correctly. This is always on trees in the scene (which are essentially spheres with sticks for trunks). The original, nice lightmapping from his original scene seems to lose it’s correct UV’s here, and the lightmap scatters randomly over the curved surface of the tree top.

I figured this could be because the prefab level is essentially re-importing the model (instead of maintaining it’s state when it was saved to a prefab), but I’ve checked the import settings and can see nothing different between the two scenes at all.

This spoils the look of the levels, and as there’s no other way for me to build the levels (due to the issues I mention above), I need this to work properly - has anyone else seen anything like this and have any suggestions about how to fix it?

Cheers,

SB

Actually, I take that back - it’s the same in his original scene when imported to the Mac (he’s using the PC version). Does that help with any concept of a solution?

If i understood you correctly you have issue that uv-s generated on mac are different from uv-s generated on win? (if you check the “Generate Lightmap UVs” unity will recalculate them).
If so - file a bug (preferably with one single mesh that shows that) and mark that it is for me. And sure drop me a case number

OK - I’ll do that today. And you were right, except it was the other way around - lightmaps generated on Windows, appearing differently on a Mac. :slight_smile: My little Macbook is just too slow to generate the maps… :slight_smile: