X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=2730c4f37f507a1500fe9b4e657ba82c66b5de9d;hp=c6b2f7f7084d8810ed6154edcbcbb61ea1246210;hb=87b1e4d4ecf968eb100b8d93f929c0574c7f08d0;hpb=37f5c2b6006a1e3615ff82b15e60a7ab4484007d diff --git a/scene.c b/scene.c index c6b2f7f..2730c4f 100644 --- a/scene.c +++ b/scene.c @@ -318,12 +318,13 @@ void display() { glLoadIdentity(); gluLookAt( - 15.0 + (zoom*zoomFactor), 0.0, 15.0 + (zoom*zoomFactor), /* eye is at (x,y,z) */ + 0.0, 0.0, 15.0 + (zoom*zoomFactor), /* 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, 10.0, 0.0 /* up is in postivie Y direction */ ); glRotatef(50.0, 1.0, 0.0, 0.0); + glRotatef(15.0, 0.0, 1.0, 0.0); /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle);