Login  Register

Re: picking

Posted by gouessej on Dec 24, 2013; 10:26am
URL: https://forum.jogamp.org/picking-tp4031052p4031053.html

Hi

As you seem to have only triangulated surfaces, why not using software picking? It can be a lot faster than drawing one frame especially when you have only triangles. The use of build-in OpenGL picking is discouraged, color picking doesn't work if some colors of the palette are emulated (especially on some low end laptops).

If you still want to use a geometry shader, you can disable the rasterization by enabling GL_RASTERIZER_DISCARD but as triangles are treated in parallel, I'm not sure you can't early stop when you have found an intersection. Maybe Sven or Dominik could give you a more accurate answer.
Julien Gouesse | Personal blog | Website