2017年12月21日 星期四

[耍廢]WEEK13

主題1:VR 體驗
GoPro 運動攝影機
OMNI 六台GoPro
Ricoh theta 





主題2:色彩系統、multi-Texture ( TextureID )、畫面等速 ( Timer )

 void timer(int t)
    {
        /******code******/ //執行你要定速的程式碼
        glutTimerFunc(100, timer, t+1); //過了100ms後,再呼叫一次Timer副程式
        glutPostRedisplay();
    }

int main(){
      /******code******/
      glutTimerFunc(500, timer, 0); //過了500ms後,呼叫Timer副程式
      /******code******/
    }
如此一來,timer裡的code會隨著設定的時間執行,適合背景物品。
   

沒有留言:

張貼留言