1 / 11

計算攝影學:應用圖學與影像技術 ~Final Project Pong-ball

計算攝影學:應用圖學與影像技術 ~Final Project Pong-ball. 602415017 陳姸如 指導 教授:劉興民 教授. Outline. Introduction Method Operation Demonstration Conclusions References. Final Project ~ Pong-ball 602415017 陳姸如. Introduction. 遊戲的主軸,利用左右兩個方向來操控長方形的板子,去碰撞移動中的球,使之不能落地 使用環境 Microsoft Visual Studio 2010

Download Presentation

計算攝影學:應用圖學與影像技術 ~Final Project Pong-ball

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 計算攝影學:應用圖學與影像技術~Final ProjectPong-ball 602415017 陳姸如 指導教授:劉興民 教授

  2. Outline Introduction Method Operation Demonstration Conclusions References Final Project~Pong-ball602415017 陳姸如

  3. Introduction 遊戲的主軸,利用左右兩個方向來操控長方形的板子,去碰撞移動中的球,使之不能落地 使用環境 Microsoft Visual Studio 2010 OpenGL Final Project~Pong-ball 602415017 陳姸如

  4. Method 以漸層顏色來呈現兩塊長方形板子 使用glShadeModel() 設定三角形或多邊形內部顏色的著色方式,在此我是使用GL_SMOOTH這個參數 遊戲中的球,是以load .bmp 影像來呈現,如此一來,球的材質可換成喜歡的圖片 移動中的球,主要是以設定座標的範圍來判斷碰撞的時機以及移動速度的設定來達到移動的效果 Final Project~Pong-ball602415017 陳姸如

  5. Method 程式演算法 1.利用鍵盤控制板子移動 2.判斷球是否與板子進行碰撞,若為是,則使球往反方向彈出 3.判斷球是否超出邊界,若超出則遊戲失敗 4.此時遊戲便會重來 Final Project~Pong-ball602415017 陳姸如

  6. Operation 一執行程式時,球便會自動開始移動 遊戲中有兩個長方形板子,分上下兩個 上方的長方形板子是自行移動的 主要是利用左右兩個方向來控制下方的長方形板子,來碰撞球 若是板子沒有碰撞到球,便會重新開始 Final Project~Pong-ball602415017 陳姸如

  7. Operation 自行左右移動 手動控制移動方向 Final Project~Pong-ball602415017 陳姸如

  8. Demo Final Project~Pong-ball602415017 陳姸如

  9. Review 以前從未接觸過OpenGL,藉由上這堂課讓我學習到相關知識 藉由Final Project,讓我把上課所學習到的相關知識可以加以應用,例如:怎麼利用OpenGL畫圖等,因而做出一個小遊戲,備感受益良多 雖然這小遊戲並非很精緻,但都是以基礎知識為核心而呈現 Final Project~Pong-ball602415017 陳姸如

  10. References 老師用心做的上課講義 http://reocities.com/SiliconValley/vista/8177/tutorial/nehe.htm http://vision.csie.ncku.edu.tw/~ichenyeh/public/nehe/ http://blog.mlidar.com/2013/03/opengl.html Final Project~Pong-ball602415017 陳姸如

  11. Thank you~

More Related