Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent sun and shadow in Maths Class #5267

Open
Alayan-stk-2 opened this issue Jan 23, 2025 · 3 comments
Open

Inconsistent sun and shadow in Maths Class #5267

Alayan-stk-2 opened this issue Jan 23, 2025 · 3 comments

Comments

@Alayan-stk-2
Copy link
Collaborator

Alayan-stk-2 commented Jan 23, 2025

The shadows that can be seen in the track don't match at all what would be expected either from the sun that can be seen through the window or from light coming through the window. Rather, the shadows come from some light source that's much higher up in the sky and that can shine through the walls and ceiling. It's weird.

Image

@CodingJellyfish
Copy link
Member

I think it's done deliberately since it would look awful after blocking shadows by adding plane to the ceiling / second depth shadow map

@CodingJellyfish
Copy link
Member

Another one is stk enterprise.

@Alayan-stk-2
Copy link
Collaborator Author

Alayan-stk-2 commented Jan 25, 2025

I think it's done deliberately since it would look awful after blocking shadows by adding plane to the ceiling / second depth shadow map

Yeah, it absolutely is done deliberately, and I also think that just using shadows based on the window wouldn't work well (there would be too many shadows in the scene).

Just putting the sun position for shadows where the real sun is in the sky and making walls/ceiling occlude would not work. Or perhaps even a ceiling window, although for a classroom it may not fit.

A solution that makes sense and looks better would probably need some kind of interior lights on the ceiling and an additional window in the classroom. In real life, ambient (reflected) light coming from all directions of the sky and from objects within the room can give pretty good brightness, but in-game shadows assume a point-source for the light so it wouldn't mesh well together.

Perhaps baked shadow maps could help to get good shadows coming from multiple light sources to avoid excessively dark shadows while having a result that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants