View Full Version : OpenGL ES Texture Transparency

02-16-2011, 06:19 PM
I'm working on learning OpenGL ES to expand my iPhone development capabilities, but I'm running into some problems with transparent textures that I can't seem to figure out through Google.

Here are some pics:

I'm using this blend function:

The object in the front seems to work exactly the way I want, but the other three objects are acting much differently.

As you can see, the transparency of the small circle only seems to work when it is over the small D-Pad square, of which no transparency can be seen. This seems really strange as all objects are creating in exactly the same way, but are being displayed differently.

Thanks in advance for your help, I could surely use it :p

02-16-2011, 08:09 PM
Try the basic belnd eq. but also make sure that u render them in back to front order.


02-16-2011, 09:03 PM
That certainly did fix the problem, the strange behavior was indeed due to the order in which I drew my objects, thanks a lot for the help! This also helps me to understand how transparency actually works, by taking each transparent pixel and using the selected blend function to mix it with whatever is in the buffer at that moment.

Thanks again! You'll probably be seeing a lot of posts from me in the future, I promise to return the favor once I know what I'm doing :P