Jump to content
  • Advertisement
Sign in to follow this  
zealotgi

Transparent Pixels in Adobe Photoshop 7

This topic is 4967 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
Quote:
Original post by Sneftel
With the eraser. Note that you cannot have transparency on the "Background" layer.


Ya, but when I blit the texture, it still shows up as whitespace (in DirectX)

Share this post


Link to post
Share on other sites
Then you either aren't saving the file in a format that supports transparency, you aren't loading it in a way that preserves transparency, or you aren't rendering it in a way that allows transparency.

Share this post


Link to post
Share on other sites
Obviously it will show a white space because "transparency" is not possible for certain formats such as BMP and if you want to remove what should be transparent you will need to make use of alphablending or, if you are using directdraw, colorkeying to "extract" the color you chose as being transparent and only then will that color not be shown.

Usually people choose colors that are not likely to be used or easy to identify such as pure 255 white or pure 0 black or something like flashy green RGB(0,255,0) and use that color in their projects to use as color keys so that they don't get blitted on the surface removing what you don't want from the image.

Hope that did help a bit. I would help more but I'm not that experienced with those concept to give you a crash course on the subject but that's the main idea.
This is explained in enough details in the Tricks Of The Game Programming Gurus book form Andre Lamothe if you ever happen to have access to a copy.

Share this post


Link to post
Share on other sites
The best way to do transparency is to add a new layer mask (at the bottom of the layers box) and then you can use normal paint tools to draw the transparancy on. Also, this doesn't ruin the picture, as the eraser would. The picture is always there. (and you can't have a layer mask on the background layer, as mentioned above aswell)

Share this post


Link to post
Share on other sites
if you think that making the pixels "transparent" in Photoshop will make them transparent in whatever software you are using, you probably need to go and read the specs for that software first...
I'd say ask in whichever forum is more appropriate for your program.
Then depending on _how_ your particular program deals with transparent pixels, you can come back and ask us for help (because, just off the top of my head I can think of HalfLife transparency format, good old colour keying, and alpha layer transparency as used in Director).
You need to ask the right question if you want the right response [grin]

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!