Project Overview:
Our
final project came together as a combination of the ideas we had for
our individual projects we did for the SISTA art show earlier this
semester. Andrew’s began as a sort of game and experiment in 2D physics
using the TUIO protocol to interact with the shapes. Mine was an
adaptation of a simple drawing application where the lines would back
connect and form a kind of web. It was also designed using the TUIO
protocol to allow the users to perform multi-touch drawing. The initial
issue trying to bring these two programs together was the difference in
how they were being drawn. Since Andrew’s involved moving objects it
required the background to be redrawn every frame so that previous frame
is erased and the shape would only exist at one point. Mine was the
complete opposite since I wanted the lines to persist every frame the
background was only redrawn when it hit the reset point. To fix the
issue the line drawing code was changed so that it produced a line
object that was stored in an array list. Then this list of lines was
iterated through every frame and redrawn, maintaining the web. In
addition to this the drawing was modified so that instead of being based
on TUIOcursor locations, the lines would be drawn by the shapes. Andrew
improved upon his initial 2D physics design quite significantly and
added a number of features to the shapes with both keyboard and TUIO
based UI to interact with the features.
After doing the necessary modifications to my code to work I spent most of my time trying out different computer interaction ideas based around the TUIO protocol. I settled on using the Wiimote since there appeared to be a number of tracker applications and I owned one. In doing my initial research I found that most used the Wiimote’s IR camera to detect an IR light source. This light source would serve as the cursor. Once I got to the actual testing phase this became much harder. The first application I tried was Wiimote Whiteboard due to it being the only one with a Mac build. I was able to get it up and running with little difficulty, the issue arose though that this application did not send TUIO but rather controlled the mouse cursor. Instead of rewriting the code to run off mouse inputs I went with looking for other options. The first I tried was the WiiRemoteJ and Wrj4P5 library. It looked promising however I was never able to get it to run any demo code. I assume it is due to it last being updated in 2009 and did not appear compatible with Processing 1.5. The final application I tried was WiimoteTUIO which unfortunately only has a Windows build. This application did however work the way I wanted. It broadcast the TUIO signal, which was received by our sketch and responded to the IR pen. The only issue that currently exists is what appears to be a rather limited field of view of the Wiimote’s IR camera. This leads to rather poor calibration which makes pressing the interface buttons a bit of a challenge.
Wiimote Whiteboard
WiimoteTUIO
Project code