Jitter coordinate system


    May 25 2008 | 11:42 am
    Hello,
    I'm trying to draw a small circle in a pwindow using gl.sketch. My
    pwdindow is 1000x750. My desktop resoultion is 1920x1200.
    1 - To draw in the bottom-right corner, i have to send "moveto 1.1
    0.85". ???!!! Why it isn't 1. 1. ?
    2 - How do i convert the mouse x y from the mouse/mouseidle function of
    a pwindow (it seems to be in pixels) to something i could use with the
    moveto message ? In other words, what is the screentoworld mechanism out
    there ?
    Sorry to ask so basic questions, but i've been only a few times into
    jitter...
    Thanks in advance
    f.e
    XP SP2 / MaxMSP 4.6.3 / Jitter 1.6.3 (i guess, because it's the last zip
    i got on my desktop, but version infos on jit mxe's says 1.5.3.79...)
    --
    f.e chanfrault | aka | personal computer music
    >>>>>>> http://www.personal-computer-music.com
    >>>>>>> | film soundtracks, sound art, music |

    • May 25 2008 | 11:58 am
      see screentoworld and worldtoscreen messages to jit.gl.render.
      On Sun, May 25, 2008 at 2:42 PM, f.e wrote:
      > Hello,
      >
      > I'm trying to draw a small circle in a pwindow using gl.sketch. My pwdindow
      > is 1000x750. My desktop resoultion is 1920x1200.
      >
      > 1 - To draw in the bottom-right corner, i have to send "moveto 1.1 0.85".
      > ???!!! Why it isn't 1. 1. ?
      >
      > 2 - How do i convert the mouse x y from the mouse/mouseidle function of a
      > pwindow (it seems to be in pixels) to something i could use with the moveto
      > message ? In other words, what is the screentoworld mechanism out there ?
      >
      > Sorry to ask so basic questions, but i've been only a few times into
      > jitter...
      >
      > Thanks in advance
      >
      > f.e
      >
      > XP SP2 / MaxMSP 4.6.3 / Jitter 1.6.3 (i guess, because it's the last zip i
      > got on my desktop, but version infos on jit mxe's says 1.5.3.79...)
      >
      > --
      > f.e chanfrault | aka | personal computer music
      > >>>>>>> http://www.personal-computer-music.com
      > >>>>>>> | film soundtracks, sound art, music |
      >
    • May 25 2008 | 12:33 pm
    • May 25 2008 | 12:56 pm
      also experiment with enabling @ortho for the gl.render for "flat" rendering
      with no z depth if you dont need it
    • Jun 11 2008 | 7:10 am
      --I'm trying to draw a small circle in a pwindow using gl.sketch. My
      pwdindow is 1000x750. My desktop resoultion is 1920x1200.
      --1 - To draw in the bottom-right corner, i have to send "moveto 1.1
      0.85". ???!!! Why it isn't 1. 1. ?
      Have you tried different scales for the pwindow, maybe only square ones have the full -1. to 1. range for XY. Or maybe they all have that, unless you set some flag (interp? not sure).
      --2 - How do i convert the mouse x y from the mouse/mouseidle function of a pwindow (it seems to be in pixels) to something i could use with the moveto message ? In other words, what is the screentoworld mechanism out there ?
      Seems like if it's static and only XY, you could just figure out the right scale object command for the pixels--> GL conversion.
      Not totally sure about all this, just experimenting... :)
      --CJ
    • Jun 12 2008 | 2:56 pm
    • Jun 13 2008 | 3:30 am
      That was some good info and helped clear things up, thanks!