2021年4月14日 星期三

NEKO's Computer Graphics_week08

 


      早安


    review: openCV 匯入&讀入圖檔

    1. Compiler>Search directories>compiler>add(:C/opencv2.1/include)

    2. Compiler>Search directories>linker>add(:C/opencv2.1/lib)

    3. Compiler>Linker setting>add(cv210,cxcore210,highgul210)

    

    匯入上週程式碼:

    


     這週首先要加上背景

    搞了好久,弄出來長這樣

    


    嗯,真的很醜

    

    好啦,先不管這個,下面要做打光

    先看打光體驗營:


    控制參數很複雜,自己研究一下


    然後我們參考glut範例程式剪貼

    然後修改參數得出結果:

    


    可以看到3D的效果更明顯了

    今天大概就這樣

    88

    



沒有留言:

張貼留言

距地表面160 Week11

 #include "glm.h" GLMmodel* pmodel = NULL; void drawmodel(void) {     if (!pmodel) { pmodel = glmReadOBJ("data/porsche.obj...