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

Multiplying int by 65536 in shader does not compile on older ES 2 device

When I execute int temp2 = temp1 * 65536; in my vertex shader on my old Xperia J smart phone (about 8 or so years old), I get a shader compilation error - unfortunately the API does not display the reason for the error. But when I run the same code…
user1300214
1
vote
1 answer

Same program, target both Open GL and Open GL ES 2.0

Can one run the same program (unmodified) on both the "desktop" OpenGL and OpenGL ES 2.0 platforms, provided that this program only performs 2D accelerated rendering? An average Windows desktop PC and Raspberry Pi will run the program. The GL…
E. van Putten
  • 615
  • 7
  • 17
1
vote
0 answers

OpenGLES draw arrow base on touch

I want to draw arrows like this: I've tried use normal vertex & fragment shader like google samples, with 5 points for vertex coords: static float vertexCoords[] = { -0.3f, 0.2f, 0.0f, // bottom left swing 0.0f, 0.5f, 0.0f, //…
nhoxbypass
  • 9,695
  • 11
  • 48
  • 71
1
vote
0 answers

Change Color for Motion inside Texture OpenGL ES 2.0

I am developing a camera application, where I am applying simple RGB shift filter which is below: void mainImage( out vec4 fragColor, in vec2 fragCoord ) { vec2 uv = fragCoord.xy / iResolution.xy; vec3 col; float eps =…
Sohil R. Memon
  • 9,404
  • 1
  • 31
  • 57
1
vote
0 answers

How do I call gles20 continuously in sub thread in unity android plugin

I have a problem in the USB device with camera. And its SDK is special that I can't use webtexture in unity. So I would like to use gles20 to transport camera image to unity. But the callback is in sub thread and it can't render gles20. Texture id…
oscar
  • 11
  • 1
1
vote
0 answers

Drawing Textured Cube in Android NDK using opengl-es2 will not draw anything

i am trying to draw a textured cube with non-interleaved/seperate buffers for each positions/texture-coordinates/normal buffers. as i am using opengles-2 i am not using VAO. code runs without errors but output is blank. i tried several variations of…
Sadern Alwis
  • 104
  • 1
  • 4
  • 17
1
vote
1 answer

Positioning objects in a 3D Scene and then figuring out what the user clicked on

I'm building a cross-platform game in C++, using OpenGL ES 2.0. The target is iPhone at the moment. I'm a newbie to coding games, but not a newbie to coding. I'm confused about how to architect the game. But specifically, I'm asking about how to…
101010
  • 14,866
  • 30
  • 95
  • 172
1
vote
0 answers

While rendering on openGL error code 138 is reported

In openGL When create a new texture below error occured. NCGSYS_FrameMemAlloc : AllocateAnyMemoryRegion (kernel) failed - 138.
senthil
  • 31
  • 3
1
vote
1 answer

Random disappearing part of rendered image

I am creating a simple traingle strip to cover the whole viewport with a single rectangle. Then I am applying a 100x100 texture to this surface which changes with every frame. I set up viewPort and initialise my vertexBuffer etc. in the…
ize8
  • 95
  • 7
1
vote
1 answer

Shaders compile and link without error, but texture still not visible

I would like to display a very simple texture on a GLSurfaceView which covers the whole viewport. I have a perfectly running version in WebGL, but for some reason my android code is not displaying my texture (at all). Tried to hard code the color in…
ize8
  • 95
  • 7
1
vote
1 answer

Opengl context in flutter

My Android project uses an opengl lib written in c++, I'm using an Android SurfaceView subclass, now I would like to recreate my app starting with a flutter project. Some of you know how can I achieve it? Thanks.
1
vote
1 answer

openGLES 2 - Is there a way to load a texture with one alpha element per 1-bit, without expanding to an unsigned byte?

I have a bitmask that I would like to set as a texture to play with (e.g. sample from it setting alpha to either 0 or 1, or use it as stencil test). Do I need to make each bit in this existing mask into a byte and use GL_UNSIGNED_BYTE or is there a…
C Coder
  • 55
  • 5
1
vote
1 answer

How can I read more than 4 vertex data from an array in OpenGL ES 2.0?

I am trying to draw points one next to each other in OpenGL ES 2.0 from float array buffers for vertex position and color, but it can only accept 4 vertexes per draw. When I add more then tell it to draw more then it would only draw 2 non-adjacent…
IOviSpot
  • 358
  • 3
  • 19
1
vote
0 answers

White screen Flicker for rendering image

This is first time posting here, Am new to the openGL. Am trying to display the camera content with fish Eye correction(using fragment shader) . Its work fine but some times white flicker occurred on complete screen and below error code occurred…
senthil
  • 31
  • 3
1
vote
1 answer

How can I load multiple textures in Opengl es 2.x (in android with libgdx)

Gdx.gl20.glActiveTexture(GL20.GL_TEXTURE0); texture.bind(); I am able to bind 1 texture like this... But if I cant figure out how to bind more textures.
Lerchmo
  • 189
  • 1
  • 12
1 2 3
99
100