Jump to content
  • Advertisement
Sign in to follow this  
barakus

OpenGL Color Key?

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

Advertisement
Yeah exactly so you dont draw the colour specified by the colour key.
In DirectX you could do this when loading the texture. I needed this because i was having some other alpha problems with directx, namely that i was getting a border around the image with the linear filter unless i specified a colour key, but i got that fixed.
Still it would be nice to know :D

Share this post


Link to post
Share on other sites
For this problem, I use the TGA file format with 4 channels. Channel number 4 is for the alpha bit anyway, so you don't have to choose a certain color to be transparent, that way there is no mistake. Photoshop and Paint Shop Pro can save TGA files this way, and NEHE can show you how to load them.

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!