X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=e667b02e047a70d6c6ed33b540b44086e2ce783d;hp=892a087b7ad8e49a6baf1cb4ca9870698508cfe0;hb=b049bea0f179ce1373839add4960a19a979c682c;hpb=0e6f9e61d354ba9e4f4fa9c9efa6fb84374c519f diff --git a/scene.c b/scene.c index 892a087..e667b02 100644 --- a/scene.c +++ b/scene.c @@ -289,7 +289,7 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - 0.0, 0.0, 30.0, /* eye is at (x,y,z) */ + 0.0, 100.0, 100.0, /* eye is at (x,y,z) */ 0.0, 0.0, 0.0, /* center is at (x,y,z) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); @@ -298,7 +298,7 @@ void display() { // **NOTE: Currently this rotation function is all that moves the camera off // the flat surface. Need to integrate function into gluLookAt - glRotatef(50.0, 1.0, 0.0, 0.0); + //glRotatef(30.0, 1.0, 0.0, 0.0); /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle); @@ -322,7 +322,7 @@ void display() { glPushMatrix(); glTranslatef(0.0, 1.0, 0.0); // **NOTE: Teapot does not rest on surface glColor3f(0.5, 0.5, 0.5); - glutSolidTeapot(1); + glutSolidTeapot(100); glPopMatrix(); // Draw a white ball over the light source