-
Notifications
You must be signed in to change notification settings - Fork 16
get rid of old quake2 tga.c (11 years old workaround), fix #158 #165
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
Conversation
|
The brightness modification is probably because Q3 and RTCW use a gamma ramp with overbight bits to brighten the assets. The actual image file is darker than displayed in-game. Gamma ramps are broken in windowed mode on GNU/Linux using Xorg or whatever, so compare with fullscreen. ET does not use overbright. I don't know if Doom 3 does. (I have not tested this pull request.) |
|
With the brightness modification, all screenshots from all games where too bright, without this brightness modification, all screenshots from all suppported games (including quake3) seem to look fine. I need to test RTCW more because screenshots have a dark athmosphere, whatever the brightness setting, so I do'nt know yet if it's dark because the map is dark or because the brightness is wrong. I hope to not need per game brightness. |
|
OK, map shots of Quake3, RTCW, ET and Doom3 are ok with these patches. They all look better without the brightness modification. |
66996a2 to
563d008
Compare
|
Well, why I can't merge that o.O |
563d008 to
ba7cfbd
Compare
|
I think If the levelshots look fine and managing per-game brightness correction seems excessive, I guess it's not really important. |
|
Ah, I can test it |
|
What to do with the |
|
Ignore it or rename it to overBrightBits and set it to 1. |
|
OK. with your changes, RTCW map shots looks better, but some other shots (like padman ones) are too brighty. |
|
Doom3 mapshots are very nice too. |
|
World of Padman would need to use overBrightBits 0. |
|
@zturtleman: I've included your code because it looks very nice, but currently it is disabled because we need to add some per-game code. Currently the mapshots are displayed without brightness modification, which is the safest choice. |
|
@zturtleman: do you think Quake4 mapshots needs brightness bump ? |
|
Okay. Yeah, would also need to find out what the values for all games should be. Spearmint would need per-mod setting, not hugely important just mentioning it. I think RTCW should actually use overBrightBits 0. I don't own Quake 4 and it's closed source, so I can't check. |
|
Quake4 maps with overBrightBits 1 looks very nice |
|
The code looks good. OpenArena, Q3 Rally, Voyager Elite Force, Reaction, and Smokin' Guns should use overbrightbits 1 too. This isn't a complete list, I didn't check all the games. |
get rid of old quake2 tga.c (11 years old workaround), add new gamma levelshot modification, fix #158

11 years ago, @lnussel added a workaround based on quake2 source code to be able to load some tga files that GdkPixbuf were not able to load. So, 11 years later, it seems this workaround is not needed. This patch removes the quake2 tga code and enlighten a little the code.
This
tga.cwere used to load map screenshots from Quake3, RTCW, ET and Doom3 (See #158).I've checked it against Q3, RTCW and Wolf:ET maps, it works well, I've not tested Doom3 maps yet, but there is no reason it could fail.