Re: depth values in picking
Posted by Mathieu Blossier on
URL: https://forum.jogamp.org/depth-values-in-picking-tp4030347p4030357.html
Hi,
Yes, I use your code :
(float) (selectBuffer.get(ptr)& 0xffffffffL) / 0x7fffffff;
Ok, distribution is not linear, but is there a way to calculate "real" z value to the depth value recorded (using frustum values and eye position) ?
Thanks,
Mathieu