Questions tagged [opengl-es]

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

OpenGL for Embedded Systems (OpenGL ES) is a subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones, PDA's, and video game consoles. OpenGL ES is managed by the not-for-profit technology consortium, the Khronos Group, Inc.

Current version is OpenGL ES 3.2 (), publicly released in August 2015.

OpenGL ES 2.0
OpenGL ES 2.0 eliminates most of the fixed-function rendering pipeline in favor of a programmable one. Almost all rendering features of the transform and lighting pipelines, such as the specification of materials and light parameters formerly specified by the fixed-function API, are replaced by shaders written by the graphics programmer. As a result, OpenGL ES 2.0 is not backwards compatible with OpenGL ES 1.1.

OpenGL ES 3.0
The latest major version is the OpenGL ES 3.0 specification, 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.

More information at

  1. Khronos Official page
  2. Wikipedia page on OpenGLES
  3. Khronos OpenGL ES Registry

Books:

14058 questions
17
votes
1 answer

Apply custom filters to camera output

How do I apply custom filters to single frames in the camera output, and show them. What I've tried so far: mCamera.setPreviewCallback(new CameraGreenFilter()); public class CameraGreenFilter implements PreviewCallback { @Override public…
poitroae
  • 21,129
  • 10
  • 63
  • 81
17
votes
3 answers

On-demand OpenGL ES rendering using GLKit

I am looking into converting my OpenGL rendering code to take advantage of a few features of GLKit (namely the asynchronous texture loading and the automation provided by GLKView/Controller). However, it appears that the classes are designed mainly…
Stuart
  • 36,683
  • 19
  • 101
  • 139
17
votes
4 answers

OpenGL ES 2.0 Shader best practices

I've been searching for examples of shaders in OpenGL and I've seen some varying styles. Some shaders specifically use the built in types (ie. gl_Vertex) to transfer data to and from the application code and the shader. Some shaders use the varying…
MarkP
  • 4,168
  • 10
  • 43
  • 84
17
votes
1 answer

AVFoundation: Video to OpenGL texture working - How to play and sync audio?

I've managed to load a video-track of a movie frame by frame into an OpenGL texture with AVFoundation. I followed the steps described in the answer here: iOS4: how do I use video file as an OpenGL texture? and took some code from the GLVideoFrame…
j00hi
  • 5,420
  • 3
  • 45
  • 82
17
votes
6 answers

What happens when you divide by 0 in a shader?

Branching is known to be particularly computationally expensive in a OpenGL ES shader. In such a shader, I check if a value is null before dividing by it, for example: if(value == 0.0) other_value = 0.0; else other_value = 1.0 / value; In…
Stéphane Péchard
  • 2,013
  • 3
  • 22
  • 35
17
votes
3 answers

EAGL: What does it stand for exactly?

I forget, but does EAGL stand for anything specific? Or is it just part of the Core Animation OpenGL naming convention (CAEAGLLayer, etc.)?
Ari Braginsky
  • 928
  • 1
  • 11
  • 21
17
votes
1 answer

GL_TRIANGLES or GL_TRIANGLE_STRIP on iOS?

In this document (Apple's iOS documentation on OpenGL), Apple recommends using triangle strips over (indexed) triangles in OpenGL ES on iOS: For best performance, your models should be submitted as a single unindexed triangle strip using…
zmippie
  • 1,509
  • 2
  • 17
  • 22
17
votes
1 answer

How to implement Drag Distortion Image filter in android?

I am working on custom image filter project. And I came across one challenging task, in which I am supposed to apply distorted filters as can be seen in Funny face effect app. I want to develop first 3 filters as available in Funny Face Effects. So…
Maddy
  • 4,525
  • 4
  • 33
  • 53
17
votes
2 answers

Is using Vertex Buffer Object's for very dynamic data a good idea performance-wise?

I have many particles who's vertices change every frame. The vertices are currently being drawn using a vertex array in 'client' memory. What performance characteristics can I expect if I use a vertex buffer object? Since I have to use a number…
Ari Ronen
  • 2,222
  • 2
  • 22
  • 24
17
votes
2 answers

How to draw a texture as a 2D background in OpenGL ES 2.0?

I'm just getting started with OpenGL ES 2.0, what I'd like to do is create some simple 2D output. Given a resolution of 480x800, how can I draw a background texture? [My development environment is Java / Android, so examples directly relating to…
Mark Ingram
  • 71,849
  • 51
  • 176
  • 230
17
votes
3 answers

Android NDK - OpenGL ES Tutorial/Libraries

Hey! Im looking for an OpenGL library/framework to handle basic drawing code etc for me. Otherwise im also looking for some NDK and OpenGL ES tutorials, I cant seem to find anything out there! Any information would be helpful cheers. Adam
Mimminito
  • 2,803
  • 3
  • 21
  • 27
17
votes
1 answer

How to create dynamic user face model in android?

Hello I want to create the dynamic user face model in android and display to the user. I have searched and found that I need user different angles face frames (Images) like 14 to 16 images and for displaying purpose need to change images (frame)…
Hitesh Bhalala
  • 2,872
  • 23
  • 40
17
votes
1 answer

How do I render a triangle in QOpenGLWidget?

I'm trying to use OpenGL inside of Qt using QOpenGLWidget, but I am having a hard time finding any relevant examples. I am new to OpenGL, so I am trying to learn how to use it, but the tutorials that I find don't seem to apply particularly well in…
5nefarious
  • 347
  • 1
  • 3
  • 11
17
votes
1 answer

OpenGL ES 2.0 and glPushMatrix, glPopMatrix

Does OpenGL ES 2.0 still support glPushMatrix and glPopMatrix? I'm currently using these in the following way: glPushMatrix(); glTranslatef(xLoc, yLoc, 0); [myTexturePointer drawAtPoint:CGPointZero]; glPopMatrix(); I'm asking because I've read a…
MrDatabase
  • 43,245
  • 41
  • 111
  • 153
17
votes
1 answer

How to render to a GL_TEXTURE_EXTERNAL_OES?

I need a way to render to a GL_TEXTURE_EXTERNAL_OES texture. I tried binding the texture to a framebuffer but I got GL_INVALID_ENUM error. Here is some sample code: glEnable(GL_TEXTURE_EXTERNAL_OES); glGenFramebuffersOES(1,…
georgiana_444
  • 171
  • 1
  • 4