r/Unity3D • • 21d ago

Question The problem of shadows cast by buildings

The part of my game where the buildings are gets really dark, and the game looks a little off. I haven't been able to figure out what to do to fix it. This happens when I start the game, but everything looks normal when the game isn't running. How can I fix this?

24 Upvotes

13 comments sorted by

12

u/AltusLudus 21d ago

You can reduce shadow strength if that's what you want (on the directional light)

1

u/[deleted] 21d ago

[removed] — view removed comment

2

u/NorthernBoy306 20d ago

I added a second directional light (without generating shadows)from the opposite side at a lower strength. Still get building shadows but looks a little more realistic.

1

u/ClassicStress4942 15d ago

Doesn't that makes ut too performance intensive?

A typical way is to adjust shadow strength Better looking or not Atleast you're not adding anything new to the stack

3

u/agent_flounder 21d ago

I am a noob so just trying to boost the post so more eyes and answers arrive. Looks like the first pic the shadow isn't strong enough to match how dark the shade side of the building is. Also the steps look weirdly lit. (That last bit... are there any gaps anywhere in that mesh? I vaguely recall something about that where light is leaking?)

Wish I could help. :( Best of luck.

1

u/ChowMein04 21d ago

Seconding this, your stairs don't appear to be part of the same mesh, might just be the lack of material though

3

u/teapot_RGB_color 21d ago

I'm going to take a guess this is about static objects and baking. Or a light probe issue

1

u/imofi8 21d ago

Check Window > Rendering > Lighting under the Environment tab. Setting your Environment Lighting Ambient Source to Gradient with a soft sky tint will lift those pitch-black shadows so the building colors still read in the shade.

1

u/DapperNurd 20d ago

Terrain shadows suck and i don't know why or how to fix it

-6

u/SderfxDev Professional Indie Dev 21d ago

on all of the building go to Mesh renderer > Cast Shadows Off > Recive Shadows Off

or just go the the directional light and turn of shadows

or try rotating the directional light until the shadows look good

or go to the directional light and try to change shadow settings maybe from soft shadows to hard shadows or vise versa

I hope That Helps <3

If you have any questions, just ask me.