06-27-2002, 05:19 AM
I am have a problem with the transparency of my texture. In my program, I am mapping a background
texture(bmp), then placing icons (tga) on top of this background. The tga icon images have transparent backgrounds (RGBA), however, when they are placed on top of the background texture, what ever color is selected fills the background. Therefore, insted of the underlying texture, I am seeing the selected color. I have attempted alpha tests, glblend, popattributes, and much more. The furthest I have gotten is when I change the color to color4f(0.0,0.0,0.0,0.1) after the glblend. This gives me complete transparency of my background, however, also enables some transparency of my actual icon as well. If any one has run into this situation before, I would greatly appreciate the help.
Thanks,
texture(bmp), then placing icons (tga) on top of this background. The tga icon images have transparent backgrounds (RGBA), however, when they are placed on top of the background texture, what ever color is selected fills the background. Therefore, insted of the underlying texture, I am seeing the selected color. I have attempted alpha tests, glblend, popattributes, and much more. The furthest I have gotten is when I change the color to color4f(0.0,0.0,0.0,0.1) after the glblend. This gives me complete transparency of my background, however, also enables some transparency of my actual icon as well. If any one has run into this situation before, I would greatly appreciate the help.
Thanks,