From 37f5c2b6006a1e3615ff82b15e60a7ab4484007d Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 11:15:19 +0800 Subject: [PATCH 1/1] --- globals.c | 2 +- scene.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */ ); -- 2.20.1