Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Waldoo

Select Color as Transparent

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

How do you make specific color on texture map as transparent? Edited by - Waldoo on February 18, 2002 5:00:05 AM

Share this post


Link to post
Share on other sites
Advertisement
It is not ''a specific color''. Unless using indexed color (shudder), you''d use the ''alpha channel''.

Alpha = 1 -> opaque
Alpha = 0.5 -> 50% transparent
Alpha = 0 -> completely transparent

Look it up.

If you''re using indexed color, sorry, I''m afraid I can''t help you.

Share this post


Link to post
Share on other sites
Yes I know that one but I dont want to transparent other colors on a texture map. There got to be a way to transparent in specific area on texture map.

Waldoo

Share this post


Link to post
Share on other sites
*psssst* this is the way to do exactly what you want. Think about it before ''knowing'' that its not gonna work.

say you want to make red transparent,

ie:

R = 1
G = 0
B = 0

then you''d make A (alpha) = 0 (transparent)

all other channel combinations (for an example)

R = 0.5
G = 0.1
B = 1.0

you''d make A = 1 (opaque)

Please use some brains & research this for yourself =D

Share this post


Link to post
Share on other sites
I just found a wonderful source code, it is called "Color Keying" You can download it at http://nate.scuzzy.net/gltut/

Enjoy

Waldoo

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!