Forums > Jitter

jit.pwindow attribute "pickray" ?

November 6, 2013 | 6:00 pm

Hey,
I was looking for a way to have mouseclicks inside a pwindow reporting location in pwindow’s cell coordinates rather than screen pixels, then i saw the "pickray" attribute. So i tried to check that, then instantanously the jit.pwindow became buggy and glitchy, and it outputs a "pickray" message wiht numbers which are not looking so relevant.
Hence, here i am, seeking to enlight my numbed soul.


November 7, 2013 | 8:41 am

patch?


November 7, 2013 | 10:18 am

oh a very simple one really, it was just a test ; didn’t save it, i’m afraid i did not remember it well. btw macosx 1068 max614

<code>

– Pasted Max Patch, click to expand. –

</code>

to get the bug : i created those things, then checked the "pickray", then try to resize/move the pwindow. Here, have a picture :

Attachments:
  1. Capture-d’écran-2013-11-07-à-19.07.51

November 7, 2013 | 10:22 am

ah it’s funnny, it did’nt apear like that on my screen, rather like that :

Attachments:
  1. Capture-d’écran-2013-11-07-à-19.14.09

November 7, 2013 | 1:30 pm

Hi. I’ve noticed it too.

Here are the steps:
1. Turn "pickray" on.
2. Click inside the pwindow.
3. Try to grow the pwindow (bottom right corner or through the inspector, it doesn’t matter).
4. It’s not a momentary glitch. The pwindow never updates, even if you bang the matrix.

On a side note, the first and second values that get out of pickray seem to be the normalized coordinates (-1 to 1) on the x and y axis, but Rob Ramirez is certainly in a better position to clarify it.

<code>

– Pasted Max Patch, click to expand. –

</code>


November 27, 2013 | 2:22 pm

apologies for missing this post.
pickray only functions when the pwindow is the drawing destination of a gl-context.


Viewing 6 posts - 1 through 6 (of 6 total)