| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Applet's with native NEWT support, ie jogl-newt-applet-runner-gears.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Julien Gouesse send me this patch to the jogamp ML on 2010-09-09 16:24 Thu +0200:
Picking.java is a provided example of JOGL 2 here:
http://jogamp.org/jogl-demos/src/demos/misc/Picking.java
http://jogamp.org/jogl-demos/src/demos/misc/Picking.java
The both lines above are wrong:
z1 = (float) buffer.get(offset) / 0x7fffffff; offset++;
z2 = (float) buffer.get(offset) / 0x7fffffff; offset++;
Actually, the select buffer contains 32-bits unsigned integers stored into
32-bits signed integers. Then, the last digit is wrongly used as a sign bit.
As Java has no unsigned type, at least 33 bits are required to store these
positive values with their sign. Therefore, the long type (64 bits) should
be used. The both lines above often work correctly except when the depth
values are bigger than 2^31. I assume that they have been copied from an
example written in C++. We should rather do this:
z1 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++;
z2 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++;
|
|
|
|
| |
intitialization can be done in time
|
| |
|
| |
|
| |
|
|
|
|
| |
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@352 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
|
|
|
|
|
|
|
| |
on to trunk
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@351 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
|
|
|
|
|
|
|
| |
correct Z computation
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@208 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
|
|
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@175 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
|