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
14
votes
1 answer

Difference between glOrthof and glViewPort

On OpenGL-ES i'm confused on what the difference is between setting glOrthof() glViewPort() GLU.gluOrtho2D() with it's respective parameters. Since I believe it's all setting the part you can see to the specified coordinates (width, height).…
user717572
  • 3,626
  • 7
  • 35
  • 60
14
votes
2 answers

How to dynamically change the playback rate of video in iOS?

The perfect example of what I am trying to achieve can be seen in the Flow ● Slow and Fast Motion app . One can change the playback rate of the video by dragging points on the curve up or down. The video can also be saved in this state. I am…
user7404038
14
votes
6 answers

Android - Update Bitmap from timer thread

I got an Android project composed by a single Layout with an ImageView. public class MainActivity extends AppCompatActivity { /* original and stretched sized bitmaps */ private Bitmap bitmapOriginal; private Bitmap bitmapStretched; …
Davide Berra
  • 6,387
  • 2
  • 29
  • 50
14
votes
2 answers

SceneKit – Drawing on 3D Object

I created sample application to draw on 3d objects, the output drawing is not smooth(as in figure). I spent nearly a day to figure out what is the issue still not able to solve. What might be the issue? I am creating custom drawing geometry like…
Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63
14
votes
3 answers

How to draw a bitmap on Android using OpenGL

I have a byte array of RGB values, just like the contents(without header) of a *.bmp file. What I want to do is, draw the corresponding bitmap on Android, using OpenGL. It seems that OpenGL ES doesn't have a single API that will do, it true? If…
MaratSafinWang
  • 383
  • 1
  • 5
  • 13
14
votes
2 answers

Artifacts from linear filtering a floating point texture in the fragment shader

I'm using the following code taken from this tutorial to perform linear filtering on a floating point texture in my fragment shader in WebGL: float fHeight = 512.0; float fWidth = 1024.0; float texelSizeX = 1.0/fWidth; float texelSizeY =…
Mad Scientist
  • 18,090
  • 12
  • 83
  • 109
14
votes
4 answers

How to perform bit shift without ("<<" || ">>") operator efficiently?

I am working on a OpenGL ES 2.0 shader and I have tightly packed data e.g. three 5-bit unsigned integers within a block of two bytes. To unpack this data I obviously need bit-shifting, but this is not supported in OpenGL ES Shading Language (see…
Lars Schneider
  • 5,530
  • 4
  • 33
  • 58
14
votes
6 answers

How to measure VRAM consumption on Android?

I want to acquire Android Device VRAM size. Is there a method for acquisition from the program?
salyutan
  • 203
  • 1
  • 3
  • 10
14
votes
3 answers

When should we use LAYER_TYPE_HARDWARE

After reading on http://developer.android.com/guide/topics/graphics/hardware-accel.html , my understanding on 3 different type of layering techniques are (Assume the device has GPU) LAYER_TYPE_SOFTWARE - Draw is performed by software on software's…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
14
votes
8 answers

Change texture opacity in OpenGL

This is hopefully a simple question: I have an OpenGL texture and would like to be able to change its opacity, how do I do that? The texture already has an alpha channel and blending works fine, but I want to be able to decrease the opacity of the…
zoul
  • 102,279
  • 44
  • 260
  • 354
14
votes
3 answers

Are OpenGL ES Vertex Array Objects supported in any Android Emulator?

I've been trying to run code that uses VAOs in C++ using the Android NDK, and running on an emulator. I expect to be able to use glDeleteVertexArraysOES, glGenVertexArraysOES, and glBindVertexArrayOES. I found that the emulator fails to run the…
Cypress Frankenfeld
  • 2,317
  • 2
  • 28
  • 40
14
votes
1 answer

Learning to code on iOS - swift vs Objective C dilemna

I have just finished a year of university and learnt how to write nice applications with C++, OpenGL and Qt. I was just about to start learning Objective C and Cocoa. This seemed optimal to develop iOS & Mac apps since Objective C was, like C++, a…
alexbcg
  • 193
  • 1
  • 1
  • 6
14
votes
2 answers

What is the easiest way to draw texture with OpenGL ES?

I saw this Google IO session: http://code.google.com/intl/iw/events/io/2009/sessions/WritingRealTimeGamesAndroid.html He says that the draw_texture function is the fastest and VBO is 2nd faster. But I don't understand how to use it(the draw_texture…
Adir
  • 1,423
  • 3
  • 19
  • 32
14
votes
1 answer

Recording a Surface using MediaCodec

So, In my application, I am able to show effects(like blur filter, gaussian) to video that comes from Camera using GPUImage library. Basically, I (library) will take the input from the Camera, get's the raw byte data, converts it into RGBA format…
14
votes
2 answers

OpenGL Sampling with no texture bound

When sampling a texture in GLSL like this: vec4 color = texture(mySampler, myCoords); If there is no texture bound to mySampler, color seems to be always (0, 0, 0, 1). Is this the standard behavior? Or may it be undefined on some implementations? I…
Jerem
  • 1,725
  • 14
  • 24