This is the Arduino and Processing code for the project at http://makeprojects.com/Project/A-Touchless-3D-Tracking-Interface/2233/1#.T-O1T-1A7IY.
Processing Arduino
Latest commit 4988b35 Dec 6, 2013 1 @zerotri zerotri Update TicTacToe3D.pde
Updated the code to work on Processing 2.0.3 as 1.5.1 does not run on operating systems without 32bit Java support (OSX 10.8/10.9 for example).

Visual output is slightly modified due to a current regression in Processing with its new OpenGL renderer as can be seen here:

processing/processing#2051
Permalink
Failed to load latest commit information.
TicTacToe3D Update TicTacToe3D.pde Dec 6, 2013
_3DInterface first Jun 22, 2012