Skip to main content

All Questions

Tagged with
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 ...
papalqi's user avatar
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, ...
LiShaoyuan's user avatar
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, ...
Oussèma Hassine's user avatar
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 ...
ulizai's user avatar
  • 3
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. ...
user avatar
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, ...
zhangbaochong's user avatar
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 { ...
TIANLUN ZHU's user avatar
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 ...
Ace yan's user avatar
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 ...
matthias_buehlmann's user avatar
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 ...
Heiko Averbeck's user avatar
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, ...
Vlad Vyatkin's user avatar
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 ...
SadSido's user avatar
  • 2,551
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 ...
user2503048's user avatar
  • 1,041
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 ...
szMuzzyA's user avatar
  • 126
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 ...
Sirop4ik's user avatar
  • 5,203

15 30 50 per page
1
2 3 4 5
9