(1).小考: T-R-T觀念
(2).上週範例
(3).讀圖檔
(4).貼圖設定
(5).轉動的地球
(6).回家作業: 機器人
(1). T-R-T觀念
glPushMartrix();
glTranslatef(0.6 , 0.4 , 0); //(4)最後把"會照著手肘中心轉動的手"移動、掛到真的世界的畫面裡
glRotatef(-80 , 0 , 0 , 1); //(3)旋轉(小心 , 轉動的正負號 , 要想一下右手定則)
glTranslatef(0.3 ,0.3 , 0); //(2)把手肘(轉動中心)移動畫面的中心(負面、倒過來移動)
drawHand(); //(1)畫手 , 位置不能錯 , 從下住上看
glPopMatrix();
(2). 讀圖檔
Step.1 Google:"OpenCV 2.1" downland
*安裝小心 "PATH",第3個設定PATH
Step.2 CodeBlock 開新專案
*右上角 Console App 目殼專案,設定專案BuildOptions設定Search directiories:
(1)Compiler include {C:\opencv2.1\include}
(2)Linker lib {C:\opencv2.1\lib}
(3)linker Setting {cv210, cxcore210, highgui210}
step.3
沒有留言:
張貼留言