hi ken,
i switched to the lasest build (20070404) and also tried it on my windows system. although fsaa is working, getChosenGLCapabilities also returns null. i added a test, that is called on the first call to display and systen.out.println’s the canvas and the chosen capabilities:
// for the working fsaa window
javax.media.opengl.GLCanvas[canvas0,4,30,512x512]
null
// no aa window
javax.media.opengl.GLCanvas[canvas0,4,30,512x512]
GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16, Multisample: false ]
same results on mac with latest jogl libs, except that fsaa is not working.
the chooser:
static class MultisampleChooser extends DefaultGLCapabilitiesChooser
{
public int chooseCapabilities(GLCapabilities desired,
GLCapabilities[] available,
int windowSystemRecommendedChoice)
{
boolean anyHaveSampleBuffers = false;
for (int i = 0; i < available.length; i++)
{
GLCapabilities caps = available[i];
if (caps != null && caps.getSampleBuffers())
{
anyHaveSampleBuffers = true;
System.out.println("num samples: " + caps.getNumSamples());
break;
}
}
...
gives me
“num samples: 2” on windows and
“num samples: 4” on mac
If GLCapabilitiesChooser is so difficult on mac, how to get fsaa working? I still dont understand if it is suposed to work someway…
thx.