X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=a9a5d6b221e63d2e039ef16f53b3ac22706fc3bd;hb=a56d2d3830d709d792cdb5a54386988bca4206e0;hp=4018b3b789be4af92ffd6db578b8d60d4793c393;hpb=c70db51f180efe97ad1cbb7bf9364f9e382c312e;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);