Re: Enabling sampleBuffers ruins unique color selection.
Posted by
gouessej on
Feb 05, 2014; 6:21pm
URL: https://forum.jogamp.org/Enabling-sampleBuffers-ruins-unique-color-selection-tp4031453p4031456.html
Hi
As far as I know, maybe you can change the number of samples at runtime but you can't disable antialiasing once it is set by using GLCapabilities.
Moreover, the use of build-in OpenGL picking is highly discouraged and the color picking doesn't work on any machine that emulates some colors of its palette (which often occurs on laptops). I advise you to use software picking (easy to implement if you only treat triangles) or to implement the picking into shaders (doing that efficiently isn't trivial).