Simple Mouse Draw / Laser Control

Hi All -

Wanted to share a .toe I built to control the laser in this short film:
[url]http://slanted.org/project/yule-log-2-015-laser-log/[/url]

It’s pretty simple, but hopefully there’s some little bits that can be useful to other people

  • red squiggle dances around, hovering at a single point on-screen. length of the squiggle is subtly varying over time.
  • on left mouse click, red dot goes to to mouse location
  • while left mouse button down, red dot follows mouse (i.e., laser pointer mode), with a little bit of lag that creates a nice trailing tail effect
  • on mouse up, red squiggle hovers and animates at last mouse location
  • output to full-screen preview and EtherDream Chop

use Chop “FireBoundaryVals” to control

  • drawMin & drawMax - how “long” the tail is when you’re dragging the laser point around, small numbers = a dot, bigger numbers = a longer line
  • ambient Min & ambientMax - length of squiggle, bigger numbers = longer line
  • fireflyAmpMin & fireflyAmpMax - size of squiggle, bigger numbers = more area

to simplify the squiggly-ness of the squiggle, adjust the period in firefly_noise Chop

Extra shoutout to [url]http://beauburrows.com/[/url] for the EtherDream tutorial and everyone else who has posted helpful toe/tox-s :slight_smile:
laserFire.23.toe (9.11 KB)

1 Like

Wow!
Simple, cleand and very effective!
Thank you very much!

this is cool! thx for sharing!