2013年3月6日 星期三

Week03 葉正聖老師示範

今天目標: 可以使用 SimpleOpenNI 來在 Processing 環境下使用 Kinect體感裝置

1. 下載 Processing 1.5.1 穩定stable版

2. 下載 SimpleOpenNI-0.27.zip 及 OpenNI_NITE_Installer-win32-0.27.zip
http://code.google.com/p/simple-openni/downloads/list
2.1. 小心, 有些同學遇到 32bit vs. 64bit 的問題, 經測試,全部都用32bit 的話可以成功

2.2. google: Simple-OpenNI


3. 安裝 OpenNI_NITE_Installer-win32-0.27.zip 解壓縮
3.1. 先裝 OpenNI
3.2. 再裝 NITE
3.3. 再裝 SensorKinect (因為我們教室是使用 Kinect, 一人一機)
3.4. 最後裝 Kinect接上去,找到裝置,即成功

4. 將 SimpleOpenNI 這個 Library 裝在 Processing 的對應目錄中 (兩個目錄擇一來放)
4.1. 文件/Processing, 建 Libraries 目錄後, 把 SimpleOpenNI 目錄放入 Libraries目錄中
4.2. 或放系統目錄  processing-1.5.1\modes\java\libraries, 把 SimpleOpenNI 放進去
4.3. 重新開啟 Processing, 便可以在 File-Examples 裡面,在最下面看到 SimpleOpenNI 函式庫(Library)
4.4. 如果有問題,可參考 http://wiki.processing.org/w/How_to_Install_a_Contributed_Library

5. 試玩 SimpleOpenNI 範例
5.1. Processing選 File-Examples 裡面最下面的 SimpleOpenNI
5.2. 試 SimpleOpenNI-OpenNI-DepthImage
5.3. 試 SimpleOpenNI-OpenNI-Hands3d
5.4. 試 SimpleOpenNI-Nite-Hands

6. 試其他的 Processing 函式庫 (Libraries)
6.1. http://processing.org/reference/libraries/
6.2. 試 MSAFluid http://www.memo.tv/msafluid/
http://s373.net/code/marchingcubes/#download
6.3. 試 marchingcubes (有 voxel建模)
6.4. 試 controlP5 (有按鈕及各式介面)

7. 其他
7.1. 看看正在開發中的新的 SimpleOpenNI 原始碼 http://code.google.com/p/simple-openni/source/browse/#svn
7.2. 出現 Link 問題時(Can't find the SimpleOpenNI library : java.lang.UnsatisfiedLinkError??: )
請見 http://code.google.com/p/simple-openni/wiki/Installation 裡面(最下面)有討論
If you get issues with not being able to find the SimpleOpenNI library you probably are using 32 bit Java on a 64bit system. You can have a 64bit system but download everything in 64bit without updating your java then you'll get that error. I think it should work if you either get 64bit java or just download everything in 32bit. Just get everything to match.
就都使用 32bit 即可解決


沒有留言:

張貼留言