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: jianliang79

Search: Search took 0.00 seconds.

  1. Such as 3410 x 2048

    Such as 3410 x 2048
  2. Yes, My texture is RGBA. And the sample...

    Yes, My texture is RGBA.
    And the sample program works fine in nVidia card.
  3. AMD catalyst: set GL_UNPACK_ROW_LENGTH will lead to corrupted texture

    It seems that there is a bug in Catalyst driver, when I set GL_UNPACK_ROW_LENGTH to a value other than zero, under some specific image width, the texture copied from PBO will be corrupted. I have...
  4. You are right, after changing vec3 to vec4...

    You are right, after changing vec3 to vec4 everything works fine. Thank you for the suggestion!
  5. In fact, I put a "#version 150" line in the...

    In fact, I put a "#version 150" line in the shader since I use OpenGL 3.2 core profile (I fogot to mention this in my first post), the shader compile with no error, but the result is what I have...
  6. I can assure that my uniform buffer layout is...

    I can assure that my uniform buffer layout is correct, since I have query the uniform offset by glGetActiveUniformsiv(), and the result coincides with the layout of my uniform buffer layout. And of...
  7. Issue about accessing array element of uniform block (AMD glsl compiler)

    I have encountered an issue about accessing array element of uniform block, the follow code can demonstrate this issue:



    struct SLightSource {
    vec3 color1;
    vec3 color2;
    };
    ...
  8. Re: using GL_LINEAR_MIPMAP_LINEAR filter cause crash

    Hi, Alfonse, by allocating mipmap storage before calling glGenerateMipmap() to generate mipmap for texture I have successfully avoid the crash. Thank you!

    But this behaviour of AMD driver is a...
  9. Re: using GL_LINEAR_MIPMAP_LINEAR filter cause crash

    hi, nsdev:
    In fact when I wrote this sample program for the first time I call glTexParameteri(GL_TEXTURE_2D, L_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); before generating mipmap for the...
  10. Replies
    1
    Views
    1,560

    problem of PBO with ATI card

    I recently encounterd a problem with ATI card: when I use PBO to upload an large image(3072 x 2048) to an 2D texture, it seems that the image has been damaged during loading. This problem will NOT...
  11. Re: using GL_LINEAR_MIPMAP_LINEAR filter cause crash

    I have read that post, but I think that case is not very similar to my case.
    1) In that post, that program crashed when generating mipmap for texutre, but in my case the crash is happened when I...
  12. using GL_LINEAR_MIPMAP_LINEAR filter cause crash

    I have recently encountered an annoying crash problem when using GL_LINEAR_MIPMAP_LINEAR filter to sample texture image(only with my ATI card, my nVidia card works fine), to demonstrate this problem...
  13. Re: An issue about uniform block access in GLSL

    Thank you for the suggestion, but according to openGL specification:



    In my structure, the "position" member's aligned offset is 16, and according to specification the base...
  14. An issue about uniform block access in GLSL

    Our Application use uniform block to pass light source parameters to fragment shader when rendering a scene. Our code run perfectly in nVidia video card but can't render the correct result with an...
  15. Re: Is it possible to use sync objects in openGL 2.1?

    thanks!
  16. Is it possible to use sync objects in openGL 2.1?

    OpengGL sync objects was introduced in openGL 3.2。I want to know if I create a openGL 2.1 context can I use sync ojbects if my driver support GL_ARB_sync extension?
  17. Re: need help: multi-threaded openGL programming

    Great thanks for all your reply!
    I think I have to redesign my usage of openGL.
  18. Re: need help: multi-threaded openGL programming

    Thanks a lot for your reply!

    I have some more questions to ask.

    Do your mean if I uploaded a PBO to texture by calling glTexSubImage2D() in a thread/context and call glMapBuffer()...
  19. need help: multi-threaded openGL programming

    I know there are many posts in this forum to discuss multi-threaded openGL programming, but I have checked nearly all the articles I can googled from this forum or other websites and I can't resovle...
  20. Re: what kind of "wait" will glMapBuffer() do?

    Thanks!
  21. Re: what kind of "wait" will glMapBuffer() do?

    I know I can use two PBO objects to avoid waiting on GPU and make CPU and GPU work in parallel. But I just want to know the fact which kind of 'wait' will it do for me :-)

    Thanks for your...
  22. what kind of "wait" will glMapBuffer() do?

    when I use a PBO to upload image to a texture, I have to use glMapBuffer() to get a client address to copy the image, and then unmap the PBO and call glTexImage2D() to upload the image to a texture (...
Results 1 to 22 of 22