Mouse selection

Hi,

I would need that when I click somewhere on my render, my program could know where I clicked (more or less), let’s say a kind of selection

I tried to read and understand at the best this

http://www.opengl.org/resources/faq/technical/selection.htm#sele0020

Basically there are three options:

  • selection render mode

  • render each primitive in an unique color

  • generate a pick ray

I opened this 3d to ask you guys, since that page has some years, if all of them are still valid, or there is a new method that is not listed there

Hi

There is an example of picking using JOGL here:
http://jogamp.org/jogl-demos/src/demos/misc/Picking.java

Good luck.