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 2 of 2

Thread: problem with glReadPixels

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    9

    problem with glReadPixels

    Ok, this is really wierd. I'm trying to capture what is in my viewport to an RGB file by reading the pixels and then writing the data out to file. Initially I tried using reading as GL_RGBA, but I was getting a strange picture, so I read each color into a separate array (GL_RED, GL_GREEN, GL_BLUE and GL_ALPHA). But for some reason, the GL_BLUE values aren't correct when I write them out to file. The red, green and alpha are all fine, but the blue gives me this skewed picture... any clues?

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    9

    Re: problem with glReadPixels

    Ok, I figured it out.. I have an SGI machine with a VR3 card in it, I was using their drivers and apparantly the driver was what was causing the problem. As soon as I switched to the NVIDIA driver for the Quadro, it worked great. And I wasted a day trying to figure that out.....

    John

Posting Permissions

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