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

GL sprites

Started by TheLabRat Oct 12, 2000 at 8:57 AM 2 replies 250+ views
Original Post
TheLabRat
TheLabRat
What would be the best way to set the alpha transparency amount for each pixel in a texture? Say I wanted pink to be fully transparent for sprites and I am loading 24 or 16 bit bitmaps? Where would I set the alpha level in the code - on loading? What must be manipulated - the Texture->data ? I''m confused - also to simplify things - targa''s can save alpha values - does anyone know how to specify the alpha value per pixel in Paintshop pro 6?
zedzeek
zedzeek
have a search on photoshops help for "create a new channel" this will be used as an alpha one save the image as a targa or png (i prefer) and youre laughing

http://members.xoom.com/myBollux
Sly
Sly
I use PaintShop Pro 5 and have not found how to use the alpha channel yet.



Steve 'Sly' Williams
Tools Developer
Krome Studios
zedzeek
zedzeek
have a search for gimp (available now 4 win32) its the best graficx program around better even that photoshop and its free

http://members.xoom.com/myBollux

Topic Locked

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

Sign in to reply to this topic.