到 jsyeh.org/3dcg10 下載 :
windows.zip 下載 \ windows \ Light Materials.exe
data.zip 下載 \ windows \ data \ 模型
glut32.dll 下載 \ windows \ glut32.dll
雸轉 :
source.zip 等一下要用glm.h (glm.c改glim.cpp)
讓3D模型旋轉 :

打光 :
(1)打光的範例 Light Material.exe
(2)CodeBlock. File - New Project - GLUT
(3)把上週3D Model . (glm.h(glm.c改glm.cpp)
放到 :
(A)#include "glm.h"
(B)GLMmodel * pmodel = NULL;
(C)畫模型


(4)打光自己來 - 留下 :
(A)陣列 ...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
(B)在main()打光設定


讓3D模型旋轉 :

打光 :
(1)打光的範例 Light Material.exe
(2)CodeBlock. File - New Project - GLUT
(3)把上週3D Model . (glm.h(glm.c改glm.cpp)
放到 :
(A)#include "glm.h"
(B)GLMmodel * pmodel = NULL;
(C)畫模型


(4)打光自己來 - 留下 :
(A)陣列 ...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
...[ ] = {...};
(B)在main()打光設定


沒有留言:
張貼留言