X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=2a3b61a714be2e988f6c31cb7402995298526c7b;hp=a02ae847dae7da9162f1a05def5d3f2f2c8fc6f1;hb=a2e0f7b8f203daa6d62beaa75896fce2ddd92a18;hpb=5eb90acec725198d090e065c1bdc7d41dd4ce02b diff --git a/scene.c b/scene.c index a02ae84..2a3b61a 100644 --- a/scene.c +++ b/scene.c @@ -230,7 +230,7 @@ void keyboard(unsigned char key, int x, int y) { break; case 's': case 'S': - camz -= factor; + camz += factor; break; case 'd': case 'D': @@ -250,7 +250,7 @@ void keyboard(unsigned char key, int x, int y) { break; case 'x': case 'X': - keyrot += factor; + keyrot -= factor; break; case '=': case '+': @@ -318,9 +318,9 @@ void display() { glLoadIdentity(); gluLookAt( - 0.0, 0.0, 5.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 */ + 0.0, 10.0, 0.0 /* up is in postivie Y direction */ ); glRotatef(50.0, 1.0, 0.0, 0.0);