Jump to content
  • Advertisement
Sign in to follow this  
alexisgc19

How define a key color?

This topic is 3888 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

Hello.. I want to define a key color.. with key color I define a color with 3 bytes and if I use alpha channel I need 4 bytes.. This is the principal reason when i use a key color and not alpha channel.. I'm in a mistake? and How define a key color?

Share this post


Link to post
Share on other sites
Advertisement
You can't; at least not without using shaders to emulate it. Colour keying hasn't existed in hardware for a very long time now and the extensions which existed to support it in OpenGL havent been in the drivers for some time.

Share this post


Link to post
Share on other sites
Quote:
Original post by alexisgc19
Hello.. I want to define a key color.. with key color I define a color with 3 bytes and if I use alpha channel I need 4 bytes..

IIRC, graphics cards tend to pad 24-bit textures out to be 32-bit textures, so that's not a good reason.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!