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, PDAs, and video game consoles. OpenGL ES is managed by the not-for-profit technology consortium, the Khronos Group, Inc.

Last version is OpenGL ES 2.0, 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.

482 questions
7
votes
2 answers

How can I determine how widespread support of OpenGL ES 3 is?

I am developing new app in OpenGL which should run on iOS and Android devices. I'd like to use OpenGL ES 3. For iOS that's not a problem, since any iPhone newer than the 5 has GLES 3. But I am not sure how wide-spread GLES 3 is in the Android world…
Martin Perry
  • 1,106
  • 1
  • 12
  • 29
7
votes
2 answers

OpenGL ES 2.0: Mixing 2D with 3D

Is it possible to mix 2D and 3D graphics in a single OpenGL ES 2.0 game, please? I have plenty of 2D graphics in my game. The 2D graphics is represented by two triangular polygons (making up a rectangle) with texture on them. I use orthographic…
Bunkai.Satori
  • 2,743
  • 9
  • 36
  • 47
5
votes
2 answers

How to send multiple MVP matrices to a vertex shader in OpenGL ES 2.0

I'm working my way through optimizing the rendering of sprites in a 2D game using OpenGL ES and I've hit the limit of my knowledge when it comes to GLSL and vertex shaders. I have two large float buffers containing my vertex coordinates and texture…
Carbon Crystal
  • 143
  • 2
  • 6
4
votes
2 answers

How to convert from OpenGL to OpenGL ES?

I need to convert code from OpenGL to OpenGL ES 1.1, I found that the GLUT library is missing in that. Can anyone tell me what do I do to replace glRasterPos3f in OpenGL?
celin
  • 41
  • 1
  • 2
3
votes
2 answers

how to apply a texture to a 3d scene background?

i don't really know the exact term for that (i thought it was hdr but no...). i want to put a texture as a background in opengl-es , and when we rotate the view , the background rotate too (obviously) but when there is translation , the background…
eephyne
  • 359
  • 1
  • 4
  • 11
3
votes
1 answer

culling lines on the back of a globe

I am drawing a simple outline of the world using GL_LINE_STRIPs (in WebGL). I want to not draw those lines that are on the other side of the spinning globe. Using Nicol Bolas approach below I am trying to determine if a point is going away from the…
Will
  • 6,977
  • 4
  • 36
  • 59
2
votes
1 answer

Weird texture binding bug on Mali-400 MP

On Mali-400 MP, there's a weird bug with texture binding. Sometimes, shaders use textures from wrong samplers. On other mobile and desktop GPUs, the same code works fine, but on Mali, almost every draw call is broken: As you see, lightmap texture…
Triang3l
  • 606
  • 4
  • 15
2
votes
0 answers

Is there a way to export 3D objects with animation from Blender or any other app into OpenGL ES 1.1 code?

The problem is that all the examples I've found are obsolete or iOS/Android specific and not "pure" OpenGL ES 1.1. If anyone can provide me with a good example/tutorial/book it would be very much appreciated! Thank you!
emmerich
  • 121
  • 1
2
votes
1 answer

How to transform only part of an array in OpenGL ES?

I have one texture atlas of which I select the "non-animated textures", I put all vertex and UV coordinates in two array: vertices = new float[] { // background 0.0f, 1920f, 0.0f, 0.0f, 0.0f, 0.0f, …
Dr. Mundo
  • 47
  • 6
2
votes
2 answers

How reliable is glLineWidth() for parameters greater than 1?

It says in the OpenGL ES specification that glLineWidth is only required to support values up to 1, but how many OpenGL drivers actually keep this function at the minimum requirement?
Cpp plus 1
  • 289
  • 1
  • 10
2
votes
2 answers

Is there any scroll algorithm for OpenGL ES?

I was working on J2ME games in the past, when draw a large backgroud, I always use the Carmack 2d scroll algorithm, keep a image buffer a little larger than device screen, draw the changed small tiles to this buffer, then draw the buffer to device…
mario
  • 21
  • 2
2
votes
2 answers

IOS/Android Game programming

I am somewhat new to the whole game programming thing. I was wondering if I could develop a game for IOS and Android with using openGLES. if so how can I run the code on the devices and what are some good resources to continue learning from. I am…
Dev_ST
  • 21
  • 2
2
votes
2 answers

Is it possible to convert vec4 to int in GLSL (using OpenGL ES)

I need GPU to do some computations, and I pass shader an int array using glTexImage2D (internal format is GL_RGBA). I use texture() to get the data, but it returns a vec4 value. Is it possible to convert vec4 to int in GLSL?
KiBa1215
  • 23
  • 1
  • 5
1
vote
0 answers

OpenGL ES - jagged edge

I need to render roads and some direction marks on top of them. I render roads as triangled geometry, same goes for marks (see picture - road is purple, mark is red, ignore z-fighting). Problem goes for edge of road. Is too much "jagged" and not…
Martin Perry
  • 1,106
  • 1
  • 12
  • 29
1
vote
2 answers

How to create a projection matrix in OpenGL ES 2.0

So I have the following... float s = 0.5f; void renderFrameLine() { glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); GLfloat vVertices[] = { s, s, 0.0f, s, -s, 0.0f, -s, s, 0.0f}; …
Jackie
  • 455
  • 1
  • 7
  • 16
1
2