X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=scene.c;h=8101ddb1020e2b91af35917e4edb6d2da96d32d0;hb=208a83d9f7ed04bd1929c2c7f804a2eaea4cdd63;hp=a7965438f5cff2e1a6588be47718743663f9da32;hpb=66ac3dee15c36c09cb7cb49ffec82640f8ea500a;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index a796543..8101ddb 100644 --- a/scene.c +++ b/scene.c @@ -289,16 +289,16 @@ 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, 10.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 */ + 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); glTranslatef(camx, camy, camz); // **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