2016/2/25
1.下載並安裝 Leap_Motion_Setup_Windows_2.3.1

2.解壓縮 桌面-葉正盛老師 processing-2.2.1-windows64

3.開啟 processing

4.點選 Sketch->Import Library->Add Library

5.進入 Add Library後 打上leap 點選 Leap Motion Processing

6.點選 File->Examples

7.點選 Contributed->Leap Motion for Processing->點擊兩次 e1_basic

8.點選跑出來的範例並Run

9.在原本的空白視窗打上老師教的 程式碼 並Run

10.程式碼:
import de.voidplus.leapmotion.*; //標頭檔
LeapMotion leap; //宣告變數
void setup() {
size(800,600); //螢幕大小
leap = new LeapMotion(this); //初始畫變數
}
void draw(){
background(255);
for(Hand hand : leap.getHands ()){
hand.draw();
}
}
期中作品參考:https://www.youtube.com/watch?v=h9Sw20pJOrk

影片:10:23開始 的 操控紙飛機
沒有留言:
張貼留言