Gez
Why don't I have a custom title by now?!
Posts: 6458
Registered: 07-07 |
phlum said:
Huh. Well, as good as that is, I can't make heads or tails of it... O_o
With 8-bit graphics like in Doom, each pixel in a graphic has an index that tells which color from the palette it is. The the computer looks up that palette, and says "okay, pixel X is index Y, that corresponds to color Z, so pixel X is color Z".
The palettes are usually organized so that similar colors are together. This forms a color range. You can look at the various games' palettes here, it'll probably make more sense then.
So, a translation says that index Y, in fact, must be replaced by index V, which corresponds to color W. So pixel X ends up not being color Z, but color W. that's the translation.
For example:
http://zdoom.org/w/images/a/a2/Doompalette.gif
You can see that the greens of Doomguy's suit are in the 112-to-127 range. Then a translation like 112:127=96:111 will replace each color from the 112-127 range to a color in the 96-111 range, resulting in a marine that wears a grey suit instead of a green one. It is translated to a different color range.
|