Original Post
Hey people! It might sound weird in a forum full of 3D specific questions but anyway: I'm working with 8bit-images and I want a specific color of the 256 colors to be shadowing the background (I'd call this a "ShadowKey"). A really good example for this feature is the C&C games. http://acdc-radio.de/bn/powr.png The green pixels in this image would be darkening the background (alpha-blended?). What I'm searching for is a technique to do this. My first idea was blitting the 8bit-image to a 32bit-Surface, browsing through every single pixel and make them black with a 50% alpha or something. But before blitting, there's still remapping, which isn't easy on 32bit-images... There must be a less complicated and less CPU/GPU eating method, since this already worked in old games like C&C or Settlers II, where 32bit-images weren't thinkable yet. I'd appreciate help here! Regards.