Questions tagged [opengl-es]

Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.

-1
votes
0answers
26 views

error OpenGLRenderer: GL error: Out of memory

I have created camera application to detect user face using surface, app gets crash after 30 min and in log-cat error display as GL_OUT_OF_MEMORY. Used Samsung S4 tab. Can you please let me know why ...
-1
votes
0answers
20 views

Cascaded shadow map issue

I am trying implementing the cascaded shadow map I have some strange results with terrains and with different view angles as shown in the attached images. The blue circle is right shadow and the red ...
0
votes
0answers
21 views

How to make webrtc to work on the shared context of my App?

Under Android, my app (a Delphi app) work on its own OpenGL context retrieved via eglCreateContext. So i have the handle (literally a pointer stored in an int64) of the context. Now to make that ...
0
votes
0answers
33 views

How to limit FPS in mediacodec encoding

I use Mediacodec to encode the camera data and limit the FPS to 20 by KEY_FRAME_RATE, but the actual encoded Mp4 video is around 30fps. Is there any way to limit the frame rate? For example, I want ...
0
votes
0answers
33 views

Submitting integer to shader without using uniforms?

I plan to eliminate all glUniform calls from my GLSL shaders in order to save costs in state switching. For that purpose, I plan to use an UBO that is bound to the shader permanently. Different draw ...
2
votes
1answer
54 views

how to use GL_RGB9_E5 format?

I am trying to use GL_RGB9_E5 format with 3D texture. For this I have created simple test to understand the usage of format. Somehow I am not getting what I expect. Following is test program GLuint ...
0
votes
0answers
11 views

opengl es how to map texture to a .obj file with multiple materials

I am currently writing a obj and mtl file glRenderer and I am self learning and new to this. I am using this https://github.com/javagl/Obj to quickly load the file and get vertices indices etc. By ...
0
votes
0answers
14 views

GLFW Application tries to load driver via libGL even though it's linked against libGLESv2

I try to build a GLFW-based application for a rockchip-based board (Rock64 to be precise). The Rockchip implements OpenGL ES, but not standard OpenGL. Thus, I setup GLFW like this (this is Go; however ...
0
votes
0answers
21 views

GLSurfaceView 3.0 transparent without setZOrderOnTop

How to make transparent background for GLSurfaceView without setting setZOrderOnTop? i've chacked all others solutions and questions, and all working of those based on setZOrderOnTop. i've tried ...
0
votes
1answer
53 views

EGL ERROR: “texture resource is NULL, no level was specified”

I get an EGL error: EGL ERROR: type = 0x824c, severity = 0x9146, message ="texture resource is NULL, no level was specified" This error appears when executing glTextSubImage for texId1 in the first ...
0
votes
1answer
38 views

Depth Buffer Not Working With Multiple Shader Programs

I am writing a 3D graphics renderer in C++ using OpenGL-ES for a handheld system and I am utilizing a decal (texture) shader, as well as a color-fill shader. I have two render passes where I use the ...
1
vote
1answer
46 views

How to use EBO drawing in Opengles2.0(Sharpgles)

I am learning Opengl - “Use the Examples/HelloTriangle” and try to draw a rectangle,But i don't know how to use EBO drawing glDrawElements(). This is different from my previous experience in C++. I ...
1
vote
1answer
34 views

Partial redraw to FBO OpenGL

My scene is organized into groups of elements that compose to FBOs backed by floating point textures (16 bit with alpha). These FBOs are then blended together top to bottom to produce the final scene. ...
1
vote
0answers
66 views

What is the best way to have a distortion field on a bitmap?

I'm looking to implement image distortions on specific places (such as the eyes of a face). Tools like this are used in many applications that use facial filters like Snapchat. Tom hardy distorted ...
0
votes
0answers
21 views

React-Native multiple GL Nodes stacked invoke performance issues

I am trying to add multiple effects on a photo in React-Native using gl-react-v2. Here's a simple effect example that I use to edit an image: import GL from 'gl-react'; import React from 'react'; ...
0
votes
1answer
34 views

glInvalidateFramebuffer and data usability time

I render to a number of FBOs with the intent of binding them as a texture in a later drawcall. As far as I know, I should call glInvalidateFramebuffer if I do not intend the data in the FBOs to be ...
0
votes
0answers
10 views

OpengGL How to render a picture before render the YUV data of video

I'm using OpengGL PBO to render the YUV data of video ,but I want to render a default picture before rendering the YUV data, it writes 'video is loading...' in the default picture. create the PBO ...
1
vote
0answers
110 views

The stencil buffer doesn’t draw a part of the tiles

Well, I’m trying to draw tiles into a stencil buffer, but while drawing obviously happens something that I don’t understand and during the drawing disappearing (not drawn) part of the tiles. So, how I ...
0
votes
0answers
17 views

W/OpenGLRenderer: Path too large to be rendered into a texture on React native (Android) when drawing a view inside Scrollview

I am trying to create a view inside a long scroll view. the height of this scroll view is 3680 and the height of the inside view will dynamically change its size(0-3680). but in some device when the ...
-1
votes
0answers
29 views

Android 3d cube rotation and drag-and-drop

I created a 3d cube in android using OpenGL, the cube can be rotated into any direction and everything works perfectly, i took a step forward and wanted to move the 3d cube by " drag and drop " but ...
1
vote
0answers
23 views

Is there a way to use more than one Libgdx View in a single Activity at the same time?

I am trying to add two AndroidFragmentApplication in the single Activity. But only the last added fragment actually renders on the screen. Other fragment does not show anything. What do i need to do ...
1
vote
1answer
28 views

glDepthMask seems did not work as expected?

I render two triangles: one is a smaller red triangle with negative depth value(z coordinate of the vertex), the other is a bigger triangle with a positive depth value. float smallVertices[] = { ...
1
vote
1answer
34 views

OpenGL ES3: no matching overloaded function found for packUnorm2x16

I am trying to pack 2 float values into 1 uint value using packUnorm2x16 method of OpenGL ES3 GLSL. But the compilation of the shader fails with 'packUnorm2x16': no matching overloaded function found ...
2
votes
1answer
35 views

How to catch “Fatal signal 11 (SIGSEGV)”?

In my android OpenGL ES project i recently had an error in my shader code, which apparently caused a "Fatal signal 11 (SIGSEGV)" in the OpenGL Thread here: GLES32.glCompileShader(glShaderHandle); I ...
-1
votes
0answers
19 views

Best way to call multiple texImage2D (Opengl ES)?

In my program, I have to call GLUtils.texImage2D every frame because bitmaps for texture are changing every frames. (no fixed, and no loop) But texImage2D seems slow to call every frame in android. ...
0
votes
0answers
27 views

How Matrix.preRotate() | Matrix.setRotate() | Matrix.postRotate() transformation works in Android

As far Matrix.preTranslate(float dx, float dy) works like this(In mathematical form) : [MSCALE_X MSKEW_X MTRANS_X] [1 0 MTRANS_X] [MSKEW_Y MSCALE_Y MTRANS_Y] * [0 1 MTRANS_Y] [MPERSP_0 MPERSP_1 ...
0
votes
1answer
48 views

How to add a semi-transparent background on top of camera ARKit

I'm trying to add a semi transparent background that cover my camera view from ARKit. I try different things : Add background to sceneView.scene but that not support transparency Add an ...
0
votes
0answers
33 views

glReadPixels returns a blank image on disabling blend

I'm drawing the same texture twice; one on top of the other. The second texture is zoomed in, to create a picture in picture effect. I'm using the same vertex and fragment shaders, and the same ...
-2
votes
0answers
23 views

Access denied finding property ro.vendor.hwui.texture_cache_size

While launching activity I am getting this error, Access denied finding property ro.vendor.hwui.texture_cache_size Everything was working properly till Android OREO but not working in android Pie. ...
0
votes
0answers
38 views

glWaitSync and large buffer uploads

Following scenario: Worker thread that allocates and uploads gpu buffers, then calls glFenceSync. Render thread receives buffer handles and draws them using glWaitSync for synchronization. Now my ...
0
votes
0answers
27 views

How to control OpenGL Blinking Program

I want to start the program with the background not blinking red and only blinking while the audio is active where it will stop on the black color. Currently, whenever I introduce the pause method it ...
0
votes
0answers
26 views

Alternative to glFence in OpenGLES 2

I have to port an application that uses glFence for synchronization to GLES 2. Can anyone tell me what alternatives I have?
0
votes
0answers
36 views

What is the final arbiter of window background color?

All my themes specify background as a simple color: <item name="android:windowBackground">@color/*whatever*</item> But in fact, at Activity startup, I always override thus: ......
1
vote
1answer
53 views

How to fix OpenGLES glDrawElements

When attempting to draw a cube loaded from an .obj file all triangles share a single point. Additionally not all of the triangles seem to be rendering. I've noticed that changing the vertex count for ...
1
vote
0answers
117 views

Is there a way to access a vector by coordinates as you would a texture in GLSL?

I am implementing a feature extraction algorithm with OpenGL ES 3.0 (given an input texture with some 1's and mostly 0's, produce an output texture that has feature regions labeled). The problem I ...
0
votes
0answers
86 views

Android java opengl destroying context when switching scenes

Hi I'm trying to manage switching opengl scenes for my android java app, but when I try it destroys the context and glclearcolor isn't working. I've just learned polymorphism and my setup is like this....
1
vote
1answer
55 views

Unable to compile opengl fragment shader in android - ERROR: 0:7: 'gl_GlobalInvocationID' : undeclared identifier

Unable to compile the following opengl fragment shader code in android.The GLES31.glGetString(GL_VERSION) shows the opengl version to be 3.2 and the device also seems to supports this version. Error:-...
0
votes
1answer
50 views

Cascaded shadow map unexpected behavior

I'm implementing the Cascaded Shadow Map technique, I get unexpected result First I initialize the buffer and the textures: glGenFramebuffers(1, &m_fbo); glBindFramebuffer(GL_FRAMEBUFFER, m_fbo);...
0
votes
0answers
28 views

Android OpenGL Gestures and Accessibility

I have an Android App where one of the Activities renders a bunch of OpenGL widgets. I'm trying to make my OpenGL widgets work with accessibility and I have it mostly working where I can get the ...
1
vote
2answers
59 views

What's minimum required code to MODIFY a WebGL shader at runtime?

Suppose I have created a WebGL program, attached some initial shaders, linked the program, validated and after some time I want to modify source of one of the attached shaders. Should I create a new ...
0
votes
0answers
27 views

How do I automatically define the index of a vertex list to draw a shape?

I have an image, and I scanned it to find the edges I wanted (represented by image 1). Then, with the positions (in pixel) of it, I traced a line to close it, using an equation, and found the distance ...
0
votes
0answers
20 views

Reading the frames processed by Renderer with MediaCodec encoder

Currently I am working with Camera2 API and have managed to move the camera frames processing to the OpenGL context (currently for preview only); for this I bind a Renderer to the GlTextureView (a ...
1
vote
1answer
50 views

Specifying OpenGL Desktop instead of ES for Qt5

I am finally trying to wrap my head around shaders, using a tutorial I found. I decided to start with Qt5 (Windows) since I'm familiar with it and can focus on learning GLSL itself to start with. The ...
-1
votes
0answers
56 views

Mask Image to Video Frame & implement animation

I'm using ffmpeg to mask image into video. But i can't get result as expected. I want to mask images and implement animation in the video same as in MV Master app. It's being very helpful if anyone ...
0
votes
1answer
29 views

glBufferSubData is very slow on many android device

I have requested about 2M gl buffers for share, and update the data for vertex and index with glBufferSubData, it works fine on my iOS devices. while, when I test it on my android devices, it very ...
0
votes
1answer
39 views

eglSwapBuffers fails with EGL_BAD_SURFACE when using a Surface from MediaCodec

I'm trying to encode a movie using MediaCodec and Surfaces (pixel buffer mode works, but performance is not good enough). However, every time I try to call eglSwapBuffers(), it fails with ...
0
votes
1answer
16 views

Memory footprint of VAOs

Can someone tell me how large VAOs are in cpu/gpu memory compared to VBOs? My plan was to allocate a large number of VAOs at program start as a pool, then assign them to certain render calls as needed....
0
votes
0answers
34 views

Conflict with OpenGL ES rendering and windows multithreading

I want to do work preparing my VBO on seperate threads typically 5 or 7. I am not making any OpenGL ES calls on these threads, just getting data into my CPU side vertex buffer which i use to write ...
0
votes
0answers
47 views

Asynctask (progressDialog) - Failed to set damage region EGL_BAD_ACCESS

Help me - I am really stuck on the following issue: The exception is thrown outside the scope of JVM and cannot be handled unless you know the NDK. 03-23 17:48:24.463 18768-18913/se.android.appinfo ...
1
vote
0answers
40 views

Phantom images on SurfaceView if app comes to forground again before onPause completes

I am writing a game for Android using the Java for the user interface and C++ with the NDK for the render thread. It uses Vulkan if available and otherwise uses OpenGL ES. This bug occurs in OpenGL ...

http://mssss.yulina-kosm.ru