[android-developers] OpenGL Textures and Transparency. Square holding the texture still shows.

2012-01-26 Thread Nick Miller
Hello, I've run into a problem using OpenGL with Android. I'm trying to create a transparent sprite that appears in my game application. The sprite is (.png) format and contains transparent values (alpha=0) around the image. Loading the image isn't a problem. I'm able to have the image load onto

[android-developers] OpenGL textures not working.

2012-01-04 Thread purpleHack
I am having some trouble getting textures to work in OpenGL. I explained my problem in detail here: http://stackoverflow.com/questions/8704258/how-to-render-textured-primitives-in-android-opengl-es-2-0 . For the sake of neatness I won't write it again here. -- You received this message because

[android-developers] OpenGL textures fail to load, white image

2011-02-13 Thread peter
Greetings, I've been having an interesting problem with a game I'm developing. The game is being built using the cocos2d-android-1 library. All sprites are loaded from ARGB files. They are of varying size (not powers of 2). When I deploy a test build to my Nexus One after making any code

[android-developers] opengl textures

2011-02-07 Thread bob
Do opengl textures on Android have to be a width and height that is a power of 2? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] opengl textures

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 19:22, Marcin Orlowski webnet.andr...@gmail.com wrote: On 7 February 2011 18:57, bob b...@coolgroups.com wrote: Do opengl textures on Android have to be a width and height that is a power of 2? In general: yes as some devices will won't handle your textures otherwise. It

Re: [android-developers] opengl textures

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 18:57, bob b...@coolgroups.com wrote: Do opengl textures on Android have to be a width and height that is a power of 2? In general: yes as some devices will won't handle your textures otherwise. -- You received this message because you are subscribed to the Google Groups

[android-developers] OpenGL Textures

2010-02-17 Thread joshbeck
Hello All, I'm learning OpenGL on my own atm and I have a question about texturing a surface: I can create a simple polygon like this: public class Square { // Our vertices. private FloatBuffer colorBuffer; float[] colors = { .5f, .5f, 0f, .2f, // vertex 0

[android-developers] OpenGL Textures must specify GL_TEXTURE_MIN_FILTER and GL_TEXTURE_MAG_FILTER

2009-06-25 Thread CraigsRace
This tricked me up for a few hours and I couldn't see anywhere that is was discussed. When running on the Emulator, you don't have to specify the GL_TEXTURE_MIN_FILTER and GL_TEXTURE_MAG_FILTER. However, when running on the HTC G1, you do! So make sure you have something like this in you code: