Picking

14 views
Skip to first unread message

Kire Serafimov

unread,
Apr 18, 2011, 11:32:31 AM4/18/11
to PhiloGL
Hi,

Can you provide an example code for using picking? I tried the code
described here: http://blog.thejit.org/2011/03/11/philogl-1.1.0/#picking,
but I couldn't make it work.

Here's what I've done so far: http://infinity.x10.mx/WebGL/03/.

Nicolas Garcia Belmonte

unread,
Apr 18, 2011, 11:35:58 AM4/18/11
to phi...@googlegroups.com
Hi,

Here's a complete picking working example:

https://github.com/philogb/philogl/tree/master/examples/picking

--
Nicolas Garcia Belmonte - http://philogb.github.com/

Kire Serafimov

unread,
Apr 18, 2011, 12:28:47 PM4/18/11
to PhiloGL
Thanks for the example.
I tested the example locally and it seems that it has a bug. When I
put the mouse cursor over the canvas only one particular object gets
selected and it stays selected until the mouse cursor is dragged out
of the canvas.

On Apr 18, 5:35 pm, Nicolas Garcia Belmonte <phil...@gmail.com> wrote:
> Hi,
>
> Here's a complete picking working example:
>
> https://github.com/philogb/philogl/tree/master/examples/picking
>

Nicolas Garcia Belmonte

unread,
Apr 18, 2011, 3:02:39 PM4/18/11
to phi...@googlegroups.com
Hi, thanks for the report.

The example seems to be working fine to me. I tested Chrome and FF4 on
a Max OSX. What browser/OS are you using? Also, are you trying the
example with the official 1.1.0 version or you downloaded the master
branch to test the example?

--

Kire Serafimov

unread,
Apr 19, 2011, 7:48:58 AM4/19/11
to PhiloGL
I'm using Chrome on Windows 7 and using the 1.1.0 version of PhiloGL.
I tested the example many times and I notices that only the object
close enough to the coordinate system's origin gets selected and only
if the object is big enough (radius>1.5 for spheres). The object is
selected when the mouse cursor enters the canvas and deselected when
the cursor leaves the canvas.
Reply all
Reply to author
Forward
0 new messages