Jump to content
  • Advertisement

Archived

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

johnny_north

Transparent overlays

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

I''m using Photoshop, and I want to overlay one image with another, where the image on top is 100% transparent for any pixel that is RGB(0,0,0) and 0% transparent for any other pixel. I''d also like to do this in index mode too, where index 0 is 100% transparent, but all other pixels are 0% transparent. Can it be done? This is natural in DX where you have a color key, but I can''t figure it in Photoshop. The transparencies that I figured out make an entire layer transparent by a %, not just one color.

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by johnny_north
I''m using Photoshop, and I want to overlay one image with another, where the image on top is 100% transparent for any pixel that is RGB(0,0,0) and 0% transparent for any other pixel.

I''d also like to do this in index mode too, where index 0 is 100% transparent, but all other pixels are 0% transparent.

Can it be done? This is natural in DX where you have a color key, but I can''t figure it in Photoshop. The transparencies that I figured out make an entire layer transparent by a %, not just one color.


DX7 can use colorkeying yes, but in DX8 it''s all done with alpha. A 24 bits RGB image has an additional 8 bits to make it 32 bits, the A is between 0..255 and describes how transparent it is. If Photoshop supports it, you should look into alpha values and use the alpha map to paint transparency, this will also make supporting it in DX easier.

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.

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!