##week09-0_sample
##複習上周的week08-3_glm_gundam_opencv_texture_lighting
1.點桌面上的葉正聖老師上課用軟體 OpenCV-2.1.0
2.ADD PATH
3.目錄不要改
4.重開CodeBlocks
setting-compiler要加入opencv相關的設定
-compiler 的include要加入C:\OpenCV2.1\include
-linker的lib要加入C:\OpenCV2.1\lib
-linker設定,要加入cv210 cxcore210 highgui210
把上週的github倉庫複製下來
1.安裝git開啟git bash小黑
2.cd desktop
3.git clone https://github.com/ericsu920904/2024graphicsa
4.cd 2024graphicsa
5.start .
開啟上週的week08-3_glm_gundam_opencv_texture_lighting
打開就能用了
##直接當成week08-3_glm_gundam_opencv_texture_lighting
把檔名、目錄、title換成week09-1_glm_gundam_opencv_texture_lighting
##week09-2_glutSloidTeapot_glutSolidcibe_glutSloibSphere
複製貼上GLUT11行程式碼
#include <GL/glut.h>
void display()
{
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glutSolidTeapot(0.3);
glutSwapBuffers();
}
int main(int argc, char*argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_DEPTH);
glutCreateWindow("week056 lighting");
glutDisplayFunc(display);
///等等要放12+2行的程式
glutMainLoop();
}
加上這些程式碼
##week09-3_glutwireTeapot_glutwirecibe_glutwireSphere
變空心




沒有留言:
張貼留言