Godot: Shadow glitch

Created on 25 Jul 2017  路  6Comments  路  Source: godotengine/godot

Operating system or device - Godot version:
windows7 x64
https://bintray.com/calinou/godot/editor/2017-07-24.11c14b8

Issue description:
Look at the shadow, it looks like be cut at half.
gif

Steps to reproduce:
Import the project provided below, and open Game.tscn.

Link to minimal example project:
WeirdShadow.zip

bug rendering

Most helpful comment

@Zylann thats true, but by default is set to 1, so maybe a better default would be 0.08, it makes shadows look way better.

screenshot from 2017-07-25 15-03-16

All 6 comments

Bisection says 9483613, but I'm not really sure since this scene uses MeshInstance with plane mesh, which doesn't exist before that commit, so I tested with TestCube instead. The glitch isn't as bad as shown. So I'm not sure if the issue comes from that commit or before that.

it might be caused by the lack of contact shadows.
https://twitter.com/reduzio/status/829151000007151616

i have a similar looking scene that can be fixed with contact enabled, except for this #9740
screenshot from 2017-07-25 13-07-22

It looks like shadow bias is set too high. If you use a directional light you can tune it down to reduce the gap drastically. Only then, see if you need contact shadows.

@Zylann thats true, but by default is set to 1, so maybe a better default would be 0.08, it makes shadows look way better.

screenshot from 2017-07-25 15-03-16

I don't know what the best defaults are, any help regarding testing, checking the value other engines have as default, etc. would help

closed via a1d7c496b

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mefihl picture mefihl  路  3Comments

timoschwarzer picture timoschwarzer  路  3Comments

blurymind picture blurymind  路  3Comments

Spooner picture Spooner  路  3Comments

RebelliousX picture RebelliousX  路  3Comments