Re: Enabling sampleBuffers ruins unique color selection.
Posted by
Sven Gothel on
Feb 06, 2014; 11:07am
URL: https://forum.jogamp.org/Enabling-sampleBuffers-ruins-unique-color-selection-tp4031453p4031473.html
On 02/05/2014 01:45 PM, d0lph1n [via jogamp] wrote:
> Hi and thank you for taking time to read this.
>
> Using unique color selection for my objects and it works perfectly up until I
> enable caps.setSampleBuffers(true);
> It seems like enabling antialiasing blends the colors I draw to the back
> buffer so that some clicks returns more objects than the one clicked.
>
> I really like the nice antialiasing i get for free enabling the samplebuffers
> in GLCapabilities, is there a way to disable antialiasing when drawing to the
> backbuffer and then re-enabling it when drawing the scene?
>
You might be interested in other 'picking' strategies:
- 2013-12 <
http://forum.jogamp.org/picking-tp4031052p4031169.html>
- 2012-02 <
http://forum.jogamp.org/Mouse-selection-td3787468.html#a3788488>
~Sven