(no commit message)
authorAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 03:15:19 +0000 (11:15 +0800)
committerAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 03:15:19 +0000 (11:15 +0800)
globals.c
scene.c

index 053d1ee..f8ba810 100644 (file)
--- 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;
 
 /* 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
 
 /* 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 (file)
--- a/scene.c
+++ b/scene.c
@@ -318,7 +318,7 @@ void display() {
   glLoadIdentity();\r
 \r
   gluLookAt(\r
   glLoadIdentity();\r
 \r
   gluLookAt(\r
-    10.0,  0.0,  15.0 + (zoom*zoomFactor),  /* eye is at (x,y,z) */\r
+    15.0 + (zoom*zoomFactor),  0.0,  15.0 + (zoom*zoomFactor),  /* eye is at (x,y,z) */\r
     0.0,  0.0,  0.0,  /* center is at (x,y,z) */\r
     0.0,  1.0,  0.0   /* up is in postivie Y direction */\r
     );\r
     0.0,  0.0,  0.0,  /* center is at (x,y,z) */\r
     0.0,  1.0,  0.0   /* up is in postivie Y direction */\r
     );\r

UCC git Repository :: git.ucc.asn.au