• Order of the Butterfly
    Order of the Butterfly
    Posts: 459 from 2003/7/26
    From: Wroclaw/Poland
    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:
    glPixelStorei(GL_PACK_ALIGNMENT, 1);
    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).
  • »30.01.21 - 12:50
    Profile Visit Website