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 »
While I was moving to a new home, I was approached by Rishi Bedi from the NUIGroup as they were just about to finish up putting together the first draft of their community book project. They were running out of time and needed something for the Actionscript 3 section of the book. I was pleased to help out in any way I can.
So as quick as I could, I wrote up a little Actionscript history lesson, How Flash communicates with tracking software via FLOSC, and building your first app to get your TUIO communication started.
Admittedly, there has been major changes since the section was first written. CCV now communicates directly with Flash, returnBlobs() has been added into TUIO.as so you no longer need to add that yourself.
Every author in the book has done an excellent job and I’m proud to be a part of such a brilliant community. I’m looking forward to finding the time to read up on every section.
Fire up the SVN, Touchlib’s AS3 TUIO library has been updated! Along with RotatableScalable. These files have been my introduction to developing Flash AS3 apps for multi-touch. This is a great thing, changes that have been mentioned in the NUIGroup Forum Threads have been added in. And even suggestions from this site has been added as well.
returnBlobs(); function was added into TUIO.as ~ a personal favorite of mine ~ read more
RotatableScalable scaling registration point bug fixed ~ read more
and TUIO debug mode ON/OFF bug fixed, all tracking diplays can be turned off without errors
Now that Touchlib is once again updated. I’ve integrated the new files into my own collection of experiments., and went through each one to make sure no problems arose. Another thing I began checking was using Flash Player’s Standalone Debugger version 10. For those who don’t have Flash to work with and do not have a stand alone player, that’s where you can find one. Read the rest of this entry »
Early to rise this morning, and a few things I’m trying to accomplish today. Two nights ago I made the switch from using the xbox live camera to the PS3. And I can not tell you how happy it has made me in the end! After learning which setting work the best with my computer (so far its 320×240 at 60fps).
Came across another website post, Pimp my Cam. Swapping out the PS3 lens for another lens which can hold a wide-angle security lens. Brilliant. So now I have the lens on order and I should have it this week sometime. But what to do till then. I’m exremely happy with the performance of the PS3 cam, but I have the xBox setup in the table. I couldn’t wait, I needed to switch the camera and try first hand. I immediatly understood the use of the wide-angle lens, to get all of the screen in view the camera has to be put completely at the bottom of the box, I even needed to switch to a small mirror to help it fit. But it works great. Some temporary duct tape and I’m good to test. Read the rest of this entry »
Here’s the long and the short of it. I’ve been collaborating with Alexander Boxerbaum for an upcoming event in downtown Cleveland Ohio called Ingenuity Fest. Alex’s project is called 36 Views of a Bridge, take a look at the previews, I think it looks amazing.
The plan is, the audience should be able to vote on which video(s) they like the most to change the order of the final playlist of all the videos. So the initial options are, vote online, vote with mobile devices and vote at a computer interface at the event. But with the event being focused on ingenuity, there needs to be something a little more than just computer and mouse… but what?… wait for it… Multi-touch Table and multi-touch Flash interface.
So here is the rundown:
One computer runs the multi-touch table and the voting
Each vote is sent to a web server via PHP to a MySQL database
the same PHP script can also collect votes from webpages and mobile devices
A seperate computer reads the votes from the database to reorder the video playlist every time the full playlist has completed
And there is the base functionality, in addition to that. There is a multi-touch magnifying glass feature built into the stage. Touch on the map and get a viewport of 3X magnification of the map. Just a little bit of spice added into the app.
There is still much to do to get the app finalized for the event. So I’ll be working hard to get it ready in time to get the proper videos in and any design revisions to the app. I’m also trying to get a new table prototype ready in time.
The is something powerful at your disposal in the touchlib library for AS3. It is called RotatableScalable.as
Now, it is a bit messy. And there is code in there that doesn’t really need to be, but it is a Great place to start if all you want is to Drag, Scale and Rotate MovieClips. Unfortunetly, it’s not without bugs to work through. Lets do a really quick test in Flash. Read the rest of this entry »
It has been a while. But thanks for returning. I’m all situated with the move and now I’m feeling refreshed and ready to return to a little experimenting. So I thought I’d come back strong with something really visual.
The quickest explination I can think of is. Fractals are create by using recursion to run the same drawing function, but for every iteration length and thickness decreases a little. Right off the bat, I want to confess that recursion has to be my least understood topic when it come to programming. Though the idea doesn’t sound too hard, reloop through the same function a certian number of times. Read the rest of this entry »
Now that the majority of my home move is complete, I wanted to make sure that my multi-touch build got moved in one piece and nothing became askew. My new home has a nice size basement that I’ll be able to utilize as a primary work area, and the lack of windows will let me be able to test experiments at any time of day. I like this.
So I just wanted to make a new video to share with everyone, it’s actually the first time I’ve been able to do my latest experiments on a touchscreen and not just use a simulator. I’ve included demonstrations of Touch Explosions, Add, Move and Remove MovieClip and (yet to be tutorialized) Touch Vines. The Touch Vines tutorial is coming soon.
Unfortunately, I did not add in PaintCanvas.as to SimpleDraw.as to the mix, the computer I use to run my multi-touch just doesn’t have the power to run it smoothly. Which brings me to a new challenge, is there a way to adjust the coding so that it WILL run smoothly on a slower computer system? Even with the Touch Explosions, you’ll notice that if I touch with all 10 fingers at once, there is a brief slowdown in processing power.
I hope you like the music. I tried a little bit of choreography for you to enjoy, very little.
Happy Experimenting. (^_^)//
Tonight, I decided to look into some of these core files you can find in the Touchlib Library. If you haven’t tried it out yet, there is a LOT of powerful stuff in there, but to me it seems rather tucked away. You need to open up the file and just read them to see what they intend to do. Then you can start to simplify.
Now the paint canvas file is used in the AS3\src\deploy\Paint.swf file. It give you a nice palette of color to choose from and uses Filters to blur and fade out and disperse the lines/dots as you draw them. Fact is that you are just dropping dots along a path to create the lines in the file.
Looking at that file, I wanted to pull out the most basic part. And maybe try to change it a little bit. So I don’t really want to bring in the color picker, only the touch drawing part. And I want to change that to put down a random color for each time I get a new touch point. Read the rest of this entry »