2014年3月10日 星期一

第三週上課內容

第一節課
0. 介紹 Leap Motion 規格, Frame, Hand, Pointable (Finger or Tool)
1. 下載並安裝 Leap Motion (a) Dev 開發 Leap Developer Kit, (b) Software軟體
2. 桌面/葉正聖老師/Processing-2.1.1/Processing.exe
2.1. Sketech-Import Library, 載 Leap Motion for Processing
3. File-Examples, 最下面 Leap Motion for Processing 裡的 e1_basic 範例

第二節課 目標: 猜拳 剪刀石頭布
4. 文件Processing/libraries/leapmotionforprocessing/reference/index.html
5. 在剛剛範例 e1_basic裡,
  for(Hand hand : leap.getHands()){
    PVector hand_position    = hand.getPosition();
    //////////////////////////////////////////////YAYAYA
    println("x:" + hand_position.x + " Y:" + hand_position.y);
    int n=hand.countFingers();
    if(n==5 || n==4) image(img5, hand_position.x, hand_position.y);
    if(n==2 || n==3) image(img2, hand_position.x, hand_position.y);
    if(n==0 || n==1) image(img0, hand_position.x, hand_position.y);







第三節課:
1. TODO: 請看一看, 想一想, 你的期中作品想要做什麼東西?
請用文字寫、用圖說明, 把你的創意寫出來!




2. 現場示範: 老師示範兩手握方向盤的範例

沒有留言:

張貼留言