LCD help

Mar 9, 2011 at 10:36am

LCD help

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?

#55412
Mar 9, 2011 at 10:53am

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

#199406
Mar 9, 2011 at 9:45pm

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.

#199407
Mar 9, 2011 at 11:01pm

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

#199408

You must be logged in to reply to this topic.