Jitter coordinate system

May 25, 2008 at 11:42am

Jitter coordinate system

Hello,

I’m trying to draw a small circle in a pwindow using gl.sketch. My
pwdindow is 1000×750. My desktop resoultion is 1920×1200.

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 |

#38046
May 25, 2008 at 11:58am

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 1000×750. My desktop resoultion is 1920×1200.
>
> 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 |
>

#131921
May 25, 2008 at 12:33pm

#131922
May 25, 2008 at 12:49pm

#131923
May 25, 2008 at 12:56pm

also experiment with enabling @ortho for the gl.render for “flat” rendering
with no z depth if you dont need it

#131924
Jun 11, 2008 at 7:10am

–I’m trying to draw a small circle in a pwindow using gl.sketch. My
pwdindow is 1000×750. My desktop resoultion is 1920×1200.

–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

#131925
Jun 12, 2008 at 2:56pm

#131926
Jun 13, 2008 at 3:30am

That was some good info and helped clear things up, thanks!

#131927

You must be logged in to reply to this topic.