Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.

learn more… | top users | synonyms (1)

0
votes
3answers
35 views

Best way to use a large image (8000x5000 at 20mb) in android using opengl-es

I am been doing some research lately and haven't come by a good answer, what I want to do is display a very large image 8000x5000 at 20mb in my application as a background (it is a minigame) the ...
0
votes
1answer
12 views

Accessing constants in LUAJava

I am adapting luajava to my android application and would like scripts to run OpenGL functions. I push the GL context to LUA in a function using pushJavaObject and it works. However I cannot use any ...
0
votes
1answer
30 views

Using opengl es shader to convert YUV to RGB

I want to convert yuv to rgb in opengl es shader with just one sampler which contains yuv data. My code is below: 1) I send yuv data to texture: GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, ...
0
votes
0answers
20 views

How to change the zorder of OpenGL Surface View dynamically in android?

I have two draggable GL Surface views with videos running on it. And I am able to drag the first video over second one. But when I was trying to drag the second video over first one,I was able to ...
0
votes
1answer
36 views

State preserving particle system for OpenGL ES 2.0

I'm trying to implement a state preserving particle system on the iPhone using OpenGL ES 2.0. By state-preserving, I mean that each particle is integrated forward in time, having a unique velocity and ...
1
vote
1answer
30 views

GPU wait on texture

I'm using shaders for processing and rendering video frames. So I need to update texture before each draw call. Everything works ok, but when I ran OpenGL profiler among others it showed me this ...
0
votes
1answer
27 views

GL_INVALID_VALUE in glUseProgram on resuming app

I am getting GL_INVALID_VALUE​, 0x0501 error at glUseProgram(mYUVProgram); in the following code. It occurs on resuming the app. According to glUseProgram docs GL_INVALID_VALUE is generated if ...
1
vote
1answer
34 views

What is the purpose of the macro : GL_UNPACK_ROW_LENGTH

I am trying to port an OpenGL application from Mac to iOS. The code is like this glPixelStorei(GL_UNPACK_ROW_LENGTH, 4*COMPASS_SIZE); glPixelStorei(GL_UNPACK_SKIP_ROWS, row*COMPASS_SIZE); ...
1
vote
1answer
27 views

Dynamically change color on Android using openGL?

How gradually change the color of the some shape with the time on Android using openGl? For example, I want dynamically change the color of the triangle.
0
votes
0answers
17 views

android ANativeWindow_lock api doesn't work for GLSurfaceView

I'm finding methods to get drawing buffers very quickly from Android GLSurfaceView. eventhough I know glreadpixel can do this job, glreadpixel is too slow to get drawing buffer. I want to read ...
0
votes
0answers
14 views

Cocos2d - Trouble with blending between particles and a sprite draw

I've a CCSprite subclassed object for which I have a draw function : - (void)draw { CGPoint arrVerts[] = { ccp(0.0, 0.0), ccp(0.0, 100.0), ccp(100.0, 100.0), ccp(100.0, 0.0) }; ...
1
vote
0answers
20 views

I would like annotations to cleanly fall into the center of the shape drawn. Unknown cause of annotation offset

All, I've recently followed this tutorial on drawing smooth line's using cocos2d. http://www.merowing.info/2012/04/drawing-smooth-lines-with-cocos2d-ios-inspired-by-paper/ It's a great tutorial. I ...
1
vote
0answers
46 views

OpenGL rendering randomly changes?

Sorry for the specific problem, but I can't find any explanations for my problem. I'm almost certain it's a stupid mistake I'm overlooking. I just want to draw a basic multicolor rectangle to the ...
1
vote
4answers
35 views

How can I get Alpha blending transparency working in OpenGL ES 2.0?

I'm in the midst of porting some code from OpenGL ES 1.x to OpenGL ES 2.0, and I'm struggling to get transparency working as it did before; all my triangles are being rendered fully opaque. My OpenGL ...
0
votes
0answers
13 views

OpenGL ES 1.0 glLoadIdentity android

In Android.mk: LOCAL_LDLIBS += -lGLESv1_CM and in header: #include "GLES/gl.h" but when i using glLoadIdentity my program is crashes (Fatal signal 11 (SIGSEGV)) I think glLoadIdentity have not ...

1 2 3 4 5 482
15 30 50 per page