Using X Y coordinates to draw


    Oct 08 2008 | 7:35 pm
    This is my first/post on the forums, as I am quite new to MaxMSP. I am working on a project for a college course and have found that I need to be able to draw (like on the lcd object) but instead of using my mouse, i need it to use x y input. Is there any way this can accomplished - and if so, what is the simplest way?
    Thanks!

    • Oct 08 2008 | 8:27 pm
      Have a look at the [lcd] help file in the basic_shapes subpatch and you should soon be on your way.
      If you're still not sure then you might need to read or re-read some of the first max tutorials; 9 and 10 will be particularly helpful. I was introduced to max about this time last year and I taught myself how to use it by modifying the tutorial patches to see what would happen and reading the helpfiles for the objects i encountered. good luck.
      lh
    • Oct 08 2008 | 8:52 pm
      I have checked the help file as well as the tutorials to no avail. What I have currently is a tracking object outputting constant x and y values. I need those to values to be used to draw on a screen, thereby mimicking my tracked object.
      The only item I see under the help file that may be of use to me is the "linesegment" with start and end x and y values, thought I'm not sure how I would use this with a constant flow of 1 x and 1 y value.
    • Oct 08 2008 | 8:58 pm
      Here's a patch that should do work for you (its a bit like an etch-a-sketch!). You can even change the size of the circle. I hope it is helpful.
      lh
    • Oct 08 2008 | 9:09 pm
      That helped me put the pieces together :) Thank you very much!
    • Oct 08 2008 | 9:52 pm
      Oop, sorry to continue this but now i have a new issue. How can i export the information from a cell block with 1 cell to the x or y box in that patch?
    • Oct 09 2008 | 10:53 pm
      Nevermind, I've got it all working :)
    • Jul 07 2018 | 10:26 am
      It's really interesting. How can I draw a circle on the LCD through the numerical change of XY? The process of drawing circles, not using frameoval。
    • Jul 07 2018 | 6:41 pm
      a circle consist of the-first-half-of-a-cosine for X and the-second-half-of-a-cosine for Y ... or something like that :) ... just experiment with linear movements (metro->counter->...) and [cos] and you will find it.
      it should also be posssible to think of a circle as four quarter circles ... where one quarter circle describes a curve of 1^2 (squared) curve.
      in modern versions of max (where lcd supports float), you would create like 8 or so dots per pixel (steps of 0.125) with "setpixel". or you can use the "lineto" message.
    • Jul 09 2018 | 6:58 pm
      Thank you very much. I am a novice. Though I do not understand, I will study it.
    • Jul 09 2018 | 11:23 pm
      sorry for beeing bit cryptic 。 drawing a circle into an lcd object by using arithmentics only is a quite sophisticated excercise for a novice。 however, 。t 。s poss 。ble 。 the eas 。est way t 。 draw s 。ngel p 。xels 。s pr 。 bably l 。nesegment: [linesegment 10 20 10 20 100 100 200] but depending on your goal, it might be easier to draw single pixels (or pixel singles) into a jitter matrix (or into a matter jitrix?)。 btw, the [scope~] helpfile can also help you to get an idea how to draw cycles using incoming movements of X nd Y values fullstop or google " lissajous" for some fun fullstop 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 -110
    • Jul 10 2018 | 10:10 am
      playing with poltocar helpfile. Thanks Roman ! hth (myself first 。。。) zz
    • Jul 12 2018 | 12:01 pm
      It's amazing. Thank you.