Hi,
As the topic says, i want to draw an antialiased line on OpenGL ES 2. Note that the glHint only accepts GL_GENERATE_MIPMAP_HINT in GLES2.
Any help is greatly appreciated.
guich
Type: Posts; User: guihazan
Hi,
As the topic says, i want to draw an antialiased line on OpenGL ES 2. Note that the glHint only accepts GL_GENERATE_MIPMAP_HINT in GLES2.
Any help is greatly appreciated.
guich
There's no stippling in Open GL ES 2... :-(
Hi, thanks. Is this the same approach used to draw an antialiased line?
Hi,
I'm trying to do that but it doesn't work. This is the fragment code i tried:
"precision mediump float;" \
"uniform vec4 a_Color; bool on; " \
"void main() {gl_FragColor...
Hi,
I came across a problem in Galaxy Tab 2 with Android 4.0.4 using Open GL ES 2: it does not draw correctly when using GL_POINTS or GL_LINES, only with GL_TRIANGLES*. The coordinates for the...
Found the problem! Have to set the gl_PointSize to 1.0.
#define LRP_VERTEX_CODE \
"attribute vec4 a_Position;" \
"uniform mat4 projectionMatrix;" \
"void main() {gl_PointSize...
Is there any kind of parameter that would make opengl es 2 clip a single pixel?
I'm now getting a strange problem. I have a gl2 program that draws a
point. It works in the sony xperia S (android 2.3.7) but not in the samsung galaxy tab 2. This is the code:
#define...
Hi mhagain,
I thought about another solution, but i don't know how to implement it.
vec4 color = (r,g,b,1);
vec4 alpha = (1,1,1,a);
v_Color = color * alpha;
Is it possible?
Hi,
I have a shader that is used to draw a font. I know that people use texture to draw points, but here the point drawing shader is so fast that it does not make a difference to change it to...
Found the problem: i was calling glVertexAttribPointer with incorrect value in the 2nd parameter.
Hi,
I'm trying to create a single program to draw a point/line/rectangle and point array. The code is below:
#define COORDS_PER_VERTEX 3
GLfloat ftransp[16], f255[256];
You were right! Removing the line made the code work without such error.
Something i cant understand is about the state changes. What is and what is not stored in the program when you call...
Hi,
Here's the code:
#define TEXTURE_VERTEX_CODE \
"uniform vec4 uTextureColor;" \
"attribute vec4 vertexPoint;" \
"attribute vec2 aTextureCoord;" \
Hi,
Is there any online sample that shows how to use two or more gles2 programs (using glUseProgram)? I'm getting strange errors when i try to do that here.
thanks in advance,
guich
How can i render directly to a texture instead of rendering to the buffer? I'm using EGL.
thanks!
guich
Hi,
I'm targetting Android and iOS OpenGL ES 2.
How can i create a transition effect using double-buffering? I would like to change from a screen to another one using something like stripes.
...
Hi,
Can someone give me some insight of how to draw xor lines using opengl? A xor line is a line used for cursor positioning, where xor'ing two times the same place returns to the original colors....
Hi,
My application updates the whole screen frequently, but there are a few situations that updates only a very small part of the screen.
I already tried to use glScissor and/or glViewport to...
Hi,
Is it possible to use a single buffer in opengl ES 2? I'm using eglSwapBuffers, but i would like to use a single buffer.
thanks
guich
Hi,
I have a program where i dynamically create images in an offscreen buffer. I was using glDrawPoints to map each image pixel but it is rather slow, so i'm now searching a way to load and draw...
Hi,
I would like to set the vertex position and color at the same time.
My opengl2 codes are:
// http://www.songho.ca/opengl/gl_projectionmatrix.html
static char* vertexShaderCode =...
Hi,
That was the problem. Using 12 (as each coordinate has 3 floats * 4 bytes per float) it works!
thanks!!!
Hi,
It doesnt work. In the more simple code below:
final int COORDS_PER_VERTEX = 3;
float[] letter; int nletter;
private FloatBuffer letBuffer;
private void drawText()
Hi,
I posted this on android forum but i'm sure that this forum is a better place to post this question.
I've spent a full day trying to draw a series of points using GL_POINTS. I know i could...