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
1
vote
2 answers

unexpected different sizes returned from glGetRenderbufferParameteriv in iOS

Hello I am writing an example OpenGLES app, if I setup openGL via the view's initWithCode:(NSCoder *) coder method, the call of glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_WIDTH, &_backingWidth); returns 960x480 for iPad…
spanfish
  • 191
  • 2
  • 5
1
vote
1 answer

opengles 3.0 RG8 RG16F textures

I am developing some Image-Process program on Android this days . And I want to put some byte and float data into a texture . I did this . GLfloat test_float[8] = { 1.0f,2.0f, 3.0f,4.0f, 5.0f,6.0f, …
zh18
  • 154
  • 2
  • 13
1
vote
1 answer

Issue with loading uniform vec/mat in openGL ES 3 on IOS

I am working on doing heavy linear algebra with GPU on IOS so I am trying out openGL ES 3.0. I started from Bartosz Ciechanowski's toy code to work out some general large-by-small matrix multiplication. I split the large one into vectors and use a…
Jason M
  • 411
  • 5
  • 19
1
vote
1 answer

What object's state does glEnableVertexAttribArray modify?

I think I understand what glEnableVertexAttribArray does -- it activates a particular attribute of a program (please correct me if I am wrong). What I don't understand though is which object stores this information. Is it the program object? That…
user2771609
  • 1,867
  • 1
  • 15
  • 36
1
vote
1 answer

gl_PointSize not working properly on Nvidia Shield

I noticed I could not change the size of points in the vertex shader with gl_PointSize in my OpenGL ES 3.0 android application. Eventually I found out that I had to enable GL_PROGRAM_POINT_SIZE even though this enum value isn't defined in the gl…
Martin
  • 93
  • 1
  • 6
1
vote
1 answer

What is texture coordinate P in texture sampler2d lookup GLSL

I've been looking through the OpenGLSL ES 3.0 Spec, but I can't find anything on how the built in function, texture(sampler, p) defines P. I know it is a vec2. Is it a normalized floating point between 0.0 and 1.0 defining a scaler from top left to…
HPP
  • 1,074
  • 1
  • 13
  • 28
1
vote
1 answer

IOS: Performance of shaders with dynamic branching in OpenGL ES 2.0 vs 3.0

I've got an OpenGL ES 3.0 - based IOS app, which I'm going to port to ES 2.0. It contains shaders with a few costly, I guess, loops and ifs. Though the app performs normally on OpenGL ES 3.0-powered device, I'm not sure if it will perform well on ES…
tonso
  • 1,760
  • 1
  • 11
  • 19
1
vote
1 answer

How can i read data by glReadPixels?

I'm working on openGL es on Android. Now i meet a problem. I defined a float array, which is used to pass to fragment shader. float[] data = new float[texWidth*texHeight]; // test data for (int i = 0; i < data.length; i++) { data[i] =…
KiBa1215
  • 87
  • 6
1
vote
1 answer

Draw to framebuffer object, then blit to primary display (GLES 3.0)

I am attempting to create a framebuffer object, and then blit it to the primary display. The purpose of this to to cache a screen shot that I can blit to the display whenever I want without re-rendering the object. I am using Open GLES 3.0 with…
Matthew Grivich
  • 431
  • 3
  • 12
1
vote
1 answer

Sampler3D in iOS

I have just include OpenGL ES 3.0 in my iOS app and it is working fine. I have a working shader below: #version 300 es precision mediump float; uniform sampler2D texSampler; uniform float fExposure; in vec2 fTexCoord; in vec3 fColor; out vec4…
maria_20
  • 23
  • 3
1
vote
1 answer

OpenGL ES 3: glGenerateMipmap geometric constraints

I'm working on a mobile OpenGL application for android, using OpenGL ES3.x for the graphics. I would like to use the glGenerateMipmap function, yet I feel ill at ease because I remember that, at least with prior versions of OpenGL, there where some…
Rick77
  • 3,121
  • 25
  • 43
1
vote
2 answers

Generate a depth texture in OpenGL ES 2.0 or 3.0

I have a scene I'm rendering using OpenGL ES in Android (using the Java libs). I want to apply some effects such as depth of field to the scene. I found a nice bokeh shader, and it needs a depth texture to do the job. What I need then, is to…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
1
vote
1 answer

Enabling OpenGL debugging in Google Cardboard apps

I have recently discovered that there is a setDebugFlags method in GLSurfaceView, setDebugFlags(int) reference" and I would try it with my google cardboard-enabled app, yet when I enable it…
Rick77
  • 3,121
  • 25
  • 43
1
vote
2 answers

OpenGL ES 3 (iOS) texturing oddness - want to know why

I have a functioning OpenGL ES 3 program (iOS), but I've having a difficult time understanding OpenGL textures. I'm trying to render several quads to the screen, all with different textures. The textures are all 256 color images with a sperate…
sevensevens
  • 1,703
  • 16
  • 27
1
vote
1 answer

Numerical Instability Causes Crash in iOS OpenGL ES 3.0 Vertex Shader, Shader Language Version 300

I am doing a block matrix inversion of a 6x6 matrix, split into a 4x4, 2x4, 4x2 and 2x2 block, but somewhere along the way something goes wrong and attempting to access one of the values causes a crash. I thought I would try using isnan() or isinf()…
Jon Hardin
  • 41
  • 2