2022年2月22日 星期二

電腦圖學上課筆記 _week01

  •  電腦圖學期中
  1. 點線面 30%
  2. 顏色 10%
  3. 移動 旋轉 縮放 30%
  4. 矩陣(push/pop) 10%
  5. 打光 貼圖 20%
==================================================================

week01
  • GL專案
codeblocks 17.12 >> file >> new >> project >> 選openGL >> 存桌面 >> next >> finish >> 跑程式

  • GLUT專案
moodle下載freeglut.zip >> 解壓縮至桌面 >> freeglut資料夾 >> lib >> 將libfreeglut.a複製貼上 >> 重新命名libglut32.a (此步驟才能讓codeblocks跑) 

codeblocks 17.12 >> file >> new >> project >>選GLUT >> 存桌面 >> next >> 設定GULT目錄(如圖) >> 跑程式

  • 安裝git for windows
開啟git bash >> cd desktop >> git clone http://自己的網址 >> cd 2022graphics

Week01-4 建 GitHub 倉庫
1. 登入 GitHub
2. 建 2022graphics 的 repo倉庫
2.1. 要設定 Public
2.2. 要 README.md
2.3. Add .gitignore 設定 C++

3. 利用 Git指令下載
3.0. 安裝 Git for Windows
3.1. 開啟 Git Bash
3.2. cd desktop 進入桌面
3.2. git clone https://你的倉庫網址
3.3. 查看 桌面,多了 2022graphics 目錄

3.4. 把今天的程式 複製到 剛剛目錄

4. 把修改的資料, 推送到雲端
4.1. cd 2022graphics 進入你的倉庫
4.2. git status 看你的狀況(紅的,多了目錄)
4.3. git add . 把檔案加進帳冊
4.4. git status 再看一次(綠的)

這裡要加入
git config --global user.email "你的email"
git config --global user.name "你的名"
git commit -m "上傳第1週"

4.5. git push 推送到雲端, BUT要登入
4.6. 在 Chrome記得再登入哦






沒有留言:

張貼留言

VERY BEAUTIFUL, VERY POWERFUL

一.     一樣先安裝且設定好freeglut,OpecCV, 開啟CodeBlocks建立新專案 week11_gundam,                 把 MyGundam.zip下載解壓縮後的data資料夾放到freeglut/bin裡面 把week09_openc...