沒有第9周 因為是期中
Step1
搜尋網址: @jsyeh.org/3dcg10/
利用此網站下載 data(模型),win32(主角),glut32.dll檔
將data解壓並加進window的解壓
glut32複製進window
測試
_
Step2
開啟GLUT
鍵入Code
/* Program entry point */
#include <opencv/highgui.h>///呼叫Opencv
int main(int argc, char *argv[])
{
IplImage * img = cvLoadImage("try.jpg");
///cvNamedWindow("HE10");
cvShowImage("HE10",img);
cvWaitKey(0);
glutInit(&argc, argv);
glutInitWindowSize(640,480);
glutInitWindowPosition(10,10);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutCreateWindow("GLUT Shapes");
要加入compiler
測試
圖的位置
C:\Users\user\Desktop\freeglut\bin
Step3
貼圖地球

沒有留言:
張貼留言