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: offscreen buffers?

  1. #1
    Junior Member Regular Contributor
    Join Date
    Feb 2001
    Posts
    116

    offscreen buffers?

    hi

    i want to grab the framebuffer from my openGL application and save it to a bitmap file. to get the framebuffer contents i use glReadPixels(). the only problem is that whenever there is a window partially obscuring my openGL window, nothing is drawn in the obscured area so my bitmap file looks rather incomplete.
    so, is it possible to tell openGL to render to the whole window no matter how much of it is visible? or can i render to an offscreen buffer and grab that instead?

    oh yes, i'm using windows XP

    thanks
    hoshi55

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: offscreen buffers?

    You must render to an offscreen buffer to guarantee this.

  3. #3
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,527

    Re: offscreen buffers?

    More precisely a P-buffer, because back buffers are offscreen, too, but pixel ownership testing affects all buffers (including depth and stencil) associated to a rendering context.

Posting Permissions

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