Fonts getting palette raped
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- oODemonologistOo
- Posts: 318
- Joined: Tue Jul 17, 2007 10:30 am
- Location: one of the labs of hell
Fonts getting palette raped
Hello, how do I prevent the fonts I use in drawnumber from being palette raped? Here's a pk3 I just made to test: https://www.dropbox.com/s/wc5n5tueibr7nli/test.pk3 The red colored numbers look really weird on the hud.
Last edited by oODemonologistOo on Sat Jun 22, 2013 4:01 pm, edited 1 time in total.
- oODemonologistOo
- Posts: 318
- Joined: Tue Jul 17, 2007 10:30 am
- Location: one of the labs of hell
Re: SBARINFO drawnumber issue
Anyone has any ideas?
-
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: SBARINFO drawnumber issue
I'm probably wrong, but I think the engine "palettizes" the fonts' glyphs for color translation purposes. I mean, even if you run it with GZDoom, which has a full-fledged, true-color renderer, you get the same results.
Side note: you might want to change the title of your topic, because this has nothing to do with SBARINFO's DrawNumber command.
Side note: you might want to change the title of your topic, because this has nothing to do with SBARINFO's DrawNumber command.
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: Fonts getting palette raped
Don't dress them up so sexy and make them take shortcuts through the park at night after work ::beaten, waterboarded, relaxed to secular arm, burned at stake::
Yeah, this new title is even less helpful. Had to download, play for a few seconds, then read Blue Shadow's response and view the graphics in another viewer before I could figure out what was going on.
Just tell the user to use GL or stick to the Doom palette.
Yeah, this new title is even less helpful. Had to download, play for a few seconds, then read Blue Shadow's response and view the graphics in another viewer before I could figure out what was going on.
Just tell the user to use GL or stick to the Doom palette.
Re: Fonts getting palette raped
Vaecrius wrote:Just tell the user to use GL...
Blue Shadow wrote:I mean, even if you run it with GZDoom, which has a full-fledged, true-color renderer, you get the same results.

- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: Fonts getting palette raped
::rereads::
okay I really have no idea what the OP is complaining about then (though that ghastly looking upper-left corner thing in the hud could be gotten rid of)
okay I really have no idea what the OP is complaining about then (though that ghastly looking upper-left corner thing in the hud could be gotten rid of)
- oODemonologistOo
- Posts: 318
- Joined: Tue Jul 17, 2007 10:30 am
- Location: one of the labs of hell
Re: Fonts getting palette raped
The numbers on the hud, they are being converted to doom's palette. That's not what I want, basically. I hope this was better.Vaecrius wrote:::rereads::
okay I really have no idea what the OP is complaining about then (though that ghastly looking upper-left corner thing in the hud could be gotten rid of)
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49237
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Fonts getting palette raped
The font character texture classes are lacking true color conversion functions, so right now there's nothing you can do.
Anyway, it would only help with GZDoom to change this. ZDoom only keeps one palette-less texture of the font characters and uses a special palette for colorization. And this is just doing a mapping to the base palette for untranslated characters.
Changing this would require quite a bit of changes under the hood because only one hardware texture can be attached to a game texture in ZDoom. In GZDoom it'd be possible but the font management can't reliably recognize the case when an exception needs to be made, since 'untranslated' is just another translation.
Anyway, it would only help with GZDoom to change this. ZDoom only keeps one palette-less texture of the font characters and uses a special palette for colorization. And this is just doing a mapping to the base palette for untranslated characters.
Changing this would require quite a bit of changes under the hood because only one hardware texture can be attached to a game texture in ZDoom. In GZDoom it'd be possible but the font management can't reliably recognize the case when an exception needs to be made, since 'untranslated' is just another translation.
Re: Fonts getting palette raped
Try converting the graphics to paletted greyscale, then change the untranslated in SBARINFO to Red. The outlines look a little different, but it is an improvement over the original:
Spoiler: