From: Quincy (qyu++at++cs.toronto.edu)
Date: 07/11/2002 09:36:00
Hi,
I'm using linux version of performer to draw objects with certain color,
but when I use glReadPixels to read the color values back, the rounding
error is quite strange, for example, a set of black pixels may read back
with rgb values to be:
0.000000 0.000000 0.000000
0.000000 0.015873 0.000000
0.000000 0.000000 0.000000
0.000000 0.015873 0.000000
and a set of pixels all with color values: 0, 0.5, 0.98 will be read back
like:
0.000000 0.523810 1.000000
0.000000 0.507937 1.000000
0.000000 0.523810 1.000000
0.000000 0.507937 1.000000
etc.
Does anybody know what might have caused this and how to resolve
it? Thanks in advance.
Best regards,
Quincy Yu
This archive was generated by hypermail 2b29 : Thu Jul 11 2002 - 09:36:35 PDT