2025-07-18 11:47 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005427Spring engineGeneralpublic2017-01-21 13:00
Reportercleanrock 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version103.0 +git 
Summary0005427: shadows broken
DescriptionTerrain and unit shadows have been broken for a few weeks for me now.
If you can't reproduce this I will add more info.
Steps To ReproduceTake a look at terrain shadows when zoomed in a bit.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0017030

Kloot (developer)

screenshots?

~0017047

cleanrock (reporter)

Added a few more screenshots.

~0017050

Kloot (developer)

looks like an inverted z comparison, but shadows render normally for me so there is some unaccounted difference in behavior.

engine build? driver version? infolog?

~0017051

cleanrock (reporter)

I have seen this on latest spring/develop for about a month, I bet it is my gcc 6.3.1 that expose a spring bug.

~0017064

cleanrock (reporter)

gajop, I am pretty sure you run archlinux, do you also see issues with shadows ?

~0017065

hokomoko (developer)

Still no infolog, no exact steps taken to reproduce (what game etc.) no attempt to see if happens on clean build (remove all game/spring configs).

My bet is that it's not gcc.

~0017067

cleanrock (reporter)

Tested a bit more, the downloaded (built by spring build bot) 103.0.1-511-g12f211a do not show this issue but my locally rebuilt 103.0.1-511-g12f211a show issue in both ZK and BA.
I may get the energy for a bisect some time, not sure if that will help though.
Still would be interesting to hear if gajop also see this issue on archlinux.
Attaching infolog of local 103.0.1-511-g12f211a in case it shows anything of interest.

~0017068

Kloot (developer)

Pass VERBOSE=1 to make and check for any warnings generated by rendering code.

~0017077

cleanrock (reporter)

I think this is a minor issue since problem is not seen in build bot builds which players use.
Perhaps it is even a local issue for me but I still prefer some feedback from gajop.
I think we can ignore this bug report until if/when it is seen by more users.

~0017078

Kloot (developer)

Last edited: 2017-01-20 13:30

View 2 revisions

Assuming there is a compiler relationship I do not want to see this issue pop up again years later if / when buildbot is updated to gcc6 and everybody has forgotten about it, best to find out all relevant details now.

~0017084

Google_Frog (reporter)

I have broken shadows with 64 bit windows Spring in 103.0.1-516-g0ffb9de. I think 103.0.1-298-gaf1edb1 works fine but I may not have noticed a problem. All shadows are broken: units, features and terrain. It looks like the sun is coming from the opposite direction than normal. If I zoom out or angle the camera up the shadows disappear completely (this might be due to the particular sun settings of the map).

The map in my screenshots is Fields of Isis.

Licho told me that if you let your computer go to sleep with 64 bit windows Spring running the Spring window will be black until resized. I've yet to try to reproduce but it may be related.

~0017085

Google_Frog (reporter)

Here is some bisecting.

103.0.1-516-g0ffb9de broken shadows.

103.0.1-390-ga808bf1 broken shadows.

103.0.1-383-g8627c46 broken shadows.

103.0.1-375-g3a665b4 freeze on startup.

103.0.1-369-g9588c7f freeze on startup.

103.0.1-367-g9107506 no win64 build (same for 368).

103.0.1-360-g3b04435 working shadows.

103.0.1-345-g62b3749 working shadows.

103.0.1-298-gaf1edb1 working shadows.

~0017086

Google_Frog (reporter)

103.0.1-365-g1c96edc broken shadows.

103.0.1-364-g947dab8 broken shadows. Looking at commit contents I think that this is responsible: https://github.com/spring/spring/commit/947dab8b1e7484287776cc329050359a79101f70

Windows 32 bit 103.0.1-364-g947dab8 has working shadows.

~0017087

hokomoko (developer)

Thanks GF, that points the reason.

Win64 builds use a different gl/glew headers which enables more GL extensions and same for cleanrock's build (which uses the system's headers).

~0017088

Google_Frog (reporter)

My screenshots look like they have the same issue as cleanrock has. However he has had the issue "for a few weeks" which may mean during normal games. Zero-K has mostly run 103.0.1-298-gaf1edb1 which is outside the range. cleanrock, you should say which engine versions have this issue and/or try to bisect.

~0017089

cleanrock (reporter)

Last edited: 2017-01-21 11:48

View 2 revisions

Indeed, reverting 947dab8b fixes this issue for me.
I am curious to know why none of the devs have seen this issue with their local builds.

~0017091

Kloot (developer)

Last edited: 2017-01-21 12:52

View 2 revisions

glClipControl is a recent GL extension and older drivers (mine are a year behind) might just insert a no-op while claiming to support it.

even so it seems I forgot to adjust the shadow matrix.

~0017094

Kloot (developer)

those affected: test 5a3e3616e please

~0017097

cleanrock (reporter)

5a3e3616e looks good here.

~0017098

Google_Frog (reporter)

win64 build 103.0.1-518-g5a3e361 works for me.

~0017100

Kloot (developer)

confirmed fixed
+Notes

-Issue History
Date Modified Username Field Change
2017-01-08 13:59 cleanrock New Issue
2017-01-08 15:15 Kloot Note Added: 0017030
2017-01-08 16:00 cleanrock File Added: screen00055.png
2017-01-15 08:03 cleanrock File Deleted: screen00055.png
2017-01-15 08:03 cleanrock File Added: screen00055.jpeg
2017-01-15 08:04 cleanrock File Added: screen00060.jpeg
2017-01-15 08:04 cleanrock File Added: screen00063.jpeg
2017-01-15 08:05 cleanrock Note Added: 0017047
2017-01-15 15:40 Kloot Note Added: 0017050
2017-01-15 15:54 cleanrock Note Added: 0017051
2017-01-16 17:46 abma Status new => feedback
2017-01-18 06:05 cleanrock Note Added: 0017064
2017-01-18 06:05 cleanrock Status feedback => new
2017-01-18 10:09 hokomoko Note Added: 0017065
2017-01-18 17:40 cleanrock File Added: infolog.txt
2017-01-18 17:40 cleanrock Note Added: 0017067
2017-01-18 18:20 Kloot Note Added: 0017068
2017-01-20 13:15 cleanrock Note Added: 0017077
2017-01-20 13:30 Kloot Note Added: 0017078
2017-01-20 13:30 Kloot Note Edited: 0017078 View Revisions
2017-01-21 10:34 Google_Frog File Added: brokenShadows1.jpg
2017-01-21 10:34 Google_Frog Note Added: 0017084
2017-01-21 10:35 Google_Frog File Added: brokenShadows2.jpg
2017-01-21 10:56 Google_Frog Note Added: 0017085
2017-01-21 11:06 Google_Frog Note Added: 0017086
2017-01-21 11:12 hokomoko Note Added: 0017087
2017-01-21 11:12 Google_Frog Note Added: 0017088
2017-01-21 11:46 cleanrock Note Added: 0017089
2017-01-21 11:48 cleanrock Note Edited: 0017089 View Revisions
2017-01-21 12:03 Kloot Note Added: 0017091
2017-01-21 12:38 Kloot Note Added: 0017094
2017-01-21 12:47 cleanrock Note Added: 0017097
2017-01-21 12:52 Kloot Note Edited: 0017091 View Revisions
2017-01-21 12:58 Google_Frog Note Added: 0017098
2017-01-21 13:00 Kloot Assigned To => Kloot
2017-01-21 13:00 Kloot Status new => resolved
2017-01-21 13:00 Kloot Resolution open => fixed
2017-01-21 13:00 Kloot Note Added: 0017100
2017-01-21 13:00 Kloot Fixed in Version => 103.0 +git
+Issue History