Objects inside my home are affected by my sun light...

Hello !
I am facing an issue in my game…
I have a world with some houses inside a city. I am using Ultra Dynamic sky for the sky.
The light is good outside but inside house it is quite complicated.
In my house, I added some simple elements : a table, chairs and a static candle light.
But my problem is that the sun directionnal light affect objects inside house, so it create a shadow on this object and when I change the time of day the shadow move depending on it, even if I have no window or anything !
The sun should’nt go inside of the home, and shouldn’t affect the room…
I also noticed that changing the intensity of the sky light (not only the sun directionnal light) affect the interior of my home (the intensity of the light inside)…

Another problem that I have :
My static light don’t generate shadows… I mean, when I place it, it is ok ! But then after building the light, my static light is visible (I see the light) but don’t generate shadow… It is totally different compared to when I place then before building…

Usefull informations :

  • I am using UE 4.26
  • my sun light and my sky light are movable

Would someone help me ?

Thank you a lot !
All the best

1 Like

The skylight will always affect the inside, you just have to adjust accordingly.

The directional light should not come into the building, except through window spaces. Reasons it is coming in include

  1. Wall geometry is too thin. Single planes do not work well with lighting, actual walls with depth are better.

  2. Is your UDS up to date?

Probably the main reason a static light does nothing after building light is that your meshes don’t have lightmaps.

Thank you for your answer !
After reading your comment I tried some experimentation in a new map using the same sky to be sure :

  • There were a hole in the wall somewhere that causes the sun light to enter in my room, and due to that I had this weird shadows moving with the day time. It is strange since the little hole was, as I said, little, and it was enough create shadows…

  • For the static candle, I tested with a cube (and then with my objects) and in fact, when I put the candle in the world I think the preview of the light is really with a high intensity, and when I build then the intensity become really less, so the shadow too. That is why I thought shadow disappear, but they don’t.

Thank you for your help and your time :slight_smile: Things are solved now.

1 Like

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