Questions tagged [opengl-es-3.0]

Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones. The version 3 was 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.

Subset of the OpenGL 3D graphics API (especially, subset of OpenGL 3 Core Profile) designed for embedded devices such as mobile phones. The version 3 was publicly released in August 2012. OpenGL ES 3.0 is backwards compatible with OpenGL ES 2.0, enabling applications to incrementally incorporate new visual features.

Resources:

264 questions
3
votes
1 answer

Why can't I use OpenGL ES 3.0 in Qt?

I set a QSurfaceFormat on my window, and this surface format has "3.0" set as its GL version number. The code: static QSurfaceFormat createSurfaceFormat() { QSurfaceFormat format; format.setSamples(4); format.setDepthBufferSize(24); …
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
3
votes
1 answer

GLSL shader with optional attributes

I'm trying to create an übershader to represent some wavefront data which might or might not contain some properties, e.g.: one or more objects might contain uv coordinates and a texture one or more objects might contain normal mapping for each…
Rick77
  • 3,121
  • 25
  • 43
3
votes
1 answer

OpenGL ES 3.0 GL_POINTS doesn't render anything

Below is a mininal reproducer: GL_CHECK(glClearColor(0.4f, 0.4f, 0.4f, 1.0f)); GL_CHECK(glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT)); GL_CHECK(glUseProgram(this->pp_->shader_program)); …
arul
  • 13,998
  • 1
  • 57
  • 77
3
votes
2 answers

glMapBufferRange returning all zeros in Android

I am having trouble reading out from a buffer mapped with glMapBufferRange If I simply put some data in a buffer // Create input VBO and vertex format int bufferLength = 5 * 4; //5 floats 4 bytes each FloatBuffer data =…
HPP
  • 1,074
  • 1
  • 13
  • 28
3
votes
1 answer

glMapBufferRange() returns all zeros in Android OpenGLES 3.0 using TrasnformFeedback

UPDATE: This is working and up on gist now! Thanks Reto I am working on an Android implementation of transform feedback following this example. runs pretty well without any errors, but I am getting all zeros out when reading the TransformFeedback…
HPP
  • 1,074
  • 1
  • 13
  • 28
3
votes
1 answer

OpenGL ES 3.0 half float (R16F) textures

Can someone answer me how come this line: GLES30.glTexImage2D(GLES30.GL_TEXTURE_2D, 0, GLES30.GL_R16F, width, height, 0, GLES30.GL_RED, GLES30.GL_HALF_FLOAT, myBuffer); works on tegra4 but doesn't work on ARM Mali-T628 MP6? I am not attaching…
user1577566
  • 95
  • 1
  • 8
3
votes
1 answer

AssetManager is not working from NDK

I am working with OpenGL ES 3.0 and using Eclipse NDK for rendering volume data with Google Nexus. I am using AssetManager for loading the volume data which is a raw file of 16 MB to the real device but it's not working. I stored the resource in the…
user3492894
  • 43
  • 1
  • 6
3
votes
2 answers

Cost of switching between many EAGLContexts?

I’m working on some code that has a grid view (~20 child views on screen at once). Each child view draws its content in GL, and has its own drawing thread and EAGLContext. The advantage of this is that each view is relatively insulated from other GL…
David Cairns
  • 603
  • 5
  • 18
3
votes
1 answer

How to get supported OpenGL ES versions available on any given iOS device at runtime?

I am looking for a way to get a list of supported OpenGL ES versions OR max OpenGL ES version available on a iOS device at runtime ? Ideally the solution MUST not: not check for the particular device model PS: Project settings: Base SDK = Latest…
David Andreoletti
  • 4,485
  • 4
  • 29
  • 51
3
votes
1 answer

vertex shader without attributes

Can we have vert shader without attributes? #version 300 es out mediump vec4 basecolor; uniform ivec2 x1; void main(void) { if(x1 == ivec2(10,20)) basecolor = vec4(0.0, 1.0, 0.0, 1.0); else basecolor =…
debonair
  • 2,505
  • 4
  • 33
  • 73
2
votes
1 answer

Convert Pixels Buffer type from 1555 to 5551 (C++, OpenGL ES)

I'm having a problem while converting OpenGL video plugin to support GLES 3.0 So far everything went well, except glTexSubImage2D the original code uses GL_UNSIGNED_SHORT_1_5_5_5_REV as pixels type which is not supported in GLES 3.0 the type that…
Bashar Astifan
  • 432
  • 6
  • 13
2
votes
1 answer

Can an layout(location=n) out skip an index for drawBuffers in WebGL?

I'm working on MRT in my graphics engine. An interesting point i'm at (and aim to fix) has my generated fragment shader spitting out: layout(location = 0) out vec4 thing1; layout(location = 2) out vec4 thing2; The drawBuffers call on the…
Diniden
  • 1,005
  • 6
  • 14
2
votes
1 answer

Drawing rectangle with opengl es on android doesn't work

I'm trying to draw a rectangle with opengl es 3.0 on android but it doesn't work. I can fill background with color but objects are not rendered. It's strange becouse i copied most of code from my old project which works. But from this time android…
Bogus
  • 283
  • 1
  • 2
  • 13
2
votes
1 answer

OpenGL and AWT/Swing User Interface

I am currently developing 3d viewer with OpenGL (LWJGL) for an embedded system. Without going into much detail, there is an application written on Java/Swing that currently has fully implemented UI and logic on Java+Swing. But it was decided that…
Vlad Vyatkin
  • 544
  • 5
  • 16
2
votes
1 answer

Reading depth buffer using OpenGLES3

In OpenGL I am able to read the z-buffer values, using glReadPixels, like so: glReadPixels(scrx, scry, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &depth); If I do the same in OpenGL ES 3.2 I get a GL_INVALID_OPERATION error. Checking the specification, I…
Bram
  • 7,440
  • 3
  • 52
  • 94
1 2
3
17 18