jit.gl.sketch

Minerbrook's icon

It seems that when I try to use mouse coordinates in jit.pwindow using jit.gl.sketch the coordinates are not accurate. In other words I can't get the path to precisely match the movement of the mouse. Am I missing something? Thanks in advance.

GLsketch.maxpat
Max Patch

Minerbrook's icon

I figured it out...'screentoworld' is indeed your friend!
The patch is a little messy and I'm sure has been done before, but i'm posting here in case anyone wants to have a look. It's part of a larger project that aims to animate on the fly.

GLsketch.maxpat
Max Patch