X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=d40ef090f5f76d268127390797b736d0177c1748;hp=9889ce19522512c233534daf13249af75b5743cc;hb=46221af69fafdc9575da1f9ca1e776e9edec32bd;hpb=153f05e2a261811c347b6b9bd9057321ebb4cc9f diff --git a/scene.c b/scene.c index 9889ce1..d40ef09 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) */ + 100.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 */ + 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(30.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);