X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=92c7482d14d224ecb25c9c5bb92758e1e8d67227;hp=72ce8d3d99f301dd29c1a6fd9e68837e63eaff7f;hb=ccfbc5f4ffa0ae96d7c3ebc4facd893c343cd54e;hpb=931b31d79c7a6a33c8eac86fab2e7f20fc668d3d diff --git a/scene.c b/scene.c index 72ce8d3..92c7482 100644 --- a/scene.c +++ b/scene.c @@ -613,11 +613,13 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - 0.0, 0.0, 60.0, /* eye is at (x,y,z) */ + 0.0, 0.0, 30.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 */ ); + glRotatef(20.0, 1.0, 0.0, 0.0); + /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle); lightPosition[1] = lightHeight; @@ -626,7 +628,7 @@ void display() { glPushMatrix(); /* Perform scene rotations based on user mouse input. */ - glRotatef(angle2, 1.0, 0.0, 0.0); + glRotatef(angle, 0.0, 1.0, 0.0); glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);