Re: Enabling sampleBuffers ruins unique color selection.
Posted by
gouessej on
Feb 06, 2014; 10:31am
URL: https://forum.jogamp.org/Enabling-sampleBuffers-ruins-unique-color-selection-tp4031453p4031466.html
OpenGL picking relies on deprecated methods and/or methods known to be particularly slow in general (glReadPixels) or when used with shaders. I already used build-in picking in the past, it's nice until you use lighting and shaders which prevent it from working reliably on some drivers :s
Ardor3D has a build-in support of software picking, you can look at its source code to understand how it works. Basically, this just throws a ray into a triangle if other preliminary tests haven't considered that it has no chance to succeed.
We talked a lot about picking recently, you'll find some information here:
http://forum.jogamp.org/picking-td4031052.html