Questions tagged [opengl-es-3.0]

Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones. The version 3 was publicly released in August 2012. OpenGL ES 3.0 is backwards compatible with OpenGL ES 2.0, enabling applications to incrementally add new visual features to applications.

Subset of the OpenGL 3D graphics API (especially, subset of OpenGL 3 Core Profile) designed for embedded devices such as mobile phones. The version 3 was publicly released in August 2012. OpenGL ES 3.0 is backwards compatible with OpenGL ES 2.0, enabling applications to incrementally incorporate new visual features.

Resources:

264 questions
35
votes
3 answers

What are the differences between OpenGL ES 2.0 and OpenGL ES 3.0

I want to know what is the differences between OpenGL ES 2.0 and OpenGL ES 3.0. What is the main advantage of OpenGL ES 3.0?
pushyu
  • 433
  • 1
  • 5
  • 6
18
votes
1 answer

Safe usage of glMapBufferRange() on Android/Java

I have working code using glMapBufferRange() from OpenGL-ES 3.0 on Android that looks like this: glBindBuffer(GL_ARRAY_BUFFER, myVertexBufferName); glBufferData(GL_ARRAY_BUFFER, myVertexBufferSize, null, GL_STATIC_DRAW); ByteBuffer…
rhashimoto
  • 15,650
  • 2
  • 52
  • 80
16
votes
3 answers

Does the Android emulator support OpenGL ES 3.0?

I know that the emulator has supported OpenGL ES 2.0 as of SDK tools 17 and Android 4.0.3, but that was introduced back in April 2012. Does the Android emulator support OpenGL ES 3.0, or are we still waiting on that? If not, does any other…
Cypress Frankenfeld
  • 2,317
  • 2
  • 28
  • 40
12
votes
2 answers

When switching to GLSL 300, met the following error

when I switch to use OpenGL ES 3 with GLSL 300, I met the following error in my frag shader undeclared identifier gl_FragColor when using GLSL 100, everything is fine.
Adam Lee
  • 24,710
  • 51
  • 156
  • 236
9
votes
2 answers

Android Emulator and OpenGL ES3: EGL_BAD_CONFIG

I am running an Android Virtual Device on my Ubuntu host. It is using the CPU/ABI Intel Atom (x86) and I am using the host GPU. The emulator is using a Kernel-based Virtual Machine. This works splendidly as long as I use an OpenGL ES2 context. If…
Bram
  • 7,440
  • 3
  • 52
  • 94
9
votes
1 answer

How to restore a GL_RENDERBUFFER?

I am working on storing and restoring my OpenGL ES based application's state. I have a function to save the GL_RENDERBUFFER to dump the data with the following code: glBindFramebuffer(GL_FRAMEBUFFER,…
Jeshua Lacock
  • 5,730
  • 1
  • 28
  • 58
8
votes
1 answer

GLSurfaceView with OpenGL ES 3.1 context

I'm working on Android with OpenGL. I known how to use GLSurfaceView and its custom derivate classes to create OpenGL ES 2.0 context with method of GLSurfaceView: setEGLContextClientVersion(2); and OpenGL ES 3.0…
xcesco
  • 4,690
  • 4
  • 34
  • 65
8
votes
4 answers

Is there a way to check if Android device supports openGL ES 3.0?

I need to check dynamically if the used device supports openGL ES 3.0. How can I do that? I can't find anything in google or here...
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
8
votes
1 answer

How do I declare the OpenGL version in shaders on Android?

I'm experimenting with OpenGL ES 3.0 and found the following statement in the Quick Reference sheet: “#version 300 es” must appear in the first line of a shader program written in GLSL ES version 3.00. If omitted, the shader will be treated as…
Mad Scientist
  • 18,090
  • 12
  • 83
  • 109
7
votes
1 answer

opengl es 2.0 android c++ glGetTexImage alternative

when testing on windows the code works as expected, but on android the glGetTexImage api doesn't exist, is there an other way of getting all the pixels from OpenGL without caching them before creating the texture? this is the code: void…
dvrer
  • 589
  • 6
  • 17
5
votes
1 answer

sRGB Framebuffer on OpenGL ES 3.0

I am working on a OpenGL ES 3.0 Android project using Java. I need to implement gamma correction and somewhere I've read that sRGB textures would be supported in OpenGL ES 3.0. So my intention was to call glEnable(GL_FRAMEBUFFER_SRGB) before…
j00hi
  • 5,420
  • 3
  • 45
  • 82
4
votes
2 answers

Android openGL ES 3.0 shaders are not working

I am using openGl ES 3.0 in android to render a rect on screen, and I want to use shaders to generate a mix of colors depending on vertex positions. I am sure that the problem is in the vertex and in the fragment shader code, but I don't know what…
SomeUser
  • 75
  • 7
4
votes
1 answer

How do multiple buffers for attributes work in openGL (ES) shaders and C++ api

I have the proverbial cube sample and have been writing some code to test it all and learn more about shaders. My question is about how multiple buffers are assigned to access within the shader and how one writes shader code to reference them. The…
peterk
  • 5,136
  • 6
  • 33
  • 47
4
votes
1 answer

Reading RGB8 buffer from OpenGL ES 3.0 on iOS?

I really need to get an RGB 8 bytes per channel buffer from the GPU. I need it to pass to a trained convolutional neural network, and it only accepts data in that format. I can't convert it on the CPU as I'm heavily CPU bound and it's quite slow. I…
grisevg
  • 250
  • 3
  • 18
4
votes
1 answer

Luminance histogram calculation in GPU-android opengl es 3.0

For Luminace histogram calculation I have used the code from the project GPU image ios by Brad Larson. He has used blending for Histogram calculation. Attaching the Vertex and Fragment shader Vertex shader #version 300 es in vec4 position; out…
1
2 3
17 18