I have an issue where lightmaps are not showing up after being baked in the scene. Ported across my scene to test HDRP and got most of it working, except the lightmapping.
Note: Subtle shadowing from ambient occlusion in lightmap on 2018.4 shows between objects.
2018.4.12f1
2019.3.0b10
Lightmap View
Shaded View
Take note, the lightmap isn’t showing at all, even though the lightmap was just baked and shows up properly in the lightmap tab.
Now what’s weird, is that all objects in the scene have lightmaps assigned to them correctly. The lightmap view shows correctly. The lightmaps in the lighting window show up correctly. None of the lightmaps data change when saving, entering playmode, etc. There are literally no changes aside from the lightmaps not showing.
Now what’s even more weird, is that the lightmaps will completely unassociate themselves from the scene and the baked objects when the scene is reloaded or if Unity is closed and reopened.
Right after baking the scene, all views show the lightmaps fine, except shaded view. For example, the Albedo view and Directional view show data correctly.
2019.30b10 Albedo and Directional view
And now this is how the scene looks directly after reloading the scene or closing and opening Unity.
2019.3.0b10 - Lightmap data gone, but still in lighting tab
Albedo View - Data is GONE
Lightmap View - Data still showing in lighting tab, but not in lightmap view, No objects have lightmaps attached to them after reload. LightingDataAsset is pointing to the correct scene.
Some more info. I am not positive if this is a Unity 2019.3 or HDRP exclusive problem, however all other Unity versions I’ve tested work fine, including HDRP builds. And this is the first time this is happening to me. So I decided to create a control project to make sure it wasn’t my scene. Created new project in 2019.3 HDRP, completely stock project. 7.1.1 (Since 7.1.2 doesn’t work) and created a plane with 4 boxes.
The same thing is happening with this test project, which shows me that this is not a problem due to my project, it is a Unity problem.
Has anyone had this problem as well? Create a new HDRP project in 2019.3b10 and bake lightmaps in a simple scene. Then close Unity and re-open Unity and then see if the same thing happens to you.