1. 上週作業
2. 讓機器人動
3. Timer計時器
4. 鍵盤滑鼠控制
5. 機器人2.0
1) cbp專案檔 用Notepadtt開include目錄 lib目錄設對working目錄. 設"."(句點)
2) Build&Run
3) Week14_01timer.cpp
4) Week14_02pushTRTpop_Left.cpp
5) Week14_03pushTRTpop_Right.cpp
6) Week14_04mouseRotateAng&e.cpp
可用mouse轉角度
2017電腦圖學 Computer Graphics 授課教師: 葉正聖 銘傳大學資訊傳播工程系 每週主題: 程式環境、點線面顏色、移動/旋轉/縮放與矩陣(Matrix)、階層性關節轉動(T-R-T)、做出機器人、打光、貼圖、glu/glut函式、鍵盤、滑鼠、計時器(timer)、讀入3D模型、粒子系統、聲音、特效、投影矩陣、攝影機與運鏡、機器人2.0、期末作品
2017年5月23日 星期二
2017年5月16日 星期二
week13霈文的筆記
- 小考T-R-T 觀念
- 上週範例
- 讀圖檔
- 貼圖設定
- 轉動的地球
- 回家作業:機器人
[ 小考練習 ]
1)
glPushMatrix();
glTranslatef(0.6, 0.4, 0); //最後把手軸移回去原本的點
glPotate(-80, 0 , 0 , 1); //再旋轉80度(右手定理)
glTranslatef(0.3, 0.3, 0); //先把手軸移到中心點
drawHand();
glPopMatrix();
2)
glPushMatrix();
glTranslatef(0.4, -1.0, 0);
glPotate(angle, 0 , 0 , 1);
glTranslatef(0.2, -0.5, 0);
drawLeg();
glPopMatrix();
3)
glPushMatrix();
glTranslatef(-0.5, 0.35, 0);
glPotate(-90, 0 , 0 , 1);
glTranslatef(-0.3, 0, 0);
glPopMatrix();
[ 讀圖檔 ]1) Google:opencv2.1 download
安裝, 小心, PATH, 第三個設定PATH
2) CodeBlock, 新專案
右上角 Console App貝殼專案
設定專案 Build Option設定
search directories.............1. Compiler include : C:\opencv2.1\include
2. Linker lib : C:\opencv2.1\lib
咒語Linker Setting 1.cv210
2.excore210
3.highgui210
2017年5月9日 星期二
week12 霈文的上課筆記
1. 3D TRT轉動
2. 矩陣,投影矩陣
3. 攝影機運鏡
4. 會動的機器人
5. (補) MP3播放
TODO : 播MP3最簡單 CMP3_MCI.h
#include "CMP3_MCI.h" //(1)檔案放同目錄
CMP3_MCI myMP3; //(2)宣告變數
//在main()裡
int main(...)
{ myMP3.Load("音樂.mp3");
myMP3.Play(); //(4)Play播放
//小心;要卡住
2. 矩陣,投影矩陣
3. 攝影機運鏡
4. 會動的機器人
5. (補) MP3播放
TODO : 播MP3最簡單 CMP3_MCI.h
#include "CMP3_MCI.h" //(1)檔案放同目錄
CMP3_MCI myMP3; //(2)宣告變數
//在main()裡
int main(...)
{ myMP3.Load("音樂.mp3");
myMP3.Play(); //(4)Play播放
//小心;要卡住
2017年4月25日 星期二
week10筆記
1) 先從maya匯出OBJ檔
jsyeh.org/3dcg1Q下載 source.zip,windows.zip,data.zip,glut32.dll
2) 將windows.zip解壓縮,用右鍵Notepadtt開啟 soccerball.obj,soccerball.mtl
3) myGLMsample.zip解壓縮
開啟04160011_hw1.cbp
4) Google:NeHe Lesson32
射擊遊戲lesson32.zip解
執行Lesson32.exe應用程式
5) 在Lesson32.cpp找sound
6) #include <mmsystem.h>
void mouse(int button, int state, int x, int y)
{
PlaySound("檔名.wav",NULL,SND_ASYNC);
}
在main()裡面 glutCreateWindow()之後glutMouseFunc(mouse);
訂閱:
文章 (Atom)



