Login  Register

Using setNumSamples() doesn't work

Posted by Qu0ll on Sep 06, 2010; 4:44pm
URL: https://forum.jogamp.org/Using-setNumSamples-doesn-t-work-tp1427769.html

I am using JOGL 2 and create my GL capabilities like so:

final GLCapabilities capabilities = new GLCapabilities(GLProfile.get(GLProfile.GL2));
capabilities.setHardwareAccelerated(true);
capabilities.setNumSamples(8);
capabilities.setSampleBuffers(true);

which works correctly but when I try to increase the number of samples to 16 or perhaps 32 (both of which should be supported by this GPU), the presence of jaggies actually increases and the quality of the rendering is much worse.

However, when I try the sample Eclipse project used in this tutorial:

http://www.leolol.com/tutorials/graphics_tutorials.html

I can increase the number of samples up to 32 and achieve high quality, smoothed shapes.

I think the tutorial is using JOGL 1.x so why can't I do this with JOGL 2.x?