From: Ash Tyndall Date: Fri, 21 Oct 2011 03:15:19 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=37f5c2b6006a1e3615ff82b15e60a7ab4484007d;p=atyndall%2Fcits2231.git --- diff --git a/globals.c b/globals.c index 053d1ee..f8ba810 100644 --- a/globals.c +++ b/globals.c @@ -95,7 +95,7 @@ GLfloat specular[] = {1.0, 1.0, 1.0, 1.0}; /* Zoom and rotate tracking */ GLfloat zoom = 0.0, rotate = 0.0; -GLfloat zoomFactor = 0.2, rotateFactor = 1.0; +GLfloat zoomFactor = 0.2, rotateFactor = 0.5; /* Beginning width, height */ int width = 500, height = 500; \ No newline at end of file diff --git a/scene.c b/scene.c index d22aa94..c6b2f7f 100644 --- a/scene.c +++ b/scene.c @@ -318,7 +318,7 @@ void display() { glLoadIdentity(); gluLookAt( - 10.0, 0.0, 15.0 + (zoom*zoomFactor), /* eye is at (x,y,z) */ + 15.0 + (zoom*zoomFactor), 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 */ );