skejeton / education-tool

Interactive story software
4 stars 0 forks source link

Is light source moving? #18

Closed vtereshkov closed 4 months ago

vtereshkov commented 7 months ago

image image image

skejeton commented 7 months ago

No, it's a static directional light.

vtereshkov commented 7 months ago

Something unnatural is happening with shadows (see the screenshots I attached). I cannot imagine any fixed light source that could have produced such shadows. For example, if the light source is fixed, the bottom right (w.r.t. the observer) face of the wall should be either always lit, or always shaded.

skejeton commented 6 months ago

I think you're right, what's likely happening is that the shadow calculations ignore camera rotation.

skejeton commented 4 months ago

Ok, it was a misunderstanding. The light source may appear to be moving if you see it as the castle rotating, but in reality the camera is rotating around the castle.