




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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:。Introduction and Motivation我们的实验包括房子、栅栏、小狗住的房子、树木、 机器人、太阳、草地等几个简单的事物,保证了能够从各个角 度观看到,完成了对项目的基本要求。在实验创建中,我们首先按照要求构思由整体的框架, 需要做哪些事物,以及每
5、个事物的大体位置,接着计算各个点 的坐标,之后分工进行,每个人做一到两个事物,最后将所有 事物整合在一起。还遇到的一个问题是,保证所有物体能够合理的展现 由来,不由现掩盖或不能显示效果的现象,这首先是对物体的 创建和坐标的把握,然后是对基本变换功能的掌握,对于这方 面的设计,不仅需要严谨计算还要学习功能的设计。Design and Implementations一开始大体的想法是设计一个带有烟囱的尖顶房子, 后来在做房顶的时候遇到了困难,房顶的两侧无法显示,后来 找到的改进方法是将房顶做成一个长方体,并将长方体上的两 个点合并,并缩短 X轴上的距离,加上深度测试,最终由现了 想要的效果;之后用
6、类似的方法做由了树和小狗住的房子;太 阳一开始想用实验三的方法通过圆去做,后来效果不理想,我 们组在网上找到了glutSolidSphere();画球的方法。由此也学会了glutSolidCube(); 画立方体的方法,利用这种方法做生了栅栏,然后 两者综合做由了机器人Shortcomings :设计完实验作业,我们存在着很多的不足,首先,构 图坐标有些繁杂冗长,导致代码的篇幅有些长。第二,因为功 底是在太差,没有做由贴图和光源,导致整体不是很漂亮。第0三,实验思路有些混乱,经常是想起来什么就做什么,导致效 率变低。Conclusions总体来说,能够把项目做到这样的效果,我们还是很 满意的,
7、但是还是对没有将四面的背景分别设定表达感到遗 憾。如果要重新做一遍,我会选择学习并使用纹理的表 现,这个功能的优点是能够使事物表现更为逼真。这门课程让我对 CG 这门学科有了最基本的认识和学 习,希望以后有机会可以多加接触。Appendix :#include<GL/glew.h>#include<GL/glut.h>#include<GL/gl.h>#include<iostream> using std:cout; | #define _USE_MATH_DEFINES#include <math.h>double rotate_
8、y = -15;/定义键盘才S制旋转 X轴,默认-5度double rotate_x = -15; /定义键盘制旋转 丫轴,默认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(0.0f,-100.0f, 0.0f);/ (
9、左,上,前)glScalef(100, 100, 100);/放大图像(也可以更改点的数据来达到此效果 )/Rotate 语句:(旋转度数,X, Y, Z)/延X, Y, Z轴旋转/太阳(不能动)厂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, 1.0, 0.0);/*/太阳(可以动
10、)|glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-5.0, 5.0, 5.0);glutSolidSphere(1.5, 20, 20);glPopMatrix();*/房子的两部分公用一个坐标系,屏幕远向近为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);glVertex3f(-2.05f, 3.5f, 0.0f
11、);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);glVertex3f(-3.5f, 1.5f,
12、 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.5f, 0.0f);glVertex3f(-3.5f
13、, 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();/*烟囱*/顶glBegin(GL_QUADS);glColor3f(0.502f, 0.0f, 0.0f);glVertex3f(3.0f, 4.0f, -1.0f);glVertex3f(
14、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);glVertex3f(3.0f, 4.0f, 1.0f);glVertex3f(2
15、.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);glVertex3f(2.0f, 4.0f, 1.0f);glVertex3f(2
16、.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_QUADS);glColor3f(1.0f, 0.0f, 0.0f);glVertex3f(2
17、.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, -1.5f);/门glCoor3f(0.0f, 0.0f, 1.0f); _ glVert
18、ex3f(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); glVertex3f(1.25, 0.75, -1.51);/前glColor3f(1.0f, 0.0f, 0.0
19、f);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);glVertex3f(2.0f, 1.5f, -1.5f);/窗户glColor3f(0.502f, 0.
20、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.5f);glVertex3f(-2.0f, -0.5f, 1.5f);/窗户glColor3f(0
21、.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.5f);glVertex3f(2.0f, -0.5f, -1.5f); glEnd();/*基座*/
22、顶glBegin(GL_QUADS);0 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.0, -1.0, 3.5);glVertex3f(-5.0, -1.0, -3.5);glVertex3f(5.
23、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, -1.0, -3.5);glVertex3f(-5.0, -0.5, -3.5);glVertex3f(5.0, -
24、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.5, 3.5);glVertex3f(5.0, -1.0, 3.5);glVertex3f(5.0, -1.0,
25、 -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) glColor3f(0.502f, 0.0f, 0.502f); glVertex3f(9.0f, 1.5f, -5.0f)
26、; glColor3f(0.502f, 0.0f, 0.502f); glVertex3f(10.0f, 0.5f, -5.5f); glColor3f(0.502f, 0.0f, 0.502f); V7欢迎下载精品文档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);glVertex3f(10.0f, 0.5f, -4.5f);glColor3f(0.502f, 0.0f, 0.502f);glV
27、ertex3f(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);glVertex3f(9.5f, -1.0f, -5.5f);glVertex3f(8.5f, -1.0f, -5.5f
28、);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.502f, 0.502f);glVertex3f(9.5f, -1.0f, -4.5f);glVertex3f(8.5f
29、, -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.0f, 0.502f, 0.502f);glVertex3f(8.5f, 0.5f, -5.5f);glVertex3f(
30、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);glEnd();/* 枳*/glBegin(GL_TRIANGLE_FAN);glColor3f(0.0f, 1.0f
31、, 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.0f, 0.0f);glVertex3f(-10.5f, 2.5f, 3.5f);glColor3f(0.0f, 1.0f, 0.0f);
32、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.0f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVertex3f(-7.5f, 4.0f, 3.5f);glC
33、olor3f(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.0f);glVertex3f(-10.5f, 1.0f, 6.5f);glColor3f(0.0f, 1.0f, 0.0f);glVerte
34、x3f(-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_QUADS);glColor3f(0.0f, 0.502f, 0.502f);glVertex3f(-9.25f, 1.5f, 4.75f)
35、;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);glVertex3f(-9.25f, -1.0f, 4.75f);/前glColor3f(0.0f, 0.502f, 0.502f);glVe
36、rtex3f(-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);glVertex3f(-8.75f, 1.5f, 4.75f);glVertex3f(-9.25f, 1.5f, 4.75f);/左glColor3
37、f(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(-9.25f, 1.5f, 5.25f);glVertex3f(-9.25f, -1.0f, 5.25f);glVertex3f(-9.2
38、5f, -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, 1);glutSolidCube(0.1);glPopMatrix();/右面栅栏glColor3f(1.0, 0.0, 0.0);g
39、lPushMatrix();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(-4.5, 0.1,0);glScalef(1, 1,60);gl
40、utSolidCube(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);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);
41、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);1张迎F载精品文档glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(-1.5, -0.5, 3.0);gl
42、Scalef(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);glPopMatrix();glColo
43、r3f(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();glTranslatef(-4.0, -0.
44、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(0.5, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix
45、();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, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(2.
46、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);glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(3.0, -0.5, 3.0);glScalef(1, 15, 1);glutSolidCube(0.1);glPopM
47、atrix();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();glTranslatef(4.0, -0.5, 3.0);oglScalef(1, 15, 1); glutSolidCube(0.1);glPopMatrix();glColor3f(1.0, 0.0, 0.0); glPushMatrix();glTrans
48、latef(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);glutSolidCube(0.1); glPopMatrix();glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 0.5);glScalef(1, 15, 1);glutSolidCub
49、e(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, 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);glPushM
50、atrix();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();o 13w载精品文档glColor3f(1.0, 0.0, 0.0);glPushMatrix();glTranslatef(4.5, -0.5, 3.0);glScalef(
51、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();glColor3f(1
52、.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, -
53、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);glutSolidCube(0.1);glPopMat
54、rix();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, 0.0);glPushMatrix();glTranslat
55、ef(-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);glScale
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 北京艺术传媒职业学院《时间序列分析实验》2023-2024学年第一学期期末试卷
- 燃气锅炉安全风险预警及响应措施
- 陕西铁路工程职业技术学院《城乡韧性理论与规划》2023-2024学年第一学期期末试卷
- 北京戏曲艺术职业学院《民族艺术设计研究》2023-2024学年第一学期期末试卷
- 民生项目场地租赁与社会服务合同参考
- 衡阳师范学院《数据清洗》2023-2024学年第一学期期末试卷
- 车辆过户转让及二手车鉴定评估合同
- 黄淮学院《牙体牙髓病学实验》2023-2024学年第一学期期末试卷
- 婚姻关系终止协议书模板
- 常州工业职业技术学院《R软件》2023-2024学年第一学期期末试卷
- 2025年浙江宁波宁海县第一医院招考聘用紧缺专业编外医师笔试历年典型考题解题思路附带答案详解
- 湖南2025年湖南江华瑶族自治县招聘184名事业单位工作人员笔试历年参考题库附带答案详解
- 盘古java面试题及答案
- 3D打印食品安全标准-洞察及研究
- 2024中储粮考试题库与答案
- 江西省赣州市章贡区2022-2023学年五年级下学期数学素质评价试卷(含答案)
- 低空经济八大应用场景与实践案例解析方案
- 广东省深圳市福田区2023-2024学年一年级下学期语文期末试卷(含答案)
- 2025年物业管理员(中级)职业技能鉴定试卷(含物业设施设备维护案例)
- 下肢功能锻炼的护理方法
- 核电站清洁维护派遣及环境监测服务合同
评论
0/150
提交评论