![OpenGl構建基本的房子_第1頁](http://file1.renrendoc.com/fileroot_temp2/2020-9/28/16bc78e9-08cf-465f-9ed1-e655eae56bfa/16bc78e9-08cf-465f-9ed1-e655eae56bfa1.gif)
![OpenGl構建基本的房子_第2頁](http://file1.renrendoc.com/fileroot_temp2/2020-9/28/16bc78e9-08cf-465f-9ed1-e655eae56bfa/16bc78e9-08cf-465f-9ed1-e655eae56bfa2.gif)
![OpenGl構建基本的房子_第3頁](http://file1.renrendoc.com/fileroot_temp2/2020-9/28/16bc78e9-08cf-465f-9ed1-e655eae56bfa/16bc78e9-08cf-465f-9ed1-e655eae56bfa3.gif)
![OpenGl構建基本的房子_第4頁](http://file1.renrendoc.com/fileroot_temp2/2020-9/28/16bc78e9-08cf-465f-9ed1-e655eae56bfa/16bc78e9-08cf-465f-9ed1-e655eae56bfa4.gif)
![OpenGl構建基本的房子_第5頁](http://file1.renrendoc.com/fileroot_temp2/2020-9/28/16bc78e9-08cf-465f-9ed1-e655eae56bfa/16bc78e9-08cf-465f-9ed1-e655eae56bfa5.gif)
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、CategoryItemsMark allocatedGradeDemo(10 marks)(H) house - A house should be created and displayed.2(T) tree- At least one tree should be created and displayed2(S) Sun the sun is a must object.2(E) extra environment object(s) - you can create any other extra object on the piece of land you have. 2(V)
2、 viewpoints - your program should enable viewer to view your home with different angles. 2Sub-total: 10Final Report(20 marks)(C) clarity - Does your report explain everything that you did?2(D) design - Did you design your implementation well? Did you use any CG technique(s) where appropriate? 2(E) E
3、nglish - Are there any spelling or grammatical errors? Is your writing clear and succinct?2(N) neatness - Are the text, code and figures laid out well? Is your writing/printing legible?2(T) thoroughness - Is the report complete? Did you leave important things out? Did you forget to describe importan
4、t cases, rules, or program behaviour? Did you make errors in your project that arent listed in the shortcomings?2Sub-total: 10Total: out of 20 General Comments: Introduction and Motivation: 我們的實驗包括房子、柵欄、小狗住的房子、樹木、機器人、太陽、草地等幾個簡單的事物,保證了能夠從各個角度觀看到,完成了對項目的基本要求。 在實驗創(chuàng)建中,我們首先按照要求構思出整體的框架,需要做哪些事物,以及每個事物的大體位
5、置,接著計算各個點的坐標,之后分工進行,每個人做一到兩個事物,最后將所有事物整合在一起。 還遇到的一個問題是,保證所有物體能夠合理的展現(xiàn)出來,不出現(xiàn)掩蓋或不能顯示效果的現(xiàn)象,這首先是對物體的創(chuàng)建和坐標的把握,然后是對基本變換功能的掌握,對于這方面的設計,不僅需要嚴謹計算還要學習功能的設計。Design and Implementations: 一開始大體的想法是設計一個帶有煙囪的尖頂房子,后來在做房頂?shù)臅r候遇到了困難,房頂?shù)膬蓚葻o法顯示,后來找到的改進方法是將房頂做成一個長方體,并將長方體上的兩個點合并,并縮短X軸上的距離,加上深度測試,最終出現(xiàn)了想要的效果;之后用類似的方法做出了樹和小狗住的
6、房子;太陽一開始想用實驗三的方法通過圓去做,后來效果不理想,我們組在網(wǎng)上找到了glutSolidSphere();畫球的方法。由此也學會了glutSolidCube();畫立方體的方法,利用這種方法做出了柵欄,然后兩者綜合做出了機器人Shortcomings: 設計完實驗作業(yè),我們存在著很多的不足,首先,構圖坐標有些繁雜冗長,導致代碼的篇幅有些長。第二,因為功底是在太差,沒有做出貼圖和光源,導致整體不是很漂亮。第三,實驗思路有些混亂,經(jīng)常是想起來什么就做什么,導致效率變低。 Conclusions: 總體來說,能夠把項目做到這樣的效果,我們還是很滿意的,但是還是對沒有將四面的背景分別設定表達感
7、到遺憾。 如果要重新做一遍,我會選擇學習并使用紋理的表現(xiàn),這個功能的優(yōu)點是能夠使事物表現(xiàn)更為逼真。 這門課程讓我對CG這門學科有了最基本的認識和學習,希望以后有機會可以多加接觸。Appendix: #include#include#include#include using std:cout;#define _USE_MATH_DEFINES #include double rotate_y = -15; /定義鍵盤控制旋轉X軸,默認-5度double rotate_x = -15; /定義鍵盤控制旋轉Y軸,默認0度GLfloat w = 800;GLfloat h = 600;GLfloat
8、 anglePyramid = 0.0f;GLfloat angleCube = 0.0f;void display(void)glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);glMatrixMode(GL_MODELVIEW);glLoadIdentity();glTranslatef(0.0f, -100.0f, 0.0f);/ (左,上,前)glScalef(100, 100, 100); / 放大圖像(也可以更改點的數(shù)據(jù)來達到此效果)/Rotate語句:(旋轉度數(shù),X,Y,Z)/ 延X,Y,Z軸旋轉/太陽(不能動)glColor3f
9、(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-5.0, 5.0, 5.0);glutSolidSphere(1.5, 20, 20);glPopMatrix();glRotatef(rotate_x, 1.0, 0.0, 0.0);glRotatef(rotate_y, 0.0, 1.0, 0.0);/*/太陽(可以動)glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-5.0, 5.0, 5.0);glutSolidSphere(1.5, 20, 20);glPopMatrix();*/房子的
10、兩部分公用一個坐標系,屏幕遠向近為Z軸,由下向上是Y軸,由左向右是X軸/*房頂*/頂glBegin(GL_QUADS);glColor3f(0.0f, 0.0f, 0.502f);glVertex3f(2.05f, 3.5f, 0.0f);glVertex3f(-2.05f, 3.5f, 0.0f);glVertex3f(-2.05f, 3.5f, 0.0f);glVertex3f(2.05f, 3.5f, 0.0f);/ 底glColor3f(0.0f, 0.0f, 0.502f);glVertex3f(3.5f, 1.5f, 2.5f);glVertex3f(-3.5f, 1.5f, 2.
11、5f);glVertex3f(-3.5f, 1.5f, -2.5f);glVertex3f(3.5f, 1.5f, -2.5f);/ 前glColor3f(0.0f, 0.0f, 0.502f);glVertex3f(2.05f, 3.5f, 0.0f);glVertex3f(-2.05f, 3.5f, 0.0f);glVertex3f(-3.5f, 1.5f, 2.5f);glVertex3f(3.5f, 1.5f, 2.5f);/ 后glColor3f(0.0f, 0.0f, 0.502f);glVertex3f(3.5f, 1.5f, -2.5f);glVertex3f(-3.5f, 1
12、.5f, -2.5f);glVertex3f(-2.05f, 3.5f, 0.0f);glVertex3f(2.05f, 3.5f, 0.0f);/ 左glColor3f(0.0f, 0.0f, 0.502f);glVertex3f(-2.05f, 3.5f, 0.0f);glVertex3f(-2.05f, 3.5f, 0.0f);glVertex3f(-3.5f, 1.5f, -2.5f);glVertex3f(-3.5f, 1.5f, 2.5f);/ 右glColor3f(0.0f, 0.0f, 0.502f);glVertex3f(2.05f, 3.5f, 0.0f);glVertex
13、3f(2.05f, 3.5f, 0.0f);glVertex3f(3.5f, 1.5f, 2.5f);glVertex3f(3.5f, 1.5f, -2.5f);glEnd();/*煙囪*/頂glBegin(GL_QUADS);glColor3f(0.502f, 0.0f, 0.0f);glVertex3f(3.0f, 4.0f, -1.0f);glVertex3f(2.0f, 4.0f, -1.0f);glVertex3f(2.0f, 4.0f, 1.0f);glVertex3f(3.0f, 4.0f, 1.0f);/ 底glColor3f(0.502f, 0.0f, 0.0f);glVer
14、tex3f(3.0f, 2.0f, 1.0f);glVertex3f(2.0f, 2.0f, 1.0f);glVertex3f(2.0f, 2.0f, -1.0f);glVertex3f(3.0f, 2.0f, -1.0f);/ 前glColor3f(0.502f, 0.0f, 0.0f);glVertex3f(3.0f, 4.0f, 1.0f);glVertex3f(2.0f, 4.0f, 1.0f);glVertex3f(2.0f, 2.0f, 1.0f);glVertex3f(3.0f, 2.0f, 1.0f);/ 后glColor3f(0.502f, 0.0f, 0.0f);glVer
15、tex3f(3.0f, 2.0f, -1.0f);glVertex3f(2.0f, 2.0f, -1.0f);glVertex3f(2.0f, 4.0f, -1.0f);glVertex3f(3.0f, 4.0f, -1.0f);/ 左glColor3f(0.502f, 0.0f, 0.0f);glVertex3f(2.0f, 4.0f, 1.0f);glVertex3f(2.0f, 4.0f, -1.0f);glVertex3f(2.0f, 2.0f, -1.0f);glVertex3f(2.0f, 2.0f, 1.0f);/ 右glColor3f(0.502f, 0.0f, 0.0f);g
16、lVertex3f(3.0f, 4.0f, -1.0f);glVertex3f(3.0f, 4.0f, 1.0f);glVertex3f(3.0f, 2.0f, 1.0f);glVertex3f(3.0f, 2.0f, -1.0f);glEnd();/*屋子*/頂glBegin(GL_QUADS);glColor3f(1.0f, 0.0f, 0.0f);glVertex3f(2.0f, 1.5f, -1.5f);glVertex3f(-2.0f, 1.5f, -1.5f);glVertex3f(-2.0f, 1.5f, 1.5f);glVertex3f(2.0f, 1.5f, 1.5f);/
17、底glColor3f(1.0f, 0.0f, 0.0f);glVertex3f(2.0f, -0.5f, 1.5f);glVertex3f(-2.0f, -0.5f, 1.5f);glVertex3f(-2.0f, -0.5f, -1.5f);glVertex3f(2.0f, -0.5f, -1.5f);/門glColor3f(0.0f, 0.0f, 1.0f);glVertex3f(0.5, 1.0, -1.51);glVertex3f(-0.5, 1.0, -1.51);glVertex3f(-0.5, -0.5, -1.51);glVertex3f(0.5, -0.5, -1.51);/
18、窗戶glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(1.25, 1.25, -1.51);glVertex3f(0.75, 1.25, -1.51);glVertex3f(0.75, 0.75, -1.51);glVertex3f(1.25, 0.75, -1.51);/ 前glColor3f(1.0f, 0.0f, 0.0f);glVertex3f(2.0f, 1.5f, 1.5f);glVertex3f(-2.0f, 1.5f, 1.5f);glVertex3f(-2.0f, -0.5f, 1.5f);glVertex3f(2.0f, -0.5f, 1
19、.5f);/ 后glColor3f(1.0f, 0.0f, 0.0f);glVertex3f(2.0f, -0.5f, -1.5f);glVertex3f(-2.0f, -0.5f, -1.5f);glVertex3f(-2.0f, 1.5f, -1.5f);glVertex3f(2.0f, 1.5f, -1.5f);/窗戶glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(-2.01, 1.05, 0.4);glVertex3f(-2.01, 1.05, -0.4);glVertex3f(-2.01, 0.25, -0.4);glVertex3f(-2.01
20、, 0.25, 0.4);/ 左glColor3f(1.0f, 0.0f, 0.0f);glVertex3f(-2.0f, 1.5f, 1.5f);glVertex3f(-2.0f, 1.5f, -1.5f);glVertex3f(-2.0f, -0.5f, -1.5f);glVertex3f(-2.0f, -0.5f, 1.5f);/窗戶glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(2.01, 1.05, 0.4);glVertex3f(2.01, 1.05, -0.4);glVertex3f(2.01, 0.25, -0.4);glVertex3f(
21、2.01, 0.25, 0.4);/ 右glColor3f(1.0f, 0.0f, 0.0f);glVertex3f(2.0f, 1.5f, -1.5f);glVertex3f(2.0f, 1.5f, 1.5f);glVertex3f(2.0f, -0.5f, 1.5f);glVertex3f(2.0f, -0.5f, -1.5f);glEnd();/*基座*/頂glBegin(GL_QUADS);glColor3f(0.502f, 0.502f, 0.502f);glVertex3f(5.0, -0.5, -3.5);glVertex3f(-5.0, -0.5, -3.5);glVertex
22、3f(-5.0, -0.5, 3.5);glVertex3f(5.0, -0.5, 3.5);/ 底glColor3f(0.502f, 0.502f, 0.502f);glVertex3f(5.0, -1.0, 3.5);glVertex3f(-5.0, -1.0, 3.5);glVertex3f(-5.0, -1.0, -3.5);glVertex3f(5.0, -1.0, -3.5);/ 前glColor3f(0.502f, 0.502f, 0.502f);glVertex3f(5.0, -0.5, 3.5);glVertex3f(-5.0, -0.5, 3.5);glVertex3f(-
23、5.0, -1.0, 3.5);glVertex3f(5.0, -1.0, 3.5);/ 后glColor3f(0.502f, 0.502f, 0.502f);glVertex3f(5.0, -1.0, -3.5);glVertex3f(-5.0, -1.0, -3.5);glVertex3f(-5.0, -0.5, -3.5);glVertex3f(5.0, -0.5, -3.5);/ 左glColor3f(0.502f, 0.502f, 0.502f);glVertex3f(-5.0, -0.5, 3.5);glVertex3f(-5.0, -0.5, -3.5);glVertex3f(-
24、5.0, -1.0, -3.5);glVertex3f(-5.0, -1.0, 3.5);/ 右glColor3f(0.502f, 0.502f, 0.502f);glVertex3f(5.0, -0.5, -3.5);glVertex3f(5.0, -0.5, 3.5);glVertex3f(5.0, -1.0, 3.5);glVertex3f(5.0, -1.0, -3.5);glEnd();/*地板*/glBegin(GL_QUADS);glColor3f(0.0f, 0.502f, 0.0f);glVertex3f(100.0, -1.0, -100.0);glVertex3f(-10
25、0.0, -1.0, -100.0);glVertex3f(-100.0, -1.0, 100.0);glVertex3f(100.0, -1.0, 100.0);glEnd();/*狗窩*/glBegin(GL_TRIANGLE_FAN);glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(9.0f, 1.5f, -5.0f);glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(10.0f, 0.5f, -5.5f);glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(8.0f, 0.5f,
26、 -5.5f);glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(8.0f, 0.5f, -4.5f);glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(10.0f, 0.5f, -4.5f);glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(10.0f, 0.5f, -5.5f);glEnd();glBegin(GL_QUADS);glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(9.5f, 0.5f, -4.5f);glVertex3f(8.5f,
27、 0.5f, -4.5f);glVertex3f(8.5f, 0.5f, -5.5f);glVertex3f(9.5f, 0.5f, -5.5f);/ 底glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(9.5f, -1.0f, -5.5f);glVertex3f(8.5f, -1.0f, -5.5f);glVertex3f(8.5f, -1.0f, -4.5f);glVertex3f(9.5f, -1.0f, -4.5f);/ 前glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(9.5f, 0.5f, -5.5f);gl
28、Vertex3f(8.5f, 0.5f, -5.5f);glVertex3f(8.5f, -1.0f, -5.5f);glVertex3f(9.5f, -1.0f, -5.5f);/ 后glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(9.5f, -1.0f, -4.5f);glVertex3f(8.5f, -1.0f, -4.5f);glVertex3f(8.5f, 0.5f, -4.5f);glVertex3f(9.5f, 0.5f, -4.5f);/小門glColor3f(0.502f, 0.0f, 0.502f);glVertex3f(8.49, 0
29、.0, -5.0);glVertex3f(8.49, 0.0, -5.5);glVertex3f(8.49, -1.0, -5.5);glVertex3f(8.49, -1.0, -5.0);/ 左glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(8.5f, 0.5f, -5.5f);glVertex3f(8.5f, 0.5f, -5.0f);glVertex3f(8.5f, -1.0f, -5.0f);glVertex3f(8.5f, -1.0f, -5.5f);/ 右glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(9
30、.50f, 0.5f, -5.0f);glVertex3f(9.50f, 0.5f, -5.5f);glVertex3f(9.50f, -1.0f, -5.5f);glVertex3f(9.50f, -1.0f, -5.0f);glEnd();/*樹*/glBegin(GL_TRIANGLE_FAN);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-9.0f, 4.0f, 5.0f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 2.5f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glV
31、ertex3f(-7.5f, 2.5f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 2.5f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 2.5f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 2.5f, 6.5f);glEnd();glBegin(GL_TRIANGLE_FAN);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-9.0f, 5.5f, 5.0f);glColo
32、r3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 4.0f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 4.0f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 4.0f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 4.0f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 4.0f, 6.5f);glEnd();glBeg
33、in(GL_TRIANGLE_FAN);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-9.0f, 2.5f, 5.0f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 1.0f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 1.0f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 1.0f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f,
34、1.0f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 1.0f, 6.5f);glEnd();/頂glBegin(GL_QUADS);glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(-9.25f, 1.5f, 4.75f);glVertex3f(-8.75f, 1.5f, 4.75f);glVertex3f(-8.0f, 1.5f, 5.25f);glVertex3f(-9.25f, 1.5f, 5.25f);/ 底glColor3f(0.0f, 0.502f, 0.502f);glVerte
35、x3f(-9.25f, -1.0f, 5.25f);glVertex3f(-8.75f, -1.0f, 5.25f);glVertex3f(-8.75f, -1.0f, 4.75f);glVertex3f(-9.25f, -1.0f, 4.75f);/ 前glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(-9.25f, 1.5f, 5.25f);glVertex3f(-8.75f, 1.5f, 5.25f);glVertex3f(-8.75f, -1.0f, 5.25f);glVertex3f(-9.25f, -1.0f, 5.25f);/ 后glColor
36、3f(0.0f, 0.502f, 0.502f);glVertex3f(-9.25f, -1.0f, 4.75f);glVertex3f(-8.75f, -1.0f, 4.75f);glVertex3f(-8.75f, 1.5f, 4.75f);glVertex3f(-9.25f, 1.5f, 4.75f);/ 左glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(-8.75f, 1.5f, 5.25f);glVertex3f(-8.75f, 1.5f, 4.75f);glVertex3f(-8.75f, -1.0f, 4.75f);glVertex3f(-8
37、.75f, -1.0f, 5.25f);/ 右glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(-9.25f, 1.5f, 4.75f);glVertex3f(-9.25f, 1.5f, 5.25f);glVertex3f(-9.25f, -1.0f, 5.25f);glVertex3f(-9.25f, -1.0f, 4.75f);glEnd();/后方柵欄glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(0, 0.1, 3.0);glScalef(100, 1, 1);glutSolidCube(0.
38、1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(0, -0.3, 3.0);glScalef(100, 1, 1);glutSolidCube(0.1);glPopMatrix();/右面柵欄glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, 0.1, 0);glScalef(1, 1, 60);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();
39、glTranslatef(4.5, -0.3, 0);glScalef(1, 1, 60);glutSolidCube(0.1);glPopMatrix();/左邊柵欄glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-4.5, 0.1, 0);glScalef(1, 1, 60);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-4.5, -0.3, 0);glScalef(1, 1, 60);glutSolidC
40、ube(0.1);glPopMatrix();/后方豎柵欄glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-0.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPus
41、hMatrix();glTranslatef(-1.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-1.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-2.0, -0.5, 3.0);glScalef(1, 15,
42、1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-2.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-3.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0,
43、0.0);glPushMatrix();glTranslatef(-3.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-4.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-4.5, -0.5, 3.0);glScal
44、ef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(0.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(1.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.
45、0, 0.0, 0.0);glPushMatrix();glTranslatef(1.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(2.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(2.5, -0.5, 3.0);g
46、lScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(3.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(3.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor
47、3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();/右側豎柵欄glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -
48、0.5, 0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 0.5);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 1.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix(
49、);glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 1.5);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 2.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5
50、, -0.5, 2.5);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, -0.5);glScalef(1, 15, 1);glutSolidCube(0.1);glPopM
51、atrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, -1.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, -1.5);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTransl
52、atef(4.5, -0.5, -2.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, -2.5);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, -3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();/左側豎柵欄glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-4.5, -0.5, 0);glScalef(1, 15, 1);glutSol
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 施工方案對工程建設的經(jīng)濟效益分析
- 跨學科視角下的情感教育實踐研究
- 音色感知在小學音樂欣賞中的重要性及其教學方法
- 藝術設計與宗教文化的互動商業(yè)空間的創(chuàng)新之路
- DB3715T 71-2025楊樹退化林修復技術規(guī)程
- 二手設備轉讓合同模板
- 2025年雜志宣傳合作協(xié)議(合同)
- 個人房屋買賣合同模板大全
- 二手房銷售合同模板大全
- 個人信用借款擔保合同范本
- 河北省邯鄲市永年區(qū)2024-2025學年九年級上學期期末考試化學試卷(含答案)
- 2025年閥門和龍頭項目發(fā)展計劃
- 消防員證考試題庫2000題中級
- 農(nóng)產(chǎn)品質(zhì)量安全檢測技術
- 【蟬媽媽】2024年抖音電商酒水行業(yè)趨勢洞察報告
- 海洋垃圾處理行業(yè)可行性分析報告
- 公共部門績效管理案例分析
- 無人機培訓計劃表
- 2025初級會計理論考試100題及解析
- 2024屆高考英語詞匯3500左右
- 2024年-2025年海船船員考試-船舶人員管理考試題及答案
評論
0/150
提交評論