Login  Register

Re: bad use of depths in Picking.java

Posted by Sven Gothel on Sep 23, 2010; 10:19pm
URL: https://forum.jogamp.org/bad-use-of-depths-in-Picking-java-tp1446213p1570815.html

On Friday, September 17, 2010 11:10:18 gouessej [via jogamp] wrote:

>
> 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++;
>
>

Thx, fixed with: d1830d4ccd8c2db30896e987638228c45e251564

Pls send me a pull request next time :)

~Sven