glReadPixels unmatched values
C / C++ / MFC
3
Posts
2
Posters
30
Views
1
Watching
-
hi, glReadPixels(0,0,1,1,GL_LUMINANCE ,GL_UNSIGNED_SHORT,pixUnSigShort) , the return pixels values look wrong or unmatched to the raw data.
etechX2 wrote:
... and is wrong.
Define "wrong". :cool:
-
etechX2 wrote:
... and is wrong.
Define "wrong". :cool:
16 bit pixel value bytes read from glReadPixels(0,0,,,) are like X1 X1 X2 X2 ... etc. They do not match the raw image pixels. The image is brighter liked a image that has a filter applied to it. I am not sure if I am reading from framebuffer. I sed GL_LUMINANCE with GL_UNSIGNED_SHORT. It is a grayscale image.