Skip to main content
GameDev.net gamedev.net
🔒 Locked

Masking.

Started by X5-Programmer Jul 9, 2004 at 1:22 PM 1 replies 800+ views
Original Post
X5-Programmer
X5-Programmer
Hi, I have a question about masking I currently use 2 images that are white and black then use the orginal blending to make the black invisible. But in photoshop you can chose the transparent to make images, dosent I have to blend them then? or if I need to do it then how?
-[ thx ]-
Kelly G
Kelly G
I think that you'll have to supply more details if you want an answer to this question. What kind of images are you using and what are you using them for? Are you writing a windows application in DirectX or openGL? Java? Flash? What kind of file format are you using for images? Some formats have something called an alpha channel for each pixel, which indicates ho transparent a pixel should be. Photoshop will probably allow you to export an image in such a format. Java and Flash will also allow you to use gifs with transparent backgrounds. Direct Draw allows you to color key a certain color like black (0,0,0) to be invisible. I don't know if any of these apply to your problem however.

edit: oh, is this just a photoshop question?
X5-Programmer
X5-Programmer
Hi, This is fore OpenGL, I whant to render an image on an Quad. And I use jpeg images for it.
-[ thx ]-

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.