From: Ash Tyndall Date: Tue, 18 Oct 2011 11:08:59 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a56d2d3830d709d792cdb5a54386988bca4206e0;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 4018b3b..a9a5d6b 100644 --- a/scene.c +++ b/scene.c @@ -484,8 +484,8 @@ void makeMenu() { * @param h New height */ void windowReshape(int w, int h) { - GLdouble near = -10.0; - GLdouble far = 10.0; + GLdouble near = -1000.0; + GLdouble far = 1000.0; glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); @@ -572,7 +572,7 @@ void drawFloor() { // glEnable(GL_TEXTURE_2D); //} - /*glBegin(GL_QUADS); + glBegin(GL_QUADS); glTexCoord2f(0.0, 0.0); glVertex3fv(floorVertices[0]); glTexCoord2f(0.0, 16.0); @@ -581,7 +581,7 @@ void drawFloor() { glVertex3fv(floorVertices[2]); glTexCoord2f(16.0, 0.0); glVertex3fv(floorVertices[3]); - glEnd();*/ + glEnd(); /*if (useTexture) { glDisable(GL_TEXTURE_2D); @@ -622,7 +622,7 @@ void display() { glPushMatrix(); - glTranslatef(0.0, 0.0, 0.0); + //glTranslatef(0.0, 0.0, 0.0); glutWireTeapot(30); // Draw teapot for test glPopMatrix(); @@ -650,10 +650,10 @@ void init() { glLoadIdentity(); gluPerspective( - 60.0, /* field of view in degree */ - 1.0, /* aspect ratio */ - 0.0, /* Z near */ - 900.0 /* Z far */ + 60.0, /* field of view in degree */ + 1.0, /* aspect ratio */ + -1000.0, /* Z near */ + 1000.0 /* Z far */ ); glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);