




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、精品文檔CategoryItemsMark allocat edGradeDemo (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 ha
2、ve.2(V) 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
3、(E) English - 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 imp
4、ortant cases, rules, or program behaviour? Did you make errors in your project that aren't listed in the shortcomings?2Sub-total:10Total:out of 20General Comments:1歡迎下載精品文檔Introduction and Motivation :我們的實(shí)驗(yàn)包括房子、柵欄、小狗住的房子、樹木、 機(jī)器人、太陽、草地等幾個(gè)簡(jiǎn)單的事物,保證了能夠從各個(gè)角 度觀看到,完成了對(duì)項(xiàng)目的基本要求。在實(shí)驗(yàn)創(chuàng)建中,我們首先按照要求構(gòu)思由整體的框架, 需
5、要做哪些事物,以及每個(gè)事物的大體位置,接著計(jì)算各個(gè)點(diǎn) 的坐標(biāo),之后分工進(jìn)行,每個(gè)人做一到兩個(gè)事物,最后將所有 事物整合在一起。還遇到的一個(gè)問題是,保證所有物體能夠合理的展現(xiàn) 由來,不由現(xiàn)掩蓋或不能顯示效果的現(xiàn)象,這首先是對(duì)物體的 創(chuàng)建和坐標(biāo)的把握,然后是對(duì)基本變換功能的掌握,對(duì)于這方 面的設(shè)計(jì),不僅需要嚴(yán)謹(jǐn)計(jì)算還要學(xué)習(xí)功能的設(shè)計(jì)。Design and Implementations :一開始大體的想法是設(shè)計(jì)一個(gè)帶有煙囪的尖頂房子, 后來在做房頂?shù)臅r(shí)候遇到了困難,房頂?shù)膬蓚?cè)無法顯示,后來 找到的改進(jìn)方法是將房頂做成一個(gè)長(zhǎng)方體,并將長(zhǎng)方體上的兩 個(gè)點(diǎn)合并,并縮短 X軸上的距離,加上深度測(cè)試,最終由
6、現(xiàn)了 想要的效果;之后用類似的方法做由了樹和小狗住的房子;太 陽一開始想用實(shí)驗(yàn)三的方法通過圓去做,后來效果不理想,我 們組在網(wǎng)上找到了glutSolidSphere();畫球的方法。由此也學(xué)會(huì)了glutSolidCube(); 畫立方體的方法,利用這種方法做生了柵欄,然后 兩者綜合做由了機(jī)器人Shortcomings :設(shè)計(jì)完實(shí)驗(yàn)作業(yè),我們存在著很多的不足,首先,構(gòu) 圖坐標(biāo)有些繁雜冗長(zhǎng),導(dǎo)致代碼的篇幅有些長(zhǎng)。第二,因?yàn)楣?底是在太差,沒有做由貼圖和光源,導(dǎo)致整體不是很漂亮。第2歡迎下載精品文檔三,實(shí)驗(yàn)思路有些混亂,經(jīng)常是想起來什么就做什么,導(dǎo)致效 率變低。Conclusions :總體來說,能
7、夠把項(xiàng)目做到這樣的效果,我們還是很 滿意的,但是還是對(duì)沒有將四面的背景分別設(shè)定表達(dá)感到遺 憾。如果要重新做一遍,我會(huì)選擇學(xué)習(xí)并使用紋理的表 現(xiàn),這個(gè)功能的優(yōu)點(diǎn)是能夠使事物表現(xiàn)更為逼真。這門課程讓我對(duì) CG 這門學(xué)科有了最基本的認(rèn)識(shí)和學(xué) 習(xí),希望以后有機(jī)會(huì)可以多加接觸。Appendix :#include<GL/glew.h>#include<GL/glut.h>#include<GL/gl.h>#include<iostream> using std:cout; | #define _USE_MATH_DEFINES#include <ma
8、th.h>double rotate_y = -15;/定義鍵盤才S制旋轉(zhuǎn) X軸,默認(rèn)-5度double rotate_x = -15; /定義鍵盤制旋轉(zhuǎn) 丫軸,默認(rèn)0度GLfloat w = 800;GLfloat h = 600;GLfloat anglePyramid = 0.0f;GLfloat angleCube = 0.0f;void display(void)(glClear(GL_COLOR_BUFFER_BIT | GL DEPTH BUFFER BIT);glMatrixMode(GL_MODELVIEW);glLoadIdentity();glTranslatef(
9、0.0f, -100.0f, 0.0f);/ (左,上,前)glScalef(100, 100, 100);/放大圖像(也可以更改點(diǎn)的數(shù)據(jù)來達(dá)到此效果)/Rotate 語句:(旋轉(zhuǎn)度數(shù),X, 丫,Z)/延X, Y, Z軸旋轉(zhuǎn)/太陽(不能動(dòng))廠glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-5.0, 5.0, 5.0);glutSolidSphere(1.5, 20, 20);glPopMatrix();3歡迎下載精品文檔glRotatef(rotate_x, 1.0, 0.0, 0.0);glRotatef(rotate_y, 0.0
10、, 1.0, 0.0);/*/太陽(可以動(dòng))|glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-5.0, 5.0, 5.0);glutSolidSphere(1.5, 20, 20);glPopMatrix();*/房子的兩部分公用一個(gè)坐標(biāo)系,屏幕遠(yuǎn)向近為Z軸,由下向上是丫軸,由左向右是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);glVertex
11、3f(-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.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);gl
12、Vertex3f(-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.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.5
13、f, 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); glVertex3f(2.05f, 3.5f, 0.0f); glVertex3f(3.5f, 1.5f, 2.5f); glVertex3f(3.5f, 1.5f, -2.5f); glEnd();/*煙囪*/4歡迎下載精品文檔/頂glBegin(GL_QUADS);glColor3f(0.502f, 0.0f, 0.0f
14、);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);glVertex3f(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
15、);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);glVertex3f(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
16、);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);glVertex3f(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_QUA
17、DS);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);/底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, -
18、1.5f);5歡迎下載精品文檔/門glCo or3f(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);/窗戶|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); glVe
19、rtex3f(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.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);
20、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,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
21、.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(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.
22、5f);glVertex3f(2.0f, -0.5f, -1.5f); glEnd();/*基座*/頂glBegin(GL_QUADS);6歡迎下載精品文檔glColor3f(0.502f, 0.502f, 0.502f);glVertex3f(5.0, -0.5, -3.5);glVertex3f(-5.0, -0.5, -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, -1.0, 3.5);glVertex3f(-5
23、.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(-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, -
24、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(-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
25、.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(-100.0, -1.0, -100.0);glVertex3f(-100.0, -1.0, 100.0);glVertex3f(100.0, -1.0, 100.0);glEnd();/*狗窩*/ 1glBegin(GL_TRIANGLE_FAN) glCol
26、or3f(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);7歡迎下載精品文檔glVertex3f(8.0f, 0.5f, -5.5f); glColor3f(0.502f, 0.0f, 0.502f); glVertex3f(8.0f, 0.5f, -4.5f);glColor3f(0.502f, 0.0f, 0.502f);glVertex3
27、f(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, 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);
28、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);glVertex3f(8.5f, 0.5f, -5.5f);glVertex3f(8.5f, -1.0f, -5.5f);glVertex3f(9.5f, -1.0f, -5.5f);/后glColor3f(0.0f, 0.
29、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.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.0
30、f, 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.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)
31、; glEnd();8歡迎下載精品文檔/* 樹*/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);glVertex3f(-7.5f, 2.5f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 2.5f, 3.5f);glColor3f(0.0f, 1
32、.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);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 4.0f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 4.0
33、f, 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();glBegin(GL_TRIANGLE_FAN);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-9.0f, 2.5f, 5.0f);glColor3f(0.0f, 1.0f, 0.
34、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, 1.0f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-10.5f, 1.0f, 6.5f);glEnd();9歡迎下載精品文檔/頂glBegin(GL_Q
35、UADS);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);glVertex3f(-9.25f, -1.0f, 5.25f);glVertex3f(-8.75f, -1.0f, 5.25f);glVertex3f(-8.75f, -1.0f, 4.75f);gl
36、Vertex3f(-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);/后glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(-9.25f, -1.0f, 4.75f);glVertex3f(-8.75f, -1.0f, 4.75f);glVer
37、tex3f(-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.75f, -1.0f, 5.25f);/右glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(-9.25f, 1.5f, 4.75f);glVertex3f(
38、-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.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(0, -0.3, 3.0);glScalef(100, 1
39、, 1);glutSolidCube(0.1);10載精品文檔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);glutSolidCube(0.1);glPopMatrix();/左邊柵欄glColor3f(
40、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);glutSolidCube(0.1);glPopMatrix();/后方豎柵欄 glColor3f(1.0, 0,0, 0.0); glPushMatrix();glTranslatef(0, -0.5, 3.0)
41、; 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); glPushMatrix();glTranslatef(-1.0, -0,5, 3.0); glScalef(1, 15, 1);11w載精品文檔glutSolidCube(0.1); g
42、lPopMatrix();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, 1);glutSolidCube(0.1); glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix(
43、);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, 0.0);glPushMatrix();glTranslatef(-3.5, -0.5, 3.0); glScalef(1, 15, 1);
44、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); glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();123W 載精品文檔glColor3f(
45、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.0, 0,0, 0.0);glPushMatrix();glTranslatef(1.5, -0,5
46、, 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); glScalef(1, 15, 1);glutSolidCube(0.1); glPopMa
47、trix();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();glColor3f(1.0, 0,0, 0.0);glPushMatrix();glTran
48、slatef(4.0, -0,5, 3.0);1&w載精品文檔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();/右側(cè)豎柵欄glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 0);glScalef(1, 15, 1
49、);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();glColor3f(1.0, 0.0,
50、 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, -0.5, 2.5); glScale
51、f(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); glPopMatrix();glColor
52、3f(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();glTranslatef(4.5, -0.5,
53、 -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);glPopMatri
54、x();/左側(cè)豎柵欄glColor3f(1.0, 0,0, 0.0);glPushMatrix();15載精品文檔glTranslatef(-4.5, -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(
55、);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();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, -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
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 鋁合金材料施工方案
- (三模)榆林市2025屆高三第三次模擬檢測(cè)生物試卷(含答案詳解)
- 數(shù)控加工工藝與編程技術(shù)基礎(chǔ) 教案 模塊一 任務(wù)4 數(shù)控加工機(jī)床夾具基礎(chǔ)
- 結(jié)合農(nóng)業(yè)植保技術(shù)的現(xiàn)代農(nóng)業(yè)病蟲害防治思路與具體辦法探討
- 醫(yī)療機(jī)構(gòu)水污染物排放的管理制度與組織架構(gòu)
- 石油化工靜電接地系統(tǒng)的組成與功能
- 綠色發(fā)展與可持續(xù)城鎮(zhèn)化策略
- 積極穩(wěn)妥推進(jìn)碳達(dá)峰碳中和的策略及實(shí)施路徑
- 采購鐵皮保溫施工方案
- 2018年數(shù)學(xué)(北師大版選修2-2)練習(xí)第3章22最大值最小值問題活頁作業(yè)14
- 西北四?。兾魃轿髑嗪幭模?025屆高三下學(xué)期第一次聯(lián)考生物試題含答案
- 第五章產(chǎn)前檢查及高危妊娠監(jiān)測(cè)90課件
- 專利共有合同范例
- 2025年上半年山西交控集團(tuán)所屬路橋集團(tuán)交投集團(tuán)招聘800人易考易錯(cuò)模擬試題(共500題)試卷后附參考答案
- 同等學(xué)力申碩-H001356法學(xué)學(xué)科綜合知識(shí)考點(diǎn)匯編
- 外周靜脈血管解剖知識(shí)
- 《基于舞弊風(fēng)險(xiǎn)因子的輝山乳業(yè)公司財(cái)務(wù)舞弊案例探析》15000字(論文)
- 《教育強(qiáng)國建設(shè)規(guī)劃綱要(2024-2035年)》解讀與培訓(xùn)
- 2024年03月中國工商銀行湖南分行2024年度春季校園招考筆試歷年參考題庫附帶答案詳解
- 2025年青島市技師學(xué)院招考聘用48人高頻重點(diǎn)提升(共500題)附帶答案詳解
評(píng)論
0/150
提交評(píng)論