2021年6月14日 星期一

Week_17 2021.06.14

 1. 複習打光.貼圖

1. 貼上程式碼

github   
---------------------------------------------------------------------------------------------------

2. 成功!

2. 加上左手臂 T-R-T

1. 貼上程式碼

github   
---------------------------------------------------------------------------------------------------

2. 成功

3. 用滑鼠轉動

1. 貼上程式碼

github   
---------------------------------------------------------------------------------------------------

記得!main 函式裡面要加

                    glutMouseFunc(mouse);

                    glutMotionFunc(motion); 

2. 成功 

4. 加上鍵盤轉換關節

1. 貼上程式碼

github   
---------------------------------------------------------------------------------------------------

            記得! !

                    (1) main函式裡面要加 glutKeyboardFunc(keyboard);

                    (2) motion 要改成 angle[angleID] += x-oldX;   

                ///0: angle[0], 1: angle[1]. 

2. 成功

5. 修改左半邊 + 加上右半邊

1. 貼上程式碼

                太多了..下面在來附上完整ㄉ

2. 成功 

5. 我想先改檔案位置

1. 用 Notrpad++ 改!

2. 重置 Code Blocks

3. freeglut.dll 記得補上

6. 存讀檔

1. 貼上程式碼

                太多了..下面在來附上完整ㄉ

                    記得!!

                        (1) 加上指標

                                #include <GL/glut.h>

                                FILE * fout = NULL;

                                FILE * fin = NULL;

2. 成功 (下面再附上完整ㄉ)

7. 動畫 內插

1. 貼上程式碼

github   
---------------------------------------------------------------------------------------------------

2. 成功... (angle.txt 裡面要有資料喔)

8. 貼圖(Open CV 記得安裝和設定)

在第八週有詳細說明!去看!!



 

     
 


沒有留言:

張貼留言

Week18期末作業(橘貓的跳舞熊熊)

 期末作業(橘貓的跳舞熊熊) 影片: https://youtu.be/R89tptMaQZw 程式碼: #include <opencv/highgui.h> #include <opencv/cv.h> #include <GL/glut.h...