PDA

View Full Version : glreadpixels - getting the colors



array01
06-03-2001, 01:20 AM
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

pATChes11
06-03-2001, 10:37 AM
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.