All Questions
122 questions
0
votes
0
answers
32
views
Why is source alpha forced to 1 in my alpha blended R16 RenderTarget?
In my shader, I have a half-precision floating-point variable named DepthAux, which is bound to the first render target (SV_Target1) and has an R16 format. I've enabled alpha blending for this render ...
0
votes
0
answers
123
views
OpenGLES(3.0) glFinish immediately after FenceSync in multi-threaded
The status of multi-threaded rendering OpenGL ES is as follow:
Thread A
glBindFrameBuffer(...);
...
glDrawElements(...);
...
GLsync sync = glFenceSync(...);
Thread B
....
glWaitSync(sync , flags, ...
0
votes
1
answer
2k
views
libEGL: eglMakeCurrentImpl:1038 error 3002 (EGL_BAD_ACCESS) with lazyGrid android compose
I am working with lazyGrid from android-compose to display a grid of videos like bellow
and I am showing the video feed using a custom view from a third party library.
For now everything works well, ...
0
votes
1
answer
1k
views
Newer Android devices and GLES 3.2 support
Is it expected (or what is the likelihood) that newly produced Android devices to not have GLES 3.2 support? We're developing children apps so we're trying to see what are the odds we get new devices ...
0
votes
0
answers
402
views
Android OpenGL es weird buggy black squares on the screen
I'm making an OpenGL es 3.0 app for android, and recently, I started to see weird black squares on my screen:
I have a fairly low-spec phone, and I suspect it is related to how much I ask of the GPU.
...
0
votes
2
answers
123
views
ios opengles sample texture error (use stb_image)while android is ok
I use stb_image load texture, such as
stbi_set_flip_vertically_on_load(true);
GLuint textureID;
glGenTextures(1, &textureID);
int width, height, nrComponents;
unsigned char *data = stbi_load(path, ...
3
votes
1
answer
169
views
Can I have two uniform buffer pointing to same block in OpenGL?
I am a newbie of OpenGL. I am trying to update some variables of a constant block. For example,
I have a block like(Copied from opengl learnopengl.com):
layout (std140) uniform ExampleBlock
{
...
0
votes
1
answer
210
views
Is there any special optimization for commands like glReadPixels on the mobile platform?
glReadPixels reads data from the framebuffer located in the video memory to the main memory. On the PC side, the performance is limited by the PCI-E bandwidth. However, on some mobile platforms, the ...
0
votes
2
answers
658
views
OpenGL ES / Vulkan: Per fragment stencil write/test (on Qualcomm Snapdragon XR2)
I would like to render two meshes, the first one writing into the stencil buffer and the second one testing against it.
I want to do that on a per fragment level though (the fragment shader of the ...
0
votes
1
answer
199
views
Android Rendering: Is actually in the end everything rendered via OpenGL
Is actually in the end everything rendered via OpenGL in Android. I have already checked out this video https://youtu.be/zdQRIYOST64 and the relevant documents. And it seems that not all is rendered ...
0
votes
1
answer
103
views
Losing AWT DrawingSurface when Canvas is hidden
I am writing 3d rendering module for an AWT/Swing application.
To provide good FPS, I can't draw using Swing/AWT methods and graphics. Instead, I obtain the Drawing Surface from the Canvas element, ...
1
vote
1
answer
390
views
Rendering a float buffer on screen with OpenGL ES
I have a FloatBuffer as an output from the neural network, where the RGB channels are encoded with [-1 .. +1] values. I would like to render them on-screen, using GLSurfaceView. What is the best way ...
5
votes
2
answers
2k
views
Global translucency sorting with instanced rendering
My rendering code is structured such that there are models, and there are model instances.
You can have N instances per model, and all visible instances of the same model are rendered at the same time ...
1
vote
1
answer
435
views
OpenGL ES Drawing Shapes
I'm learning OpenGL ES to render for native android development. I'm able to get a triangle to draw. But I cannot get more than one triangle to draw. I just want to draw a rectangle, but if I tell ...
0
votes
0
answers
483
views
How to set frequency of render OpenGL ES Android
Regular frequency of onDrawFrame() method is 16.6 milliseconds (60 fps), but what if I would like to reduce this frequency to 32 milliseconds (30 fps)...
Question is - is there some method like ...