Questions tagged [opengl-es-2.0]

Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones. This version 2.0 eliminates most of the fixed-function rendering pipeline in favor of a programmable one.

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

OpenGL ES 2.0 was publicly released in March 2007. It 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. Some incompatibilities between the desktop version of OpenGL and OpenGL ES 2.0 persisted until OpenGL 4.1, which added the GL_ARB_ES2_compatibility extension.

More details at http://en.wikipedia.org/wiki/OpenGL_ES#OpenGL_ES_2.0

Resources:

3921 questions
1
vote
1 answer

OpenGL ES 2.0 / GLSL not rendering data (Kotlin)

I am trying to implement a basic shading program with GLES 2/3, and have pieced together this code from various tutorials. Everything looks correct to me, and it compiles fine, but nothing appears on my screen. It rendered fine until I added Normal…
Jonah M
  • 300
  • 2
  • 13
1
vote
1 answer

Camera2 OpenGL random glitches in video caused by Matrix.rotateM

I used the Grafika app and modified it to use the Camera2 API instead of the old API. I needed to use an OpenGL solution as I need to draw a watermark on top of the video, and Grafika was really useful. Unfortunately, my output videos are recording…
JCutting8
  • 732
  • 9
  • 29
1
vote
1 answer

Android OpenGLES error: Resource deadlock would occur

I'm developing a photo editor app with "blur tool" which allow user to blur photos. To achieve that, I draw another "blur layer" over original image, and use opacity/alpha to show blur points. My shader code: precision mediump float; uniform float…
nhoxbypass
  • 9,695
  • 11
  • 48
  • 71
1
vote
1 answer

Display cube and able to detect which side is touched

I need to display cube in iphone which can be rotated and when touched on any side it should display which side has been touched
Hanuman
  • 642
  • 5
  • 19
1
vote
1 answer

OpenGL ES texture wrap giving weird results sometimes

I am using following method to create OpenGL ES texture on android. private int createTexture(int width, int height, int i) { int[] mTextureHandles = new int[1]; GLES20.glGenTextures(1, mTextureHandles, 0); int textureID =…
Rishabh Dhawan
  • 519
  • 1
  • 3
  • 11
1
vote
3 answers

OpenGl Blending

i want to blend two rects, but i want to draw only blended area (area where rects are intersecting), How to do it
ZZZ
  • 678
  • 2
  • 10
  • 26
1
vote
1 answer

how to use gl_InstanceID in ANGLE_instanced_arrays?

WebGL 1 only supports GLSL ES v1.00. Instanced draw calls are supported with the ANGLE_instanced_arrays extension. The extension was so popular that it became part of WebGL 2.0 DrawArraysInstance. WebGL 2.0 has support for higher versions of GLSL…
amin
  • 3,672
  • 5
  • 33
  • 61
1
vote
1 answer

OpenGL ES Analyzer for iPad

I'm trying to use the OpenGL ES Analyzer for my iPad application and I can't get it to show me any symbols from my code in the extended detail pane's stack trace. I see the names of UIKit and UIApplication and other Apple supplied frameworks in the…
Eric
  • 151
  • 1
  • 9
1
vote
1 answer

Culling off-screen objects in OpenGL ES 2 2D

I'm playing about with OpenGL ES 2.0. If I'm working with a simple 2D projection, if I have a large 2D grid of vertices which are pretty much static (think map tiles), of which only a small proportion are visible at any one time, would it be better…
Mark
  • 1,784
  • 16
  • 26
1
vote
1 answer

Placing QWSWindow's surfaces over QGLWidget's in Qt/Embedded

I'm trying to write a QScreen driver for Qt for Embedded Linux to be able to integrate OpenGL capabilities over the framebuffer. I have both QWS windows together with EGL surfaces on the screen with my driver for the moment. I use the default…
Luca Carlon
  • 9,546
  • 13
  • 59
  • 91
1
vote
0 answers

Why link error with following simple OpenGL ES2 shader?

Just simple programming with follow(from here) float odd = floor(mod(gl_FragCoord.y, 2.0)); // problems come from this line gl_FragColor = vec4(v_color.x, v_color.y, v_color.z, odd); But it can not pass the link. I know it is quite simple,but it…
Forrest
  • 122,703
  • 20
  • 73
  • 107
1
vote
0 answers

MTKView vs GLKView performance on old devices

I am running into weird performance issues on older device (iPad Mini 2 of year 2014) ever since migrating to MTKView from OpenGLES based views. To summarize, I am rendering live video preview using MTKView and also optionally record videos (like in…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
1
vote
1 answer

Display YUV(yuv420p) is not correct on IOS

Using (EAGLRenderingAPI api = kEAGLRenderingAPIOpenGLES2) to displaying YUV on the screen on iOS. But I got this problem, and how to deal with this problem thanks. Display YUV (size-> 3268:1838) isn't correct, showing as: But using the same code TO…
JNYJ
  • 515
  • 6
  • 14
1
vote
0 answers

Problems loading shaders on a 64-bit version of the application

Migrating from 32x to 64x version android game (ndk, openGL ES2). in the 64x some shaders cannot load GLPROGOBJt fnaShaderUtils_Load( GLenum type, GLchar const* source ) { // Compile the shader #if defined(FNPLATFORM_PC) &&…
faust
  • 11
  • 2
1
vote
1 answer

Texture gets blurred when using different scale

I am using OpenGL ES 2.0 ing iOS and I found when I add texture with different size and some of them get blurred, some disappeared. I used mipmap but it doesn't work. glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); …
Dilnar
  • 59
  • 2