Friday, September 11, 2015

Leap motion + JavaScript

Our team had won the yearly hackathon at work few months back. We got an iPhone 6 and a Leap motion controller device as the mega prize. Being a big fan of Android that I am, I was not interested in switching to iPhone and gave it to my wife. I have been playing around with leap motion controller for sometime. Leap motion is a plug-n-play device which can sense your hand movements to control your computer. I was quite surprised at the accuracy with which the device is able to detect the fingers, palms, hands and arms. The visualizer app which comes with the device helps in visualizing your hands in 3-dimensional space. Leap motion provides SDK for us to integrate with our applications. 

HTML5 Copter


Playing HTML5 copter with leap motion controller

As a hello-world, I have added leap motion support (using JavaScript SDK) in the HTML5 copter project which I have worked on few years back. If you have a leap motion device, just plug-in the device to control the copter with your hand gestures (up, down, left, right). Try out the copter game here -- http://copter.varunkumar.me. Check out the video of me playing the game with my hand gestures (recorded #throughglass). Source is available here.


-- Varun

No comments:

Post a Comment

google-site-verification: googlea4d68ed16ed2eea6.html