picking in JOGL 1.1 b02

since i changed from int[] to direct IntBuffers as selectionBuffer I have problems getting the name and depth of the picked objects. the number of hits is right,
so how can i get these values?

here´s what i get, when i iterate through the IntBuffer.
i´m wondering which value is the name, as i call gl.glLoadName() with very small integers from 0-20.

hits: 3

0 16777216
1 -2130968705
2 -2130968705
3 83886080
4 16777216
5 -2130968705
6 -2130968705
7 100663296
8 16777216
9 -2130968705
10 -2130968705
11 117440512
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
.
.
.

thanks
patrick

0… Number of names.
1… & 2… max & min z-coordiates intersected by viewing volume.
4… Name.

Your direct IntBuffer probably has the wrong endianness. You need to call order(ByteOrder.nativeOrder()) on your direct ByteBuffer before viewing it as an IntBuffer. I recommend using net.java.games.jogl.util.BufferUtils to instantiate byte, int, and float buffers for use with JOGL.

thanks a lot.
calling ByteOrder.nativeOrder worked fine.

patrick