Interactive Designer and Developer
Collider Exhibit Series

Archive for the ‘Tutorial’ Category

Playing with GML and Flash ~ version 1

January 19th, 2010

So there are some videos out there that drew my attention to GML

What is GML? It is Graffiti Markup Language. "an open repository for sharing and archiving motion captured graffiti tags." Artists are archiving graffiti, amazing. That is a constantly growing collection of beautiful fluid animations.

So I took a quick look into it. XML, awesome. Standardized, brilliant! Importable into Flash? INDEED.

But taking a quick look at the applications, not too much Flash there.Vanderplayer and Experimental 3D renderer. Nice, but nothing basic. I thought I would give it a shot, at least a version 1 to start off with.

gmldisplay

This SWF just grabs a random GML file and draws it out. When it is done, it grabs another. But if it gets stuck somewhere, you can just click on it and it'll start a new GML file.

gmldisplay
THEREMIN VERSION!!!!

The theremin one adds sound to the graffiti. Similar to a Theremin, the up and down controls  volume, while left and right controls pitch. I found the original code for the theremin part here: http://blog.efnx.com/browser-theremin-wave-data-visualization/

Thank you efnx for the jumpstart to get this idea out of my head.

Download GML Writer

Download GML Theremin

Coding Edits Coming

January 7th, 2010

Looks like it is about time I back track a little and do some post editing. There are a few things that have changed through time that I should re-account for.

  1. returnBlobs() now exists in the Touchlib TUIO library
  2. using 'localhost' may not be the best to connect TUIO, with Win 7 out people have been running into Flash connection problems and '127.0.0.1' connects much better.
    • In Posts
    • In Files
      • Google Code Subversion repository
      • Google Code Zip Files
      • cyancdesign.com based Zip Files

Soon they edits will be made and I'll let you know when the changes are up.

Sliding Lists ~ TUIO Flash App Widget

December 13th, 2009

screenshot1So I am trying to build out this proof of concept application, its a demo of a conference's floor plan with a list of all the attendee on the side, you'll scroll through the list, pick one and the app will show you the location on the map and give more information about the attendee. Only one problem, I'm using the TUIO, so there isn't a component for a scollable list of ...anything. So looks like I just have to build one.

I took a couple tries before I stopped coding myself into a corner. The layering of the component had to be just right. Plus, it needed to the usable at any angle. It is intended for a table top / multi-user display. And to make that happen, I needed quite a bit of layering, on the app and in the code itself.

I also wanted this to start off all code based, so I only used FlashDevelop. So moving forward, if you have Flash you can build a MovieClip and attach it to the List Item Object and customize the look of the selectable items.

Download Slide List Widget

Read the rest of this entry »

TUIO Small Keyboard Widget

November 20th, 2009

My Google Code page has been updated! After what has seemingly been forever.

I've created a widget that I'd like to share with everyone. A small for keyboard for use in Flash TUIO multitouch (experiments) projects. The form I based off of my Google Android Phone and iPhone style. Read the rest of this entry »

Box2DFlash - Falling Text

August 25th, 2009

I'm so excited that I finally got to work on some experimental Flash at my professional employment. It is a nice change of pace to push an idea to the limits...and then some. In fact, I'm still not done working on the possibilities. This was only the starting point. Making text fall. Tie it into the Box2DFlash Physics Engine.

I want to give yet another shout out to Emanuele Feronato. If you are looking at this code, and are completely lost, he has EXCELLENT tutorials to get you started. Thats where I ended up taking my first steps in Box2DFlash.

Now in the guise of learning. I don't intend on going too indepth with the code...there is a lot going on. But hopefully, by breaking it down into phases, you can understand my building process. Something like this isn't accomplished in one chunk of code. It is build up by steps. At least the way I code. Read the rest of this entry »

LaserDraw - multitouch extension

July 28th, 2009

Now feels like a good time to get back into it. Especially coming across this site:

asluv

laserdraw1Sure, it doesn't seem like there has been many recent posts. It can be hard juggling a life around experimenting. It doesn't make it any less awesome when you see something and get inspired. Here is what I found, a AS3 script that would not just draw a line, but so nice ribbon curving and add a glow around everything automatically. It is just begging to be multitouchable (that sounds a little dirty now that I think about it).

http://asluv.com/2007/09/18/laser-draw-as3-experiment/

"This experiment uses the AS3 drawing methods to generate an organic mask formed by several pairs of points linked with curveTo.

The generated shape masks a simple radial gradient and the result has a GlowFilter and a DropShadowFilter applied to it."

It works great, no doubt about it. But the source is there, we can take it a little further. Now I got a lot further than expected working on it, and the night is starting to get late, so I'm going to try and condense the main ideas I want to remember that are the most useful.

Download Multitouch Source Code

Read the rest of this entry »

Multitouch Magnifier - AS3 experiment

June 2nd, 2009

Fire up the SVN, there's an new experiment to check out.

multitouch magnifier - AS3 from Chris Yanc on Vimeo.

If you don't have all the files, you can find them here: http://code.google.com/p/multitouchas3experiments/source/checkout

For this one, you are going to need Flash CS3 or CS4 as far as I know. I don't know how FlashDevelop or Flex will translate. We will be using assets from the Library which are linked to AS files. I'm thinking it'd be best to go through the files. Read the rest of this entry »

Quick 3D fun

May 25th, 2009

I do like the Flash and Math website. Is it a great place to find some tutorials and examples for actionscript. One in particular I'd like to point out is building a simple 3d cube, without needing APIs like Papervision. But, you will need to be able to compile SWF files with Flash 10 capabilities.
Read the rest of this entry »