Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: glAccum distortions

  1. #1

    glAccum distortions

    When I use the following code, I'll get like 0.25 fps and horizontal lines which shouldn't be there.
    What am I doing wrong, it is supposed to be a motion blur

    Code :
    SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
     
    SDL_GL_SetAttribute(SDL_GL_ACCUM_RED_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_ACCUM_GREEN_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_ACCUM_BLUE_SIZE, 8);
     
    SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
    SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
     
    loop:
    drawScreen();
    glAccum (GL_MULT, 0.5f);
    glAccum (GL_ACCUM, 0.5f);
    glAccum (GL_RETURN, 1f);
    SDL_GL_SwapBuffers();

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: glAccum distortions

    Accumulation buffer is rarely accelerated.

  3. #3

    Re: glAccum distortions

    Erm, ok
    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •