Lighting shadow rendering bug, anyone got solutions?

Hey y’all. Been developing for several years now and as my skill with environmental design grows, I’m facing new issues with lighting these builds.

Realistic lighting setting allows much better shadows which is perfect for my project and for the most part it works fine, however I’m increasingly getting these lighting shadow artifacts in my larger and more complex builds.

This is what my build should look like and does in specific angles

Yet if I turn too far away from the lightsource (window) the light’s shadows disappear which makes the scene worse.

It has something to do with the light being in view, but this is terrible if looking from certain angles ruins the scenery.

This is again a view facing the window versus looking away from it, losing the shadows.


Does anyone know any way to reduce or outright fix this problem?

4 Likes

Have you tried uninstalling Studio and not reinstalling it, ever?
This cannot be fixed. Must… cull…

I wish :pensive_face:
If only there was some way to make some things persistent, but I wouldn’t know about the intricacies of light instances.

3 Likes

How is this environment set up? Generally, offscreen lights should still cast shadows to offscreen parts, but in these examples, both of them are onscreen but not working

1 Like

It’s because the game automatically unloads any part that is not visible by the camera, so the parts casting the shadows disappear, also known as culling.

This is hard-coded into the game since they added it, and I’m not aware of any fixes for this.

1 Like

Could you provide a simplified repro file for this scene? I’d really like to check this out if you haven’t found the cause yet

1 Like

Were these screenshots taken from the player perspective in-game / in-studio or exclusively from server perspective in-studio?

1 Like

For context, these were all screenshots from studio however the same bugs occur in playtests.
I’ve also narrowed it down as to what’s causing the bug (which is a weird one) and not sure how to correct it.

It seems that the other end’s series of lights were causing problems. Each tile has a pointlight and spotlight illuminating the space, which sounds like overkill but this is my main game lobby and I wanted it to look as high quality as possible.

Regardless, it seems by “disabling” the lights, the shadows are corrected but obviously I can’t leave that space without lighting.


1 Like

On further inspection it has to do with ALL of the lights of this style in the area. If there are any remaining it affects the shadows casted by the window light. Very odd.

1 Like

Solution turns out to have been the fact I had too many lights in my build. So many sources will apparently start affecting the (what I assume to be) most costly lights such as that one window source casting a shadow across the whole room.

I’m working towards reducing the number of lights in the room but if this helps anyone else with similar problems, this is what I found out!

5 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.