Tag Archive for sketches

animation

Here’s another mini sketch, using the tester from the wordpress processingjs plugin. Bear with me, folks..Source Code

Related Posts:

processingjs

Here is the latest in a small series of tests, embedding processing sketches on this blog. This one uses the wonders of processingjs, John Resig’s fantastic port of processing to javascript. This animation is nicked directly from the processingjs website, so please don’t hold that against me. Some oddities notices so far – I can’t seem to work out how to include text in processingjs sketches, apparently there’s some kind of glyph-y magic which helps – and the mouse interaction seems broken. Hmm..

Related Posts:

processing.js

This is a quick test of HasCanvas for publishing processing sketches in a web browser.  HasCanvas is built on the very nifty processing.js platform, which means publishing processing sketches is about as easy as clicking 1 + 2 + 3.see for yourself;

Related Posts:

simple metro

For students in the 11217 introduction to construction class;Here is an example of a simple metronome counter which moves a line up and down a sketch window over a period of time.  You should be able to follow the comments included to see how you might plug your sensors and motors into this sketch to easily arrange for your motors to move a) automatically left/right over a period of time and b) increasing in intensity based on a reading from your slider/light/proximity sensors.For the purposes of instruction and demonstration, i’ve connected the line movement to simple mouse input – move the mouse left/right to influence up/down motion – so you can see how your sensors might influence pre-programmed movement.Give this sketch a try… Read more

Related Posts:

Phidget Interface Kit + Processing

Here’s a simple example for connecting a PhidgetInterfaceKit 8/8/8 to a computer, using Processing.

You will need to download the phidget21.jar package from the phidgets website, find it in the ‘Programming’ section in the java examples section.  Once downloaded, just use Sketch>Add File… to add the file to your sketch.  Connect via USB and you’re ready to go.  I’ve labelled variables based on the sensors I was using, feel free to reassign and use as you will;… Read more

Related Posts:

Phidget Servo motor output via Processing

I’m currently preparing for a short piece of processing tutoring in the Bachelor of Architecture course, commencing tomorrow.  The course is a 1st year construction subject, in which the year group is designing modular structures from found objects (read; whatever they can find in large amounts at Reverse Garbage), with a  12-15 unsuspecting students are going to be shown the slippery slope that is processing, all in the aim of augmenting small construction projects with responsive elements.I’ve used the standard phidget servo motors with max/msp before, but I’ve decided to switch focus to processing so such solutions will no longer suffice.  There are some benefits to not using max/msp in the university context;

  • Runtime – i can’t count the number of times we’ve built test prototypes and final projects only to see them fall over due to the small number of licences we’ve access to on campus.  The runtime solution is acceptible for last minute, last chance, last straw moments but it’s just not good enough for day to day use or experimentation.
  • The extraordinary cost of licensing – the licences bought by the university come at a ridiculous cost, not to mention the involved installation process.  Processing by comparison is such a simple install – for both the core components and the additional libraries.
  • Extensibility – max/msp additional objects are always a welcome addition to the program, however the objects themselves tend to be closed off, limited in how much they reveal of their inner workings and can be fairly slow.

To this end I’ve enjoyed the processing learning curve, there’s been more than enough learning resources available online and in book form, so I’m definitely pushing for its’ inclusion in the syllabus in the arch. faculty.  Anthony Burke has been teaching processing in the master of architecture course this semester (with assistance from the computation whiz-kid Ben Coorey), so along with the arduino hardware the transition from proprietary to open-source projects is well under way in the DAB.So to proceed with the real agenda of this post, I was searching for simple code to interface with the PhidgetServo motor output units we’ve been using, this time working in processing.  I couldn’t find any decent examples online so had to cobble together one myself.Read on for more;… Read more

Related Posts:

maxmsp to processing

====== Maxmsp to Processing ======

Below is the first effort at sending Max/MSP data to a Processing sketch for output. The MaxLink object has made the task *almost* as simple as using the jit.lcd object internally in Max. Clearly the data needs to be massaged into a managable, or otherwise different form but this looks to be much simpler than initially feared.

I will be experimenting with the other sketches and patches packaged with the free object lib generously provided by the guys at jklabs, so there will be plenty more to come.

Also of note;
The image below links to screencast-o-matic, a free web service which will create an exportable, taggable, uploadable desktop screen grab from within firefox! no download or installation is required, simply select the size and away you go. I’ve exported the screencast as a .mov, but the link seemed more in keeping with the logic of the app. Enjoy!



Related Posts: