Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: PBuffering problems

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2004
    Posts
    11

    PBuffering problems

    Hi.
    I'm a bit new too all this, but from the documentation I've read it seems that once I should be able to use the pbuffer as a texture-map. I'm using the WGL_NV_render_texture_rectangle extension as well as the pbuffering ones and the render to texture ones...

    So after doing all the extension stuff (which gives no errors)
    I do:

    glGenTextures(1, &texID);

    then when I want to use it as a texturemap:

    wglBindTexImageARB(pbuf, WGL_FRONT_LEFT_ARB);
    glBindTexture(GL_TEXTURE_2D, texID);

    All I get is a white quad instead of the correct texture, why?

    thanks

    -anthony

    [This message has been edited by anthony (edited 01-30-2004).]

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    626

    Re: PBuffering problems

    Originally posted by anthony:
    ...I'm using the WGL_NV_render_texture_rectangle extension as well as the pbuffering ones and the render to texture ones...
    I do:

    glGenTextures(1, &texID);

    then when I want to use it as a texturemap:

    wglBindTexImageARB(pbuf, WGL_FRONT_LEFT_ARB);
    glBindTexture(GL_TEXTURE_2D, texID);
    ...
    I see you're naming rectangular texture support, however I wonder why you bind to TEXTURE_2D. If buffer is really non-potd then you should bind to rectangular textures. If you do that, of course you get a white quad! The texture is ill-formed.

    Also, try to just draw it to the framebuffer. It could help.

  3. #3
    Intern Contributor
    Join Date
    Feb 2004
    Posts
    98

    Re: PBuffering problems

    glBindTexture(GL_TEXTURE_RECTANGLE_NV, texID); should be the correct solution.
    SSI's extension registry non-ARB#264, and non-ARB#229, contain relevant information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •