I’m having an issue with my lightmaps after packaging the game.
When I play my game in the editor i’ve got smooth lighting everywhere.
However after packaging some objects get these ugly shaded edges.
For some objects this only occurs on certain LoD’s for others it happens always.
It’s not even the more complex shapes where this happens, I’ve got the problem on a door which is nothing more than a rectangular box but not on models of chairs etc.
I did build my lighting, however the highest i’ve tried was High quality but the build did not come up with errors in the lightmap for these objects and they look fine in the editor.
I’ve tried adjusting the Min Lightmap Resolution of objects where this occurs on lower LoD’s but that doesnt solve the issue.
to me that looks like the lightmaps of the object are lower resolution in the packaged version and bleeding onto adjacent UV shells. But I cant find out what is causing it or how to fix this problem.
Chances are this is a result of your textures being unable to stream on your packaged build. You can verify this by disabling texture streaming in the project settings under the rendering section. Only do this for testing as you need texture streaming for optimization and disabling will hurt performance.
If disabling this fixes your issue you may need to look into optimizing your scene by lowering lightmap resolutions on meshes that don’t need high res. (you can look at lightmap density by clicking on “lit” button at top of view then Optimization view modes > Lightmap density)
You can also look into lowering “Packed Light and Shadow Map Texture Size” in your world settings under lightmass section if you have increased it.