Jump to content
  • Advertisement
Sign in to follow this  
ICUP

Preventing Color Changes?

This topic is 3726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What I mean is this. Most of the time, I'll have a color key in the background (i.e., 0, 255, 255 ) but when I draw something over it, for example, I write text over the color key on a new layer (using photoshop) the edges around the text or whatever I might draw gets changed to a slightly different color. This is bad because images look funny because what was supposed to be color keyed out, isn't. How can I prevent this from happening?

Share this post


Link to post
Share on other sites
Advertisement
In Photoshop it's tricky, because Photoshop likes to be helpful and anti-alias everything. Anti-aliasing and color-keys dont mix.
When drawing text there's a check-box to turn it off, which will fix that specific case...

In general though, you have to work in indexed-color mode, so that it is unable to choose any colors that aren't already in your palette (and hopefully your palette doesn't already contain any colors that are quite similar to the color-key'ed color).

Share this post


Link to post
Share on other sites
Ooohhh, thanks Hodgman! Turning off antialiasing works nicely. There is something else I've wondered but haven't tried yet. Instead of color-keying, if you make a transparent background for an image, will it show up as a white background when you try to blit it to the screen?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!