Did you use  GL10.GL_MODULATE?

        gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
                     //GL10.GL_REPLACE
                     GL10.GL_MODULATE
                     );

I had the same problem before and it's fixed after making the above change.


--- On Mon, 12/29/08, Chris McCurdy <[email protected]> wrote:
From: Chris McCurdy <[email protected]>
Subject: [android-developers] Transparent textures in OpenGL
To: "Android Developers" <[email protected]>
Date: Monday, December 29, 2008, 7:34 AM

I'm currently attempting to make a game using OpenGL and all is well
in the emulator. I'm using PNGs with transparencies to create the
textures, and in the emulator, they show up as expected. But when I
run it on the G1, all transparent areas show up as black.

I've seen some reports that I need to change the texture from ARGB to
RGBA, but that made my image really small and gave me 4 of the same
image (like it separated each color of the texture into its own
image). I've also seen a suggestion to disable GL_LIGHTING, but that
didn't help either. Is there anything I can do to actually get
transparencies to show up as transparent on the G1?




      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to