Leap into the future with Leap Motion
Sudo Soldiers
04.16.2014
Today's plate
Leap Motion
Leap Motion SDK
Getting on the bandwagon
Demos!
today we're going to be looking at..
elaborate on each bullet
What is it?
First off...
Does everyone here know what the leap motion is, and what it does?
If no, go down. If not, go right.
Who uses it?
What's so special about this device?
Well, it's the closes thing we have to Iron-Man esque UIs we have now.
Quote the inspiration from tony start
SpaceX
Right now, we interact with computers in a very unnatural 2D way.
With the Leap Motion Controller, you can really apply your intuition and something from your mind to a physical object with far greater ease than we currently do.
- Elon Musk
How do I get started?
Okay, let's start writing some applications
The Leap Motion SDK is one of the best...
Awesome documentation
What languages can I use it with?
C++
C#
Objective C
Java
JavaScript
Python
This SDK supports pretty much every language under the sun
I've used Java and JS...
They're pretty good, very easy to initialize
LeapJS
Following the SS theme...
Getting started...
HTML
<script src ="//js.leapmotion.com/leap-0.4.3.min.js" > </script >
JavaScript
var controller = new Leap.Controller({
enableGestures: true
});
controller.connect();
As with any other thing, you import it in the DOM, and then initialize it
Point out what statement connects with the Leap Motion
The loop
var controller = new Leap.Controller({
enableGestures: true
});
controller.connect();
controller.on('frame' , function (frame) {
});
Introduce the 'frame' element. Talk about how it is the main part of the Leap Motion SDK
Frame is everything
The frame is everything...
Well, not really but
3 things
Everything is a pointable
Gestures
Another thing we're going to talk about is gestures...
Most important part of the leap motion...
The Fantastic Four
CircleGesture
SwipeGesture
ScreenTapGesture
KeyTapGesture
These gestures make it really easy to write applications for the leap.
Something that you would think takes up 100 lines of code really takes up 4
eg: Okay leap, tell me how many fingers there are on screen and tell me exactly where they are
Let's make something!
Hands dirty.
Let's build something.