iPhone Controlled Cube

Contains way too many buzzwords: HTML5, Websockets, Event Machine...

  • weblog
  • projects

You can control this cube by tilting iPhone or iPod. You must have IOS 4.2 installed. To start you must pair your IOS device and desktop browser. You can do this by visiting address appelsiini.net/ws with your iPhone or iPad and enter PIN code xxxx.

Now try tilting your iPhone or iPod. The more you tilt the faster cube will spin. This demo will track only roll and pitch axis. Response rate in this demo has been degraded on purpose to prevent mobile browser sending data 50 times per second.

Sorry, this demo requires a web browser which supports HTML5 canvas!

The rotating color cube is taken from Pre3d demo gallery by Dean McNamee. If you like this check also the iPhone orientation tracking HTML5 logo example. To learn more read the blog entry or watch screen capture on Vimeo.