Questions tagged [gles]
8 questions
1
vote
2 answers
Android GLES - Flame shader
I'm quite starter of using GLES 2.0 on Android and I am trying to create a Flame-shaped shader using GLSL. I tried applying the shader from the following link:
https://www.shadertoy.com/view/MdKfDh
However, the result I got is not satisfactory.
The…

JoonSoo Park
- 43
- 12
1
vote
0 answers
OpenGL: Render a rectangle with one rounded corner
I am trying to render a rectangle in OpenGL with one rounded corner, as such:
I have a shader that successfully accomplishes this on Shadertoy, shown below:
const vec4 color = vec4(1);
const vec2 half_size = vec2(150.0, 100.0);
const float radius…

willmckinnon
- 11
- 2
1
vote
0 answers
Why Black Screen on native Android
I am trying to "software render" a pixel array to the screen in Android 12, using C and OpenGLES.
Relevant code - where I am expecting a 0xff0000ff (red) or 0xff00ffff (violet) rectangle:
GLbitfield *rectangle;
GLbitfield *picture;
void…

Irchel
- 11
- 2
1
vote
1 answer
Using GL_RED_INTEGER for object picking (GLES 3.0)
I have a scene where I draw a bunch of objects. I want the user to be able to select each object via a mouse. What I want to do is render the scene to a texture, draw each object as a purely solid color (in which the ID of the object is encoded). …

KiraHoneybee
- 495
- 3
- 12
0
votes
0 answers
Make depth-stencil buffer to be in `GL_DEPTH32F_STENCIL8` format
I have a code that makes depth-stencil buffer to be in GL_DEPTH32F_STENCIL8 format with some offscreen render buffer:
glGenRenderbuffers(1, &rboDepthStencil);
glBindRenderbuffer(GL_RENDERBUFFER,…

Alexey Starinsky
- 3,699
- 3
- 21
- 57
0
votes
1 answer
R function to list labels of columns of .sav-Dataset
I want to be able to read trough the variable/columns to choose useful variables for my analyis. Therefore i want to have the labels as well, since the variable names are not human-readable.
I downloaded the GLES-Dataset ZA7729 as .sav-file from…

Meganton
- 1
- 2
0
votes
0 answers
width of sampler2D must be the multiple of 16
As the topic say, the sampler2D binding to a texture which is storage to 125x94, 125 is width, 94 is height,when I use texelFetch(sampler2D, ivec2(0, 1), 0),the 128th number is token, seems like width is 128 not 125,why?
Is there some docs to prove…

xxxLD
- 1
0
votes
1 answer
Use LoadModelFromMemoy in ASSIMP to load obj model with no texture loaded
I'm currently working on an Android project where I need to load .obj file with ASSIMP on Android Platform. My way of implementing that is to use the AssetManager to load the .obj file into memory first, and then using the…

Daoming Dong
- 3
- 1