Hello …
I’m new to JOGL .
I’m nearly finished with my picking-implementation ( with glpickmatrix() ).
I have filled my Selectbuffer.
Can sombody give me a description of the values stored in the buffer ?
My selectionbuffer does not corresopond with the descripions i’ve read in other posts about picking…
Here is an example (values stored in my selection buffer):
I have 10 Objects in my scene ,clicked on one object and got the following result:
buffer[0] = 10
buffer[1] = 175751660
buffer[2] = 1787727146
buffer[3] = 0
buffer[4] = 0
buffer[5] = 1
buffer[6] = 2
buffer[7] = 3
buffer[8] = 4
buffer[9] = 5
buffer[10] = 6
buffer[11] = 7
buffer[12] = 8
buffer[13] = 0
buffer[14] = 0
…
I think the first value (10) is the name of the Object (Object 10) i clicked on… and not the fourth value ???
How can i access my Objects now? What can i do with the ID ?
To be more precisely :
I render some randomly located cubes in space. I want the cubes to change their color, if they are selected.
How do i have to do to modify my renderroutine to get the desired effect( with the information stored in the selectbuffer)
I hope you understand what i mean. I´m no native speaker…
thx