I wish I could post a picture of this, but here goes. I have a signle texture that is something like the following.
| |
| Transparent Area |
| |
| =========== |
| | Opaque | |
| | Area | |
| =========== |
| |
When displayed with my OpenGL program, the “Transparent Area” is all transparent, but all around the border of the “Opaque Area” there is a white border that “fades” into the colors of the “Opaque Area”.
I’ve tried various texture and blend settings. GL_BLEND with glBlendFUnc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) just changes the border color from white to more of the color of the “Opaque Area”.
When I open the image with Gimp and zoom in to see the pixels there is no “white border” of pixels between the opaque area and the transparent area.
Any ideas of what is going on, or how to get rid of the border around the opaque area?