Hey all,

There’s lots of different types of antialiasing that can be enabled (lines, polygons, etc). Is there a single function I can call (or argument to pass to glEnable) to turn on all of possible options? I have a GeForce3 and, while that isn’t the top of the line anymore, the game I’m writing is hardly taxing my video card…

In fact, there are mainly 2 differents ways to do antialiasing in OpenGL. And you can not use both at the same time.

I found an old document about it :

  • for line and polygon antialiasing :

    7.1 Antialiasing Points and Lines

    7.2 Polygon Antialiasing

    The coverage of each pixel is computed, and used as alpha value. It can give better results than multisampling, but has limitations.

  • multisampling/full-scene antialiasing : that is what you want. Is is the same thing as activating antialising in the NVidia control panel under Windows. Basically the scene is rendered on a bigger buffer (typically 2x or 4x in width and height), then pixels are averaged for the final buffer.
    You can control it via an opengl extension, for details there is a NeHe tutorial which seems pretty good :