-
Notifications
You must be signed in to change notification settings - Fork 60
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
Wrong default colormap blend #289
Comments
|
Glorious. We can create a game which can be played without |
|
Note that this bug made the map darker than current engine with Current engine with gamma 1 and bug being awaken from a 14 years sleep by patch enabling alphagen in diffuse code path: Current engine with gamma 1, (stock Current engine with gamma 1, colorspace correction and dithering to reduce color banding a bit: This map was made for Tremulous in 2007, this is the 2007 build by KOsAD, not some extensive rebuild I did (lightmap file dates are |



The bug is not new, but was hidden by the bug fixed in #277 (glsl/lightmapping: fix terrain alpha blending for collapsed materials).
This bug was already there before in vertex lighting mode.
This is how it must look:
This is now it looks now on light map lighting mode:
This is how it already looked like on vertex lighting mode before #277:
This is how it looks like on vertex lighting mode if I apply the same buggy workaround that was applied in lightmap lighting mode before #277
Don't mind the bizarre artifacts for now, that's another bug I have not yet investigated, but definitely another bug (looks to have been introduced between
0.50.0and0.51.1).The bug we talk about always has been there, this is how the same map looked like on Unvanquished 0.6.0 and 0.50.0 in vertex lighting mode. That was already too much darky, but we also see our engine is now more darky with newer artifacts that was not there at first, that's probably another yet unknown bug:
So the bug fixed in lightmap glsl in #277 looks to have been a workaround for an old bug living in others glsl shaders.
This bug only occurs on some legacy materials. It's related to the various guesses the engine does to detect the right color blend to apply, the problem probably living in that test:
Daemon/src/engine/renderer/tr_shader.cpp
Lines 2984 to 2995 in 94823ac
If
stage->rgbGenis always set tocolorGen_t::CGEN_IDENTITY, both lightmap lighting and vertex lighting looks ok (but then it breaks some other textures that legitimately relied on this test to set the other type).The text was updated successfully, but these errors were encountered: