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);

沒有留言:

張貼留言