Static Shadows not saving 4.7

For some reason our static shadows do not appear to be saving after closing and reopening the editor. We recently upgraded to 4.7 and this issue is new. After the bake is complete the shadows appear fine but its only after save+close+reopen that they disappear.

Hi,

Does this problem occur with foliage meshes? Because I had a similar issue and the solution was to update the “Foliage Settings” for each foliage actor. I did so by changing the culling distance for the affected meshes. Hope this helps.

Same problem here, after lighting build the shadows are there but after reopening they dissaper in the editer. When I hit PIE the static shadows/lighting are there again. In standalone, the shadows only appear when I change the effects quality.

Sometimes they also reappear in the editor, but I don’t know why…

And it also seems to only happen in composite levels with streaming levels.

We discovered the work around and it’s on udn if you have access.

https://udn.unrealengine.com/questions/238588/static-lighting-invalidated-after-closing-the-edit.html

If you don’t have access then look in scenecore.cpp. Look for where it checks for num cached > numu cached threshold and invalidates the lighting. It’s a Cvar currently set to 500. Either make the Cvar much bigger or remove the check all together.

This code has been there for a while but for some reason in 4.7 has been caused to fire prematurely. Check out the udn if you can. Lots more detail.