Results 1 to 2 of 2

Thread: glreadpixels - getting the colors

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Posts
    1

    glreadpixels - getting the colors

    Hi.
    Using the glreadpixels function on openGL i'm in a big struggle trying to get the RGB components of each pixel in this function.

    Any help will be MUCH appreciated.
    Thanks in advance,
    Abraham Yezioro.
    array01@techunix.technion.ac.il

  2. #2
    Member Contributor
    Join Date
    Feb 2001
    Posts
    89

    Re: glreadpixels - getting the colors

    The first least significant 8 bits is some color, the next 8 is another color, and then the next 8 are the last. I wouldn't know which is which because glReadPixels is WAAYYY too slow to really do anything with it. In the future, it may improve, but certainly not any time soon I guess. We'd all have to have GeForce3s, and they would have to be considered slow for this to be reasonable.
    -pATCheS

Similar Threads

  1. Replies: 3
    Last Post: 06-19-2016, 08:11 AM
  2. Replies: 2
    Last Post: 06-15-2015, 03:26 AM
  3. Colors
    By roadkillguy in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-26-2011, 09:07 AM
  4. 32 bit colors with ATI
    By Thomas Krog in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 08-15-2003, 11:12 AM
  5. glReadPixels and Bitmap colors
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-28-2003, 06:56 AM

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