2022年2月21日 星期一

Amber's note week01

 <建立OpenGL專案>

    1.在codeblocks建立新專案file >new >project > OpenGL專案

    2.將檔案資料夾設定存於桌面

    




    3.完成後按build and run






 <水會動>

    網址:http://madebyevan.com/webgl-water/ 




<建立GLUT>

    1.在moodle下載freeglut壓縮檔 > 解壓縮到桌面 

    2.在freeglut裡找到lib的資料夾 > 將libfreegiut.a的檔案先複製再將複製的檔案改名為libgiut32.a





    3.在codeblocks建立新專案file >new >project > GLUT專案

    4.設定檔案名稱時不能有空格




    5.專案位置需存在桌面的freeglut裡



    6.完後按Build and run




<Github倉庫建立>

    1.要設public、readme.me
    2.gitignore要打勾 > 選c++

<Github指令>
    
    1. cd desktop               //進到桌面
    2. git clone 網址         //進到倉庫
    3. cd 2022graphics     //將資料夾複製到桌面
    4. git status                 //查看狀態
    5. git add .                  //將檔案加到帳冊裡
    6. git config --goble user.email"email帳號"
    7. git config --goble user.name"名稱"
    8. git push                  //推上雲端,要再登入一次

Fei的筆記

 課前預備

step 1.到Moodle 上課用軟體下載 Git.....

step 2.登入Github (Fei0128) 

step 3.點到倉庫畫面



step 4. 打開Git Bash



step 5. 輸入cd desktop(目標到桌面)

step 6. 輸入 git clone + 倉庫網址(圖3的網址)/(https://github.com/Fei0128/2022graphics)



課後結束



Week01

1.OpenGL 專案(三角形)

步驟codeblock-File-New-Project-OpenGL

執行結果



2.http://madebyevan.com/webgl-water /水會動



3.GLUT專案

步驟 1.下載老師moodle GLUT的檔案 

步驟 2.解壓縮至桌面 然後點開檔案 

步驟 3.點進去lib 更改為libglut32.a

步驟4 .codeblock-File-New-Project-GLUT-選擇下載好的檔案

week01👻

開始上課囉!!!加油~~

1.我們先開啟codeblocks然後建立一個新專案 













2.選open GL然後其他不要動,保持它原本的設 

3.要叫什麼名稱? Ans:week01 放在哪裡?C:\Users\...\Desktop(桌面)

4..按F9=build &run

09163033 week01-03

 GLUT




電腦圖學week01學習筆記

Step01:Open openGL


Step02:Ball in water

Step03-1:Download freeglut in MOODLE

  1. go to moodle        
  2. download freeglut
  3. 7-zip freeglut
  4. change file name(freeglut/lib/libfreeglut.a)
  5. libfreeglut.a  change name to libglut32.a

    Step03-2:Create a glut project

        


    Step03-3:Select GLUT's location


    Step03-4:Finish👍





09163033 week01-1

 OpenGL專案(三角形)







陳瑋哲的筆記 Week01

 1 OpenGL:

 1.1 CodeBlocks File-New-Project選OpenGL專案存在桌面






2 .WebGL Water

3.GLUT 專案:
3-1.moodle下載freeglut
3-2.解壓縮到桌面
3-3.改檔名libglut32.a
3-4打開codeblocks file-new-project-GLUT project-存桌面,按next ,選擇freeglut 


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記得再登入哦






 

TC*(˙Ⱉ˙ฅ​)學習日誌-week01

 week01-1(OpenGL)

1.開啟codeblocks,File-new-建立project(專案)


2.選擇OPENGL project,會出現對話小精靈



3.標題要寫周次_OPENGL,檔案位置設於桌面


4.建立好後,直接執行(Build & Run)會有以下畫面(彩色三角形)


week01-2(WebGL)


水會動




week01-3(GLUT專案)


1.moodle下載freeglut


2.解壓縮到桌面freeglut


3.打開解壓縮後的freeglut,點擊lib資料夾,複製libfreeglut.a,然後將檔名改成libglut32.a


4.打開codeblocks,File-new-建立project(專案)


5.選擇GLUT project,會出現對話小精靈



6.標題要寫周次_GLUT,檔案位置設於桌面


7.選擇在桌面的freeglut資料夾


8.建立好後,直接執行(Build & Run)會有以下畫面(按+形狀的邊角數會增加,按-形狀的邊角數會減少)


(按 + 之後形狀邊緣逐漸完整,密度越高)


(按 - 之後圖形邊緣菱角越多,密度越低)

week01-4(將OPENGL和GLUT專案存到github雲端)


1.建立github倉庫,登入後點擊頭像,選擇you repositories-new,建立名稱為2022graphics的倉庫,設定成public(公開),Initialize this repository with:下方勾選Add a README file以及 Add .gitignore 設定 C++(會幫忙排除不必要的檔案格式)


2.安裝git for windows,一直無腦點選next直到install,等安裝中的綠條跑完會跳出一個視窗,Launch Git Bash和View Release Notes,預設會幫忙勾選View Release Note,但這邊我們需要使用Launch Git Bash,所以只勾Launch Git Bash就好






3.開啟 Git Bash,輸入cd desktop 進入桌面


4.輸入git clone https://你的倉庫網址(ex:https://github.com/LNZRK-HTC/2022graphics),這步驟做完之後可以在桌面找到2022graphics(你要使用的倉庫名稱)的資料夾



5.把今天的程式複製到目錄裡面去(就是OPENGL和GLUT那兩個專案)


6.把修改的資料推送到雲端,輸入cd 2022graphics 進入你的倉庫,接著輸入git status 看你的狀況(丟進去的檔案都是紅色的,多了目錄)


7.接著輸入git add . 把檔案加進帳冊,然後再輸入git status 再看一次你的狀態(會發現檔案都變成綠色的)


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


9.輸入 git push 推送到雲端(要登入,等畫面跳到Chrome再登入哦)


10.等待上傳後,最後去github檢查(沒有的話就重新整理畫面),檔案檢查如果都沒問題就ok啦!


精簡一下步驟就是

建 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記得再登入哦