Textures & Transparency
Hi,
how can tell OpenGL that the color black in a texture is transparent ? I mean i''ve got a texture with a fire and a black background. So how can i set the black color transparent ?
Thx
January 14, 2002 08:28 AM
Use an alpha texture.. instead of r,g,b, use r,g,b,a. I use a function like this:
Simply call:
FlameID = LoadTexture("Flame.bmp"
;
Billy - BillyB@mrsnj.com
Disclaimer: This was typed in this text-box, so may contain errors. If you need any further help, email me at the address above.
|
Simply call:
FlameID = LoadTexture("Flame.bmp"

Billy - BillyB@mrsnj.com
Disclaimer: This was typed in this text-box, so may contain errors. If you need any further help, email me at the address above.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement