How to fix, Light passes through objects in ue5

The light passes through the door frame and the door, I use shadow maps instead of virtual shadow maps as it gives an increase of +20 fps, but there are some bugs with the light.



I’ve tried it:

  • Two sided material.
  • This dynamic light (shadow map resolution) will not help.

Greetings @Nenroin

Welcome to the Unreal Engine Community Forum! With this issue do you have ‘cast volumetric shadow’ enabled on the spotlight/light itself?

2 Likes

@FrostyJas thank you for responding!
Cast volumetric shadow - disabled

I turned on Distance Field Shadows, but it only gave this result:

Unfortunately, my only solution so far is to use shadow maps…

Hi @Nenroin

Try turning on ‘cast volumetric shadow’ and test again.

I’ve already tried it all, nothing changes at all, and how should it help if it only works with volumetric fog… :frowning:

Take a peek at this discussion. I pulled this up earlier when looking into your issue and I think this may help shine some light (No pun intended) on the situation. Let me know if this helps! Door leaks light in a dark room

It didn’t help, and he still has an unresolved problem, just like me(
image

I see. I assume you’re using dynamic lighting. Does this occur if you change to static lighting?

Oh, and I forgot to write that I use dynamic lighting. If use static lighting and bake, then naturally the problem goes away, but I need it to work with dynamic lighting.

Oh, I see. In that case I wondered is this only happening with doors or is it happening in the corner of walls and such too? If it’s just the door, make sure that you’re not using single-sided meshes for it. I assume that you’re using dynamic directional light. Is the dynamic shadow distance movable light set to default?

Light passes through objects everywhere, and especially if you move further away, things get even worse. “dynamic shadow distance” - where is this parameter?

Here’s an thread with more info on DSD and where to find it. How to decrease dynamic shadow distance?