X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=e8d7bb8777b809d75f424e7d4f99be53ada81b15;hp=ecabe1f16b5ffc278f564915507a5987fc1b7a66;hb=4b694f000a2b15bb70939493eaeae2847f099f4b;hpb=e1106adcec8622ffa66be50379561f4c9cd06ea6 diff --git a/scene.c b/scene.c index ecabe1f..e8d7bb8 100644 --- a/scene.c +++ b/scene.c @@ -255,7 +255,7 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - 0.0, 0.0, 10.0, /* eye is at (x,y,z) */ + 0.0, 10.0, 10.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 */ ); @@ -263,7 +263,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(20, 1.0, 0.0, 0.0); + glRotatef(30.0, 1.0, 0.0, 0.0); /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle);