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 4 of 4

Thread: FSAA Resetting...

  1. #1
    Newbie Newbie
    Join Date
    Nov 2013
    Posts
    3

    FSAA Resetting...

    Hello,

    Is there a way I can change the FSAA number of sample buffers without having to destroy and recreate the rendering window, something similar to What Direct3D has?

    Thanks.

  2. #2
    Newbie Newbie
    Join Date
    Nov 2013
    Posts
    3
    Quote Originally Posted by DragonMesh View Post
    Hello,

    Is there a way I can change the FSAA number of sample buffers without having to destroy and recreate the rendering window, something similar to What Direct3D has?

    Thanks.
    No body knows? I already Googled it but what I'm looking for is any trick (and not a hack).

  3. #3
    Newbie Newbie
    Join Date
    Nov 2013
    Posts
    3
    You guys and your opengl are lacking...

  4. #4
    Junior Member Newbie
    Join Date
    Oct 2013
    Posts
    9
    Render to a FBO with multisampled textures.

    Then when you change the sample rate just destroy and recreate the textures with higher samples

    glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, MSAAColor)
    glTexImage2DMultisample( GL_TEXTURE_2D_MULTISAMPLE,6, GL_RGB, GWidth, GHeight, False )

    glBindFramebuffer(GL_FRAMEBUFFER, FBOMSAA)
    glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE,MSAAColor, 0)

Posting Permissions

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