Linguica Posted September 18, 2015 Here is the standard Doom colormap: You might know that the colormap was generated by having each darker level of the colormap linearly move towards total black: darken_factor = (32 - i) / 32.0 Of course, there's no reason why this must be the case. So I screwed around and made three alternate colormap falloffs: Square:darken_factor = (1 - ((i/32)*(i/32))) Sine:darken_factor = 0.5*(math.cos(math.pi * i/32)) + 0.5 Tangent:darken_factor = 0.5 + math.tan(-(i+24)*math.pi/40) /(2*math.sqrt(5 + 2*math.sqrt(5))) http://www.doomworld.com/linguica/colormaps/square.wad http://www.doomworld.com/linguica/colormaps/sine.wad http://www.doomworld.com/linguica/colormaps/tangent.wad So yeah, whatever. 2 Quote Share this post Link to post
scifista42 Posted September 19, 2015 Nice ones, thanks for making! My favorite one is tangent, it makes everything brighter and reduces fake contrast on orthogonal walls, but also keeps a reasonable light variation between sectors of different brightness levels. The only downside of tangent is that there is too little light diminishing in sectors with "middle" brightness levels. Square makes even vaguely bright areas overbright, then jumps into darkness rather rapidly, and doesn't decrease fake contrast like tangent does, but it's still a decent colormap substitute. Sine ramps up all contrast the most, but I can imagine it very usable in maps specifically designed for it and in hands of a competent mapper. 0 Quote Share this post Link to post
Blastfrog Posted September 19, 2015 What software are you using to generate these? 0 Quote Share this post Link to post
Linguica Posted September 19, 2015 colormap.py from https://github.com/freedoom/freedoom/tree/master/lumps/cph/misc-lumps 0 Quote Share this post Link to post
EarthQuake Posted September 19, 2015 Generating colormaps has been one of those things just outside my understanding of all things Doom. What method was used to generate the palettes for Heretic, Hexen, and Strife? Would Doom look okay/worse/better with such a colormap, or is the palette just too restrictive? 0 Quote Share this post Link to post
Gez Posted September 19, 2015 EarthQuake said:Generating colormaps has been one of those things just outside my understanding of all things Doom. What method was used to generate the palettes for Heretic, Hexen, and Strife? Would Doom look okay/worse/better with such a colormap, or is the palette just too restrictive? The primary palette was created by hand or however it was made, and all other palettes (for pain/item pickups/rad suit) are generated from the primary palette through simple blending. For each color in the palette, bring it X% closer to some predefined RGB value. This is explained in greater details on the Doom Wiki. http://doomwiki.org/wiki/PLAYPAL The colormap is generated similarly: for each color in the palette, bring it X% closer to black. Except here there's a second step: the color you get must then be brought back into the palette, through simple color matching (find the closest palette color in RGB space; you do that by adding together the sum of the squares of the differences between the color you got and each palette color, the smallest sum win, if the sum is zero then it's a perfect match). The invulnerability color map is done slightly differently: it transforms the color to grayscales (using values derived from the NTSC specs), and then inverts it, and then there's the mandatory color matching. http://doomwiki.org/wiki/COLORMAP If you can read relatively simple C code, then take a look at dcolors.c in the Doom utilities, because everything related to palettes and colormaps can be found here. You can also take a look at the SLADE 3 code, or the Freedoom code Linguica already linked to. 0 Quote Share this post Link to post
Da Werecat Posted September 19, 2015 Raven and Rogue colormaps were made differently. There's much less tolerance for "borrowing" colors from different ranges. Strife colormap in particular looks hand-made. They faded one range, then cloned the result for all other ranges, which lead to virtually no shared colors between colormap blocks. You can't really make such a colormap using the Doom palette. 0 Quote Share this post Link to post
Gez Posted September 19, 2015 Yeah, Strife's colormap is very different. Notably it has a few full bright ranges. It also has the interesting effect that bright colors increase in saturation as they become darker. Heretic's colormap looks a bit like Strife in that respect. Also its invuln map isn't inverted grayscale, of course. Same comment for Hexen, and here the invuln map is non-inverted grayscale. I don't remember the effect being used in the game anyway; the icon of the defender doesn't apply a colormap for any of the three classes IIRC. I wonder if it would be feasible to replicate these effects algorithmically perfectly, even if it means inputting range boundaries first... 0 Quote Share this post Link to post
Linguica Posted September 19, 2015 Gez said:Yeah, Strife's colormap is very different. Notably it has a few full bright ranges. It also has the interesting effect that bright colors increase in saturation as they become darker. Increase saturation as it gets darker? I can do that~~ http://www.doomworld.com/linguica/colormaps/saturate.wad 0 Quote Share this post Link to post
Linguica Posted September 19, 2015 And why not http://www.doomworld.com/linguica/colormaps/hue.wad 1 Quote Share this post Link to post
scifista42 Posted September 20, 2015 When I saw your demo gif of the "hue" palette, I thought this will be a true color-swapping awesomeness, but it practice, most colors ended up turning grey for most of the time. I understand, you generated the palette by an algorithm that merely works with hue as a numeric value. But would you do a palette that actually turned all colors variously brightly colorful on all brightness levels as the demo gif implied? Please? 0 Quote Share this post Link to post
Tormentor667 Posted September 20, 2015 Gez said:shroomabuse.wad :D 0 Quote Share this post Link to post
tomatoKetchup Posted September 20, 2015 It's funny you're talking about colormap because I only recently realized its existence as a lump in IWADs. I was wondering, are all those colors also part of the palette or is there some extra shade veriations in there? 0 Quote Share this post Link to post
scifista42 Posted September 20, 2015 All must be part of the palette. COLORMAP just translates palette color indexes to different palette color indexes according to light level. 0 Quote Share this post Link to post
tomatoKetchup Posted September 20, 2015 Alright, thanks for the answer. 0 Quote Share this post Link to post
Linguica Posted September 20, 2015 scifista42 said:When I saw your demo gif of the "hue" palette, I thought this will be a true color-swapping awesomeness, but it practice, most colors ended up turning grey for most of the time. I understand, you generated the palette by an algorithm that merely works with hue as a numeric value. But would you do a palette that actually turned all colors variously brightly colorful on all brightness levels as the demo gif implied? Please? Sure.. I left the actual pure grayscales alone though. http://www.doomworld.com/linguica/colormaps/circus.wad 3 Quote Share this post Link to post
scifista42 Posted September 21, 2015 The COLORMAP in circus.wad is a different one than what you showed in your pictures, though - greyscale shading is downright broken in the wad I downloaded. 0 Quote Share this post Link to post
scifista42 Posted September 21, 2015 Much nicer, thanks! Really, not nearly as eye disturbing as before, the game is actually well playable now. 0 Quote Share this post Link to post
Yuki Senmatsu Posted September 22, 2015 Grosshack would've been fitting for Circus2.wad. Nicely done, bro! 0 Quote Share this post Link to post
Quasar Posted September 22, 2015 I've seen similar results from the game accessing a random colormap out of unrelated memory :P 0 Quote Share this post Link to post
Marnetmar Posted September 22, 2015 I think the saturation colormap could actually look quite good if the effect was a bit more subtle. 0 Quote Share this post Link to post
Soundblock Posted September 23, 2015 Marnetmar said:I think the saturation colormap could actually look quite good if the effect was a bit more subtle. subtlsat.wad? 0 Quote Share this post Link to post
Aliotroph? Posted September 23, 2015 The biggest issue I saw with the saturation colormap is the grays turn yellow. 0 Quote Share this post Link to post
Linguica Posted September 23, 2015 Aliotroph? said:The biggest issue I saw with the saturation colormap is the grays turn yellow. Yeah, I'm not sure why that happened - I assume it's a side effect of the fact that I converted RGB to HSV, and the grays were probably not "perfectly" gray once they got converted and so raising the saturation magnified that small error. 0 Quote Share this post Link to post
yakfak Posted September 23, 2015 frankly I love the muddy effect the unbalanced grays add! Gonna pinch this version of the colour map before you find a way to fix it, teehee! 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.