Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: guihazan

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,832

    drawing antialiased line on OpenGL ES 2

    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
  2. Replies
    4
    Views
    2,252

    There's no stippling in Open GL ES 2... :-(

    There's no stippling in Open GL ES 2... :-(
  3. Replies
    4
    Views
    2,252

    Hi, thanks. Is this the same approach used to...

    Hi, thanks. Is this the same approach used to draw an antialiased line?
  4. Replies
    4
    Views
    2,252

    how to draw a dashed line in open gl es 2?

    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...
  5. Replies
    0
    Views
    855

    drawing a point with a GL_TRIANGLE

    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...
  6. Found the problem! Have to set the gl_PointSize...

    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...
  7. Is there any kind of parameter that would make...

    Is there any kind of parameter that would make opengl es 2 clip a single pixel?
  8. in galaxy tab 2, draw line with 2 points work but with 1 point not

    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...
  9. Hi mhagain, I thought about another solution,...

    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?
  10. changing only the alpha-channel of a set of colors

    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...
  11. Found the problem: i was calling...

    Found the problem: i was calling glVertexAttribPointer with incorrect value in the 2nd parameter.
  12. using if/else to select between single or multiple colors

    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];
  13. Replies
    6
    Views
    2,438

    You were right! Removing the line made the code...

    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...
  14. Replies
    6
    Views
    2,438

    Hi, Here's the code: #define...

    Hi,

    Here's the code:



    #define TEXTURE_VERTEX_CODE \
    "uniform vec4 uTextureColor;" \
    "attribute vec4 vertexPoint;" \
    "attribute vec2 aTextureCoord;" \
  15. Replies
    6
    Views
    2,438

    using multiple programs in open gl es 2

    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
  16. Replies
    3
    Views
    1,775

    How can i render directly to a texture instead of...

    How can i render directly to a texture instead of rendering to the buffer? I'm using EGL.

    thanks!

    guich
  17. Replies
    3
    Views
    1,775

    transition effects using opengl es 2

    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.
    ...
  18. Replies
    1
    Views
    1,063

    drawing using xor

    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....
  19. Replies
    1
    Views
    1,094

    Partly update the screen or copying buffers

    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...
  20. Replies
    1
    Views
    933

    using single-buffering in GLES 2

    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
  21. platform-independent way of loading images into textures in GLES 2

    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...
  22. Set vertex position and color at the same time

    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 =...
  23. Replies
    4
    Views
    3,024

    Hi, That was the problem. Using 12 (as each...

    Hi,

    That was the problem. Using 12 (as each coordinate has 3 floats * 4 bytes per float) it works!

    thanks!!!
  24. Replies
    4
    Views
    3,024

    Hi, It doesnt work. In the more simple code...

    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()
  25. Replies
    4
    Views
    3,024

    GL_POINTS not drawing points in Android

    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...
Results 1 to 25 of 25