How to get the max fsaa value supported by the video card?

Hello,

i use fullscreen rendering in my game engine, and when i want to use 6x fsaa. the window is black, it wont start to draw anithing, the renderer object doesn’t run at all.
With 4x,2x,1x fsaa the rendering is running without a problem.

How can i get the max fsaa value supported by the video card? (i have a NVidia 7600GT)

Thanks…

I don’t think 6x AA is a valid setting, usually it follows power-of-two sizes. Current nVidia chips should support x2, x4, x8 and x16, although I’m not sure how you can query for support, I suspect you’ll have to just keep trying to create a framebuffer and if it fails reduce your options until it works.

thanks.
i have the rendering problem with 2x fsaa too
10% of program starting ends with failure… this “effect” occurs only in fullscreen mode. strange…

If you write a GLCapabilitiesChooser you should receive a list of all of the supported pixel formats in the form of the GLCapabilities[] array. You can iterate through that and see which one has the highest number of sample buffers. Note that you will need to call setSampleBuffers(true) on the GLCapabilities object you pass in to e.g. the GLCanvas constructor in the first place, because otherwise on some platforms (Windows in particular) JOGL won’t attempt to query for multisample support. Check out the source code for demos.multisample.Multisample in the jogl-demos workspace.