Full Screen Anti Aliasing

Does Anyone know how to achieve full screen Anti Aliasing with JOGL I’m working on my semester project in Comp. Sci, I got all my renedering done It’s just that the jaggies look just horribe. :-/

Well - in my code I turn on antialiasing using:

GLDrawableFactory fac = GLDrawableFactory.getFactory();
GLCapabilities cap = new GLCapabilities();

// Antialiasing
if (aaLevel > 0) {
        System.out.println("Using Antialiasing level " + aaLevel);
        cap.setSampleBuffers(true);
        cap.setNumSamples(aaLevel);
}

I don’t run full-screen, only windowed, but the full-screen-exclusive mode tutorial is here:

http://java.sun.com/docs/books/tutorial/extra/fullscreen/exclusivemode.html

Rob

You can also enable and disable FSAA anytime with
glEnable(GL.GL_MULTISAMPLE_ARB);
and
glDisable(GL.GL_MULTISAMPLE_ARB);

Ofcourse this works only if you have created canvas with correct capabilities which Rob posted.

  • nGoon

I was wondering where is the int aaLevel initialized, what is it initialized to ? :slight_smile:

Set it to 2 or 4 for 2x or 4x antialiasing.

Rob