More than 2x sample buffers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

More than 2x sample buffers

bardackx
Hi, I am relatively new to the newest build of JOGL, and I have an issue with the sample buffers:

I use this method to set the GLCapabilities

    private static GLCapabilities getCapabilities(){
        GLProfile profile = GLProfile.get(GLProfile.GL3bc);
        GLCapabilities capabilities = new GLCapabilities(profile);
        capabilities.setNumSamples(2);
        capabilities.setSampleBuffers(true);        
        return capabilities;
    }

This gives me a x2 antialiasing but when I try 4, 8, 16 it returns to single sample buffer.

Can you tell what am I doing wrong?

Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: More than 2x sample buffers

Sven Gothel
Administrator
On Tuesday, June 22, 2010 06:49:57 pm bardackx [via jogamp] wrote:

>
> Hi, I am relatively new to the newest build of JOGL, and I have an issue with
> the sample buffers:
>
> I use this method to set the GLCapabilities
>
>     private static GLCapabilities getCapabilities(){
>         GLProfile profile = GLProfile.get(GLProfile.GL3bc);
>         GLCapabilities capabilities = new GLCapabilities(profile);
>         capabilities.setNumSamples(2);
>         capabilities.setSampleBuffers(true);        
>         return capabilities;
>     }
>
> This gives me a x2 antialiasing but when I try 4, 8, 16 it returns to single
> sample buffer.
>
> Can you tell what am I doing wrong?
>

run it with -Djogl.debug=all

is it supported on your GPU/driver ?

btw: we have a FAQ, describing bug reports ..

> Thanks in advance

~Sven