Results 1 to 2 of 2

Thread: read the whole viewport pixels

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Posts
    25

    read the whole viewport pixels

    Thanks, zeckensack. I solved the problem as you said.

    There is a problem that if the viewport is larger than the windows size(I have to fix the viewport for my application), the glReadPixels return the frame-buffer in windows size, which means Values for pixels that lie outside the window connected to the current OpenGL context are undefined.

    is there a way I can read the whole viewport pixels ignoring the size of windows(MFC windows)?

    please help me out.

    Thx,

    Jerry

  2. #2
    Guest

    Re: read the whole viewport pixels

    You can use a pbuffer.

Similar Threads

  1. Can't read pixels from multisampled FBO.
    By sasmaster in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 07-01-2012, 06:04 AM
  2. Faster way to read pixels
    By Darren Taylor in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 09-07-2007, 02:06 PM
  3. Getting actual viewport size in pixels...
    By M/\dm/\n in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-29-2004, 10:27 AM
  4. Bad pixels in PBuffer for some viewport sizes
    By ravo in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 05-19-2004, 04:45 AM
  5. Read texture pixels
    By Jonte in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 04-19-2001, 01:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean