Forums > MaxMSP

LCD help

March 9, 2011 | 10:36 am

Hey there! I’m a brand new user to maxMSP, using max 5 at varsity while doing interactive studies.

I’m trying to create a digital etch a sketch, and so far I’ve gotten components such as the colour picker, pensize and interface working smoothly. I’m obviously trying to draw on the LCD (sized 800 by 600) with two dials place below it, one for inputting x co-ordinates, one for y. The problem is however, I can’t get the pen to start centered on the LCD when starting the patch, and I can’t seem to get the dials to correspond to the correct LCD co-ordinates to act like one would expect an etch a sketch to work.

As mentioned, my max knowledge is limited, and my Java basically non-existent, anyone know how to help?


March 9, 2011 | 10:53 am

re-check the help patch, especially the lineto and moveto commands, the multislider connected to [lineto $1 $2] almost does what you want already


March 9, 2011 | 9:45 pm

I’m afraid that’s where my issue lies, it for some reason lets the pen rocket off the LCD with no hope of returning it to the drawing window unless I click on it again to reset it. I need to know how to precisely give it coordinates to go to via position on the dial.


March 9, 2011 | 11:01 pm

You might want to check out one of the examples that comes with Max that is essentially an etch-a-sketch emulator. It can be found here:

Max5/examples/jitter-examples/render/jit.gl.sketch-a-etch.maxpat

It is a pretty straightforward implementation all done through jit.gl.sketch.

-Ben


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