Fox, on 05 March 2014 - 05:08 PM, said:
Recall that the base palette -- that is, all colors that are ever displayed in a single scene -- has 256 colors in total. One particular "ramp" has less colors at its disposal. In the case of the gray ramp, there are 32 colors of those. So, the left picture looks a lot like the right one quantized to 32 levels.
I'm attaching a ZIP with four images showing the colors of the whole shade table, for the original one, my two attempts, and the one generated by 'transpal'.
Summarizing, my formula ("attempt 2") produces a similar result to the original one for the five ramps of 32 colors each (gray, brown, blue, green, red), but doesn't work well for the remaining three ramps of 16 colors each. Using color indices whose colors are close to linearly-blended ones ("attempt 1", "transpal") produces visible artefacts, most noticeably the fact that colors "leak" into foreign ramps, such as with the brown and red ones. Note that I'm using a color index rearrangement, as documented on the wiki.
Edit: also, just in case you have missed that, I should point out that my formula makes no reference to the actual color components of particular color indices.
Attached File(s)
-
shtab_comparison.zip (92.95K)
Number of downloads: 437

Help
Duke4.net
DNF #1
Duke 3D #1


