2d "polar" parameter control


    Apr 23 2006 | 7:07 pm
    I have a dream.
    I dream of a control mechanism in which the user is presented with a big rectangle. Inside can be placed an arbitrary number of "poles." These will be numbered and will correspond to outlets. When performing with this object, the user can click the mouse anywhere inside, and the euclidean distance from each pole will come out of the outlets.
    This is somewhat akin to electrotap's color-based control scheme, but simpler and easier [possible?] to do on-the-fly.
    1. Has anybody done this? I haven't seen it. Have you?
    2. Ideas for improvement?
    3. How would YOU do this? I can imagine a combination of LCD and javascript. It should be as lightweight as possible.
    Thanks,
    Kevin

    • Apr 23 2006 | 7:27 pm
    • Apr 23 2006 | 8:39 pm
      what a weird dream. even if you consider only one, standard sized pole, how
      on earth would you make him get into it?
      if i got you wrong, you could try jsui object (which is something like
      lcd+javascript, but different), and here's non-javascript way to do it:
    • Apr 23 2006 | 8:59 pm
      [vbap]
    • Apr 23 2006 | 9:06 pm
      haven't seen it. Have you?
      > 2. Ideas for improvement?
      > 3. How would YOU do this? I can imagine a combination of LCD and javascript. It should be as lightweight as possible.
      you could simply track the mouse in an lcd, and compare
      the mouse position with the current positions of pole 1,
      pole 2, pole 3 ... then you can calculate the distance
      between pole 1 and mouse position and pole 2 and mouse
      position etc and compare those values to control gain
      or whatever.
      maybe you become the second person using [110.pythagoras]?
      it was made for exactly this purpose.
    • Apr 23 2006 | 9:18 pm
      hehe. I used it as well actually. Yeah, I was a bit lazy to remember
      my old maths courses and patch it myself... Shame on me.
      Julien.
    • Apr 23 2006 | 10:28 pm
      i liked your patch nesa, could not resist messing with it. In the following sounds like 7 trucks parking up.
    • Apr 24 2006 | 8:28 am
      Kevin Cox wrote:
      > 3. How would YOU do this? I can imagine a combination of
      > LCD and javascript. It should be as lightweight as possible.
      I think no javascript necessary here, paint each oval as sprite, track
      the position of each sprite, if clicked at a position of a sprite,
      select and move it with the mouse, do the distance calculation as nesa
      showed in his example. Should be reasonable light weight and straight
      forward.
      Stefan
      --
      [][] [][][] [][] [][][]
      [][][][][][][][][][][][][][][]
      Stefan Tiedje
      Klanggestalter
      Electronic Composition
      &
      Improvisation
      /~~~~~
      \ /|() ()|
      ))))) )| | |( \
      /// _/)/ )))))
      ___/ ///
      -------------------------x----
      --_____-----------|-----------
      --(_|_ ----|-----|-----()----
      -- _|_)----|-----()-----------
      ----------()------------x-----
      14, Av. Pr. Franklin Roosevelt,
      94320 Thiais, France
      Phone at CCMIX +33-1-57 42 91 09
    • Apr 26 2006 | 1:27 am
      THANKS everybody. Sorry I ditched the thread for a few days.
      nesa and john - great stuff. You guys have done the bulk of the work I was going to do. I'm going to make some improvements, make it a bit more generic and reusable, and I'll post back (maybe even add it to the max objects database).
      I had been thinking of using vbap for this too. Seems overly complicated when plain ol' euclidean geometry works fine.
      thanks again
      k
    • May 18 2006 | 10:06 am
      have a look at int.lib - sounds similar to what you guys are doing
      I'm using Jitter javascript and Open GL.