Multisampling with GLJPanel?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Multisampling with GLJPanel?

Jeff
Hi all.  I've successfully enabled multisampling on a GLCanvas using the code from Multisample.java, but cannot for the life of me figure out how to enable it with GLJPanel.  Calling the following has no visual difference from "new GLJPanel()".  In fact, if I set a breakpoint in the chooseCapabilities() method in the MultisampleChooser, it never stops there (although it does with GLCanvas).  Is this a bug or is my usage wrong?  Thanks.



        GLCapabilities caps = new GLCapabilities(null);
        GLCapabilitiesChooser chooser = new MultisampleChooser();

        caps.setSampleBuffers(true);
        caps.setNumSamples(4);
        canvas = new GLJPanel(caps, chooser, null);