sudden motion sensor in instant player

this is an example about using the macbook’s sudden motion sensor within a 3d scene of instant player. it is based on java and daniel shiffman’s processing library. just add that library to your classpath or copy it to /Library/Java/Extensions

instantmotion.jpg

source code:
instantmotion.x3d
instantmotion.java
instantmotion.class

i am going to add more processing libraries to instant player over the next weeks (i.e. blob detection). using processing libaries in instant player is quite easy. the only problem is that most libaries are using PApplet as parent class and calling an awt window.