Hirogen2 wrote:So I have (1) a true-color sprite which (2) uses a color set (a limited 32 color set still) other than the Doom green for the suit. The former makes me wonder how to do translation at all on it, and for the latter, how to set up the PlayerPawn decorate definition so that gzdoom can recolor the sprite according to the player's likes.
First, Graf's Mantra (tm):
Translations on PNGs are undefined. There is no guarantee that they may work correctly.
The image will be converted to the doom palette by the engine before the translation is applied. This means (if you are still going to try this) you should use the green range from the doom palette, and translate that to your custom color of green or any other player colors. It also means if your player has a turquoise hat, it's going to get translated to blue or gray or something when the translation is applied. So to fix that, the hat would also need to be colored using the doom palette, and then translated to turquoise when the player picks his uniform color.
In other words, trying to apply translations to images not using colors from the current PLAYPAL will not work out very well, and applying translations to non-doom-format images is not officially supported.