3D Exploration 1.81(橘色.免費試用版)
在S302安裝.
TODO:jsyeh.org/3dcg10有data.zip
有3D模型可用.

ToDO:用3D Exploration開啟data.zip模型
TODO:匯出OpenGL Sample APP

File-Save AS.選Cpp Open Gl.....在某目錄存下來(桌面)
4.勾繪匯出Export Dialog 出現框框
5.看cpp檔Notepad++看
6.codeBlocks.File-New-Project.OpenGL專案偷天換日(把main.c移除換porsche.cpp)


(1)組合出機器人
1.myGLMsample.zip
2.data.zip
3.source.zip{glm.c
glm.h
transformation.c
4.freeglut.zip
(2)做出可轉動的關節
1.匯出obj檔(要按visible objects only)

2.generate material file
save vertex nomals
compact data全勾

3.if (!pmodel1) {
pmodel1 = glmReadOBJ("data/dolphins1.obj");
if (!pmodel1) exit(0);
glmUnitize(pmodel1);
glmFacetNormals(pmodel1);
glmVertexNormals(pmodel1, 90.0);
}

4.glPushMatrix();
glTranslatef(0.5,0,0);
glScalef(0.4,0.4,0.4);
glmDraw(pmodel1,GLM_SMOOTH|GLM_MATERIAL);
glPopMatrix();
glPushMatrix();
glTranslatef(-0.5,0,0);
glScalef(0.4,0.4,0.4);
glmDraw(pmodel2, GLM_SMOOTH | GLM_MATERIAL);
glPopMatrix();

(3)錄製動作
(4)回家作業:機器人
沒有留言:
張貼留言