(1)跑執行檔
就會有四個視窗跑出來
(2)程式.cpp.編譯
開一個GLUT專案,然後把myGL_Frustrum_skeleton.cpp裡面的程式碼覆蓋到專案內的main.cpp
最下面的int main()裡面 紅字是要新增的
int main(int argc,char **argv)
{
glutInit(&argc,argv);
printf("Usage\n"
"(1) Mouse Drag to rotate\n"
"(2) Key UP/DOWN/LEFT/RIGHT to rotate\n"
"(3) Key '+'/'-' to resize\n"
"(4) Key 'o' for Orthogonal Projection\n"
"(5) Key 'p' for Perspective Projection\n"
"(6) Key '1'(red ball) and '2'(green ball) to switch to Kinect Frustrum\n"
"(7) Key ASDW for (humanX, humanY) movememt\n"
"It will read myGL_Frustrum.txt for Kinect Positions and Targets");
readKinectCFG();
initGL();
glutMainLoop();
return 0;
}
記得複製00readme.txt到專案資料夾內
然後執行
2.開啟processing 速寫本->引用庫文件->添加庫文件->libraries 搜尋collada
下載Collada Loader for SketchUp and Blender 3.1
就可以從 文件->範例程序 選擇你要的範例
下載Picking 0.3.1
Nicolas Clavaud
Pick an object in a 3D scene easily
從 文件->範例程序 選擇你要的範例





沒有留言:
張貼留言