Re: wrong depth values when rendering in GL_SELECT mode

Posted by misha on
URL: https://forum.jogamp.org/wrong-depth-values-when-rendering-in-GL-SELECT-mode-tp4025804p4025806.html

I have seen the first example and mistake is not with pick processing or signed nature of java ints. For some reason z coordinates returned to select buffer are all the same. Thus I can not check what object is nearer.

Problem is reproducible on win xp 32 bit. I tried running this code on win 7 64 bit and there coordinates are correct, so I can properly sort objects. I don't know where problem is: in jogl, in opengl drivers, etc. And I don't know how further investigate this problem :(.

If anyone has any clue I would be very grateful!

On Wed, Aug 15, 2012 at 1:00 PM, gouessej [via jogamp] <[hidden email]> wrote:
Hi

Rather use this example:
https://github.com/sgothel/jogl-demos/blob/master/src/demos/misc/Picking.java

I assume you used a C/C++ source code to write your own one and you forgot a few subtle things about Java. I don't see your method processPicking(). Anyway, OpenGL picking is a deprecated feature, you should implement your own software picking.
Julien Gouesse
http://tuer.sourceforge.net
http://gouessej.wordpress.com



If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/wrong-depth-values-when-rendering-in-GL-SELECT-mode-tp4025804p4025805.html
To unsubscribe from wrong depth values when rendering in GL_SELECT mode, click here.
NAML