I'm having a problem with transparent 32-bit PNG's on both the
emulator and the G1. They load fine, but I can't change their alpha
value unless the texture is fully opaque to begin with. For a simple
example:

glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

glBindTexture(GL_TEXTURE_2D, fully_opaque_texture); // all pixels are
opaque

glColor4f(1, 1, 1, 0.5);
glDrawArrays( ... ) // displays half transparency (correct)

...

glBindTexture(GL_TEXTURE_2D, transparent_texture); // some pixels are
transparent

glColor4f(1, 1, 1, 0.5);
glDrawArrays( ... ) // displays as fully opaque (wrong)

I've also tried the following (as suggested on another thread) with no
luck:

setEGLConfigChooser(8, 8, 8, 8, 0, 0);
getHolder().setFormat(android.graphics.PixelFormat.RGBA_8888);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to