Colobot Forum - International Colobot Community

Full Version: [BUG] Dynamic Shadow + weird logs.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Spoiler :
[Image: GQ6BpXA.jpg]
[Image: KmJxZ39.jpg]

1. Dynamic Shadows is Bugged.
2. Weird logs on OpenGL 2.1 Graphics Engine.
"Shadow Mapping is Bugged" is not very descriptive. Do you mean those strange shadows back on the walls? This is one of the problems with shadow mapping itself. Shadows from some high object casts shadow through a wall. This wouldn't be a problem if the walls also cast shadows, but this would be rather costly. Maybe I'll be able to fix this but there's no guarantee.

Debug version outputs OpenGL errors captured during rendering frames. This way I know something is wrong. For now it spams console when it happens in every frame. I'll change it later so it outputs errors fewer times without spamming.

EDIT: OK, it seems shadows are really bugged but in different way than I expected. Shadows seem to be somewhat duplicated. This shouldn't be happening because they are meant to use clamp mode. I'll have to take a look at this.
I mean these shadows are duplicated. This are most pronounced at shadow resolution is 128x128.

[Image: 6X4JS4I.jpg]