How to determine an ARGB color from samples?

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

How to determine an ARGB color from samples?

Postby Sir Robin » Mon Jan 03, 2022 8:56 am

So I'm ripping graphics out of an old game, early 90s 8-bit era, same as Doom. Unlike Doom it has transparencies. How the handled it was to have 6 magic colors. When the engine went to draw one of these colors, it would instead do a lookup on the pixel under where it was drawing and use a translation palette to decide the color to draw.

So I've lined up these translation palettes next to the original palettes. What's the best way to come up with a 32-bit ARGB color code that will give me the same effect for each of these 6 transparencies?

User avatar
Sir Robin
 
Joined: 22 Dec 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Return to Assets (and other stuff)

Who is online

Users browsing this forum: No registered users and 1 guest