Re: bad use of depths in Picking.java
Posted by
gouessej on
Sep 17, 2010; 9:10am
URL: https://forum.jogamp.org/bad-use-of-depths-in-Picking-java-tp1446213p1516395.html
Please find the patch below:
136,137c136,137
< z1 = (float) buffer.get(offset) / 0x7fffffff; offset++;
< z2 = (float) buffer.get(offset) / 0x7fffffff; offset++;
---
> z1 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++;
> z2 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++;