From: Brian P. <br...@tu...> - 2002-06-27 15:54:43
|
Kevin Vaughan wrote: > 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. Hard to say what the problem is. If you look at the demos/fire.c program, it uses RGBA textures with alpha testing to draw the trees. If you've got code, I could take a quick look at it. -Brian |