I'm a bit confused about how to use OpenGL extensions (specifically VBOs and draw_texture). I know you can check for them in the GL_EXTENSIONS string, but then what? If the extensions are available can I just call the relevant functions as needed or…
On iOS or Android, I have the option to switch to OpenGL ES 2 or 3.
I'm not sure why I would, as I'm not developing a 3D game, but if I were to switch, how would I implement clipping planes? These were allegedly removed in ES 2.
I'd especially like…
I have an earnest desire to use clipping planes, and I am currently using OpenGL ES 1.1.
In theory I could upgrade to GL ES 2 or 3, I'd simply have to learn a bit more e.g. about shaders.
But is there a way to do clipping planes in GL ES…
I am just about to release a wallpaper app that's going to use user's own images... which may be non power of 2 size. Textures of all size seems to be supported on my Nexus 2013 tab and Moto X 2013 in Open GL ES 1.1.
My question is:
Does the OpenGL…
I am drawing a texture with 4 vertices in OpenGL ES 1.1.
It can rotate around z:
glRotatef(20, 0, 0, 1);
But when I try to rotate it around x or y like a CALayer then the texture just disappears completely. Example for rotation around…
I use the following code to create mipmaps in my android app
gl.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_GENERATE_MIPMAP, GL11.GL_TRUE);
It works with most of my .png files, but some of them aren't loaded properly (appear as blank white…
I have Map:
public Map bitmaps = new ConcurrentHashMap ();
One thread for decoding resources which populates bitmaps by:
bitmaps.put (resource, BitmapFactory.decodeStream (input, null, options));
And second native thread which binds decoded…
I'm having problem with OpenGL ES 1.0 rendering engine on my Nexus 7 - I'm trying to create frame buffer but it always return GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES, the code is as shown below:
#ifdef __ANDROID__
glGenFramebuffersOES(1,…
I am new to this OpenGL ES stuff, I am trying to draw a rectangle using multi-texturing but it does not show anything I dont know what is wrong with this. Any Suggestions or ideas will be very helpful to me.
Here is my code:
What I have done is…
What I have done
Currently in my Android app I am drawing rectangles with two different textures
There is a fade in (changes the alpha ) animation for one texture (for the second one ) is given.
What I Want.
I want to use multi - texturing thus …
I am using OpenGL ES 1.1 with the NDK and occasionally when I call glGenTextures it does not change the value of name holder that I pass in (doesn't even set it to 0).
glGetError returns 0, no error.
All GL code is in a JNI method called from…
I come from the FlashBuilder, Flex, Flash development area and am trying to work out how to get into Android Development via LibGDX.
I have got my environment setup, learned some of the basics, but am now having an awkward time working out how to…
I spend almost whole day trying to render simple polygon using opengl 1.1 and vertex buffers, but no luck. I searched and searched, but I haven't found much.
This is what i have so far:
public class Polygon {
int bufferId = 0;
private…
I'm new with OpenGLES and I was trying to draw a rectangle with alpha but alpha not being effected on screen. Please help me to figure out where I'm out of the…