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

Thread: enable hardware accelerated antialiasing

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    13

    enable hardware accelerated antialiasing

    Is there a way to enable hardware accelerated antialiasing through the OpenGL API (or C++)?

    **Not through the control panel in display settings.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: enable hardware accelerated antialiasing

    ARB multisample is the way to do.

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    13

    Re: enable hardware accelerated antialiasing

    so can I just say...glEnable(GL_MULTISAMPLE_ARB) and presto AA is enabled? Or do I need to make other openGL calls?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: enable hardware accelerated antialiasing

    I haven't used them yet :-D

    The best thing I can tell is to check the extension:

    http://www.opengl.org/registry/specs...ultisample.txt

    And if I remember well you'll have to ensure your window can support it too.

  5. #5
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    676

    Re: enable hardware accelerated antialiasing

    You need to build your pixel format with the appropriate multisample attributes, and then glEnable(GL_MULTISAMPLE_ARB).

    Here's how to do it on Mac OS X

  6. #6
    Intern Newbie
    Join Date
    Jul 2005
    Location
    Russian federation
    Posts
    37

    Re: enable hardware accelerated antialiasing

    On Windows you must create OpenGL's rendering context through (WGL_ARB_pixel_format )
    wglChoosePixelFormatARB / SetPixelFormat.
    And you must specify
    {WGL_SAMPLE_BUFFERS, TRUE}
    {WGL_SAMPLES, samples_count} within integer attributes for wglChoosePixelFormatARB
    Then use glEnable/glDisable with GL_MULTISAMPLE.
    On NVIDIA you can use also GL_NV_multisample_filter_hint extension.

Posting Permissions

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