Order of the Butterfly
Posts: 415 from 2003/7/26
When I created saving screenshots of my demos (Morphoza, Morphilia, Morphobia) for create movie on YouTube (60 frames per second) I noticed the same result. :( I couldn't create screenshots using glReadPixels() function. Each screenshot saved to Targa format looks exactly like your screenshot.
I called the function with these parameters:
glReadPixels((GLint)areaPosX, (GLint)areaPosY, (GLint)areaWidth, (GLint)areaHeight, GL_BGR, GL_UNSIGNED_BYTE, screenshotImage->getData());
The same code on macOS Catalina works correctly and saved Targa images look good.
This is also problematic for me. It would be great fix the bug (or find way to read screen pixels correctly).