Search:

Type: Posts; User: debinair

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Re: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES - Android NDK

    check the 3rd parameter you are passing to glTeximage2D, it should be internal format.
    Also, try creating renderbuffer and attach depth attachement to framebuffer.
  2. Replies
    9
    Views
    6,709

    Re: Texture mapping on a disk

    Now, its like 1 GL_TRIANGLE_FAN require one texcoord set. In your code, if you have 5 GL_TRIANGLE_FAN you should repeat tex cords 5 times in same array.

    for e.g. for 2 GL_TRINGLE_FAN

    your...
  3. Replies
    9
    Views
    6,709

    Re: Texture mapping on a disk

    Can u post ur code here .. I want u see ur draw function alongwith coordinates.
  4. Re: Shared context for background thread loading

    AFIK, you cant make current two contexts at a time. Before make current of other context you need to makecurrent(NULL) previous one.
  5. Replies
    9
    Views
    6,709

    Re: Texture mapping on a disk

    If you are drawing it with triangle fan, the texcordinates should not differ.
    {0,0,
    1,0,
    1,1,
    0,1}
    it should work..
  6. Replies
    4
    Views
    2,996

    Re: buffers and textures

    @johnleee: did not get you, can you elaborate??
  7. Replies
    5
    Views
    4,335

    Re: Open gles 2.0 object collision

    only FRONT and BACK buffers. you can specify in eglCreateSurface()
  8. Replies
    5
    Views
    4,335

    Re: Open gles 2.0 object collision

    Draw a sphere around your object. Lets say 2 objects with 2 spheres, radii r1 r2, now calculate a distance between two centres of circle. If distance is less than r1+r2 then you have collision.
  9. Replies
    3
    Views
    3,512

    Re: Positional data in pixel shader

    Try using varying data type in shaders, so that you can pass interpolated values from vertex to fragment shader.
    Let me know whether it works or not.
  10. Replies
    5
    Views
    4,335

    Re: Open gles 2.0 object collision

    do your objects are moving? can you show your o/p?

    You can try by checking color values at particular point on the surface.
  11. Replies
    4
    Views
    2,996

    Re: buffers and textures

    1) what do you want to do? there is glCopyTeximage2d() function which copies texture data.

    2) yes. glCopyBuffer()

    3) only FRONT and BACK buffers. you can specify in eglCreateSurface()

    4) you...
  12. Thread: Curl effect

    by debinair
    Replies
    6
    Views
    3,505

    Re: Curl effect

    I am not able to understand the scenario clearly. Can you paste your code here and explain it again ?
    You can PM me if you don't want to share publicly.
  13. Re: render to a texture with dimensions > the egl window sur

    You can retrieve the height and width of your window surface by call eglQuerySurface(EGL_WIDTH/EGL_HEIGHT);
    and you can restrict texture size by glViewport() before drawing to non default FBO.
  14. Replies
    2
    Views
    2,827

    Re: glBufferData error 502

    Can you paste your code here?
  15. Re: OpenGL ES 1.0 - weird vertex buffer behaviour with glDra

    It should set the pointer to buffer at 80th location when you call
    glVertexPointer(3, gl.GL_FIXED, 20, (void*)80); and this will draw 2nd quad.

    Looks like your driver is buggy.
  16. Thread: Curl effect

    by debinair
    Replies
    6
    Views
    3,505

    Re: Curl effect

    Hi,
    I am not sure whether i got your question correctly.
    Ohk , if you want to change vertex positions continuously , i can suggest you two options.

    1) you can call draw function in loop....
  17. Replies
    3
    Views
    4,721

    Re: glReadPixels on Android

    Can you paste your code here?
  18. Re: Changing color in each rendering loop in open gl es 2.0

    You can take uniform variable in fragment shader and assign that to gl_Fragcolor. Now in your draw function loop, change your local variable as per your color requirement and assign value of this...
  19. Replies
    1
    Views
    2,615

    Re: vertexAttribPointer + stride + offest?

    Hi,
    Please find the attached code.
    static GLfloat vertices1[]={-0.8f,-0.8f, -0.8f,-0.2f, -0.8f,-0.2f, -0.2f,-0.8f, -0.2f,-0.8f, -0.2f,-0.2f,-0.2f,-0.8f, -0.8f,-0.2f ,...
  20. Replies
    8
    Views
    4,330

    Re: Open GLES application displays black screen

    Is your issue solved..?
    Can you try by adding " EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT," in array "const EGLint configAttribs[].
  21. Replies
    1
    Views
    2,351

    Re: glLinkProgram failing with no logs

    Hi,
    while creating eglsurface() you have to pass some attribute as last parameter
    EGLint context_attribs[] = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE};...
  22. Replies
    5
    Views
    7,472

    Re: Texture Sharing.

    why do you need to different contexts..? I mean you can use one context only for texture sharing. And threads can share the context, only the condition is that while using shared context, you have to...
  23. Replies
    1
    Views
    3,166

    Re: Texture Problem!!!

    Did you try by including filtering modes..?
    Can you paste your code here.
  24. Replies
    1
    Views
    2,378

    Re: EGL conformance test

    There is drawElements Quality Program (DEQP) tool for testing EGL,OGLES APIs.
    You can google it.
  25. Re: can framebuffer object used without egl initialization?

    ASFIK , you can not make any gl call before creating eglContext . Create a eglContext first and then you can proceed with FBOs no need to initialize shaders' stuff.
Results 1 to 25 of 34
Page 1 of 2 1 2