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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. The answer was a range conflict between the main...

    The answer was a range conflict between the main 3D DrawArray into the 2D HUD DrawArray range.

    Thanks for your help!!
  2. Why does 2D ortho textured geometry wrap into 3D space crossing 0,0 (top-left)?

    Hello,

    A quick question:

    I noticed that a large textured quad image with the mouse cursor centered on it, seems to wrap into the 3D perspective under it, when crossing the 0,0 in 2D ortho.
    ...
  3. Replies
    4
    Views
    2,978

    Auto-answer. Oh, I had a race condition that...

    Auto-answer.

    Oh, I had a race condition that rendered the glDrawElements before indices had been submitted to the GPU.

    Thanks anyway!
  4. Replies
    4
    Views
    2,978

    Hello, I would like to borrow this thread to...

    Hello,

    I would like to borrow this thread to ask about an issue like this.

    I was successfully using DrawArrays and then changed part of my draw routine so that it used glDrawElements.

    Now,...
  5. glfwInit(); glfwOpenWindowHint(...

    glfwInit();


    glfwOpenWindowHint( GLFW_WINDOW_NO_RESIZE, 1 );


    int ok = glfwOpenWindow(
    ...
    );
  6. Darn. I guess I need to file a bug with the good...

    Darn. I guess I need to file a bug with the good people behind GLFW, unless I'm mis-using their library but I guess that must be it.

    Thanks to Dan and fellow contributors.
  7. Indeed it does appear to be the first non OpenGL...

    Indeed it does appear to be the first non OpenGL 1.1 call. But if you start using newer OpenGL calls, do you need to hint or declare that to OpenGL explicitly?

    I always assumed that before The...
  8. I have tested with both a 2048x2048 DXT5 image...

    I have tested with both a 2048x2048 DXT5 image and a smaller 256x256 DXT5 image.

    T[0].dimensions().x = 256
    T[0].dimensions().y = 256
    T[0].capacity() = 65536
    sizeof(T[0].data()) = 8

    I know...
  9. I saw that thread as I was hunting for answers. I...

    I saw that thread as I was hunting for answers. I dismissed it because I am not allocating NULL data. I am allocating with data retrieved with a GLI DDS image decoder.

    As I said, the texture...
  10. glCompressedTexImage2D seems to cause segfault.

    Hello everyone,

    My main program is a VBO based fixed function OpenGL application.

    When I use glCompressedTexImage2D, everything works perfectly.

    However, I was working on a tool which uses...
  11. Replies
    7
    Views
    3,126

    Oh yes, that works! Thanks Dan! .. and thanks...

    Oh yes, that works! Thanks Dan!

    .. and thanks to the other contributors for your feedback.
  12. Replies
    7
    Views
    3,126

    Ok, imagine the camera has a location of 0,20,20...

    Ok, imagine the camera has a location of 0,20,20 and we are looking directly at the Origin (0,0,0), so we're approximately looking at 45 degrees towards the Z plane which is treated as the ground,...
  13. Replies
    7
    Views
    3,126

    Thanks, but I understand that already. What I...

    Thanks, but I understand that already. What I would like to do with that ray is find out where the Z plane (Z origin, Z zero) is within the zNear (0) and zFar (1) viewing area.
  14. Replies
    6
    Views
    1,834

    OpenGL has changed completely over the recent...

    OpenGL has changed completely over the recent years.

    However, to *teach* OpenGL, I would recommend starting with an OpenGL 1.2 example program with GLUT. Then, replace the gl_begin and gl_end...
  15. Replies
    7
    Views
    3,126

    gluUnProject without glReadpixels

    Hello,

    I have a quick question for you experts.

    I'm using gluUnProject, which is great. And commonly people would use glReadPixels with the GL_DEPTH_COMPONENT to find the viewing volume z value...
  16. Replies
    2
    Views
    1,687

    Re: Why does FBO clip above ortho 0,0?

    Thanks for your help.

    In my experience, I mean I'm not an expert here, but if you render your 2D scene into an FBO (or perform a glSubTex on the screen buffer) unless you flip your glOrtho, the...
  17. Replies
    2
    Views
    1,687

    Why does FBO clip above ortho 0,0?

    Hello,

    I have a question about the way the FBO clips the visible scene.

    I'm using glOrtho for 2D and using render-to-texture with FBO. Since the FBO is upside-down and reversed, I draw all...
  18. Replies
    3
    Views
    1,263

    Re: Gritty deposit on FBO composited textures!

    If you look at the edge of one of the smiley faces you may see a dark edge to it.

    This smiley face has been added to the texture below using the FBO render-to-texture.

    When I change the color...
  19. Replies
    3
    Views
    1,263

    Gritty deposit on FBO composited textures!

    Hello,

    Has anyone noticed (that on Nvidia hardware) when you copy a texture with alpha onto another texture, the imposed image has the backbuffer color in it?

    Can that be avoided?

    I've...
  20. Replies
    17
    Views
    11,470

    Re: GLSL shaders gives black textures.

    Thanks Dark, yes I have already removed that line with the understanding that the shader "renders" it moot.



    GLStarter, thanks I made those changes but it didn't correct the result.

    To...
  21. Replies
    17
    Views
    11,470

    Re: GLSL shaders gives black textures.

    The:

    // ul_set = glGetUniformLocation( glsl_prog, "jbtex1")

    just indicates that ul_set has been defined elsewhere by the function that also loaded, compiled and linked the shader pair.
  22. Replies
    17
    Views
    11,470

    Re: GLSL shaders gives black textures.

    This is what I have currently, I hope this isn't too terse.




    perspective(zoom+90, static_cast<float>(xres/yres), 1.0f, 500.0f);

    glViewport(0,0, xres, yres);

    if (glsl_active == true) //...
  23. Replies
    17
    Views
    11,470

    Re: GLSL shaders gives black textures.

    From Dan Barlett:

    Are you saying:

    glActiveTexture(GL_TEXTURE0 + texID);

    Should in fact be:

    glActiveTexture(GL_TEXTURE0);
  24. Replies
    17
    Views
    11,470

    Re: GLSL shaders gives black textures.

    From sgsrules:

    > are you setting your width and height uniforms?

    Not explicitly I think. I'll post code to follow up and you can verify that.

    gl_FragColor = texture2D(tex1,...
  25. Replies
    17
    Views
    11,470

    Re: GLSL shaders gives black textures.

    To be clear, it's still not working correctly.
Results 1 to 25 of 47
Page 1 of 2 1 2