From: Ash Tyndall Date: Sat, 22 Oct 2011 01:15:08 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=5a9dfd8e5f68b2f6062987a5b67bbd7934828bf1;hp=4f239fb2f8af8aebec80ca0b50959ba20a0ab5e7 --- diff --git a/globals.c b/globals.c index 7a5c310..a08eee1 100644 --- a/globals.c +++ b/globals.c @@ -92,7 +92,7 @@ GLfloat emission[] = {0.0, 0.3, 0.3, 1.0}; /* Zoom and rotate tracking */ GLfloat zoom = 0.0, rotate = 0.0, camAngle = 40.0; GLfloat zoomFactor = 0.2, rotateFactor = 0.5, camAngleFactor = 0.5; -GLfloat leftrightFactor = 0.5, nearfarFactor = 0.5, bigsmallFactor = 1.2, updownFactor = 0.5; +GLfloat leftrightFactor = 0.5, nearfarFactor = 0.5, bigsmallFactor = 0.2, updownFactor = 0.5; /* Beginning width, height */ int width = 500, height = 500; diff --git a/scene.c b/scene.c index 6d47393..ad7e4bf 100644 --- a/scene.c +++ b/scene.c @@ -306,6 +306,7 @@ void motion(int x, int y) { } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: big/small, h: up/down float scaling = (y - starty)*bigsmallFactor; + printf("Scaling by %f on all axii\n", scaling); sceneObjs[curObject].scale[0] += scaling; sceneObjs[curObject].scale[1] += scaling; sceneObjs[curObject].scale[2] += scaling;