From 9ef3cb688ee424d11b9b9549ec3cb3dac29334c4 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 11:50:12 +0800 Subject: [PATCH] --- scene.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene.c b/scene.c index 485e8a9..8ce005b 100644 --- a/scene.c +++ b/scene.c @@ -279,11 +279,13 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - x, y, z, /* eye is at (x,y,z) */ + 0.0, 0.0, 10.0, /* 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 */ ); + glTranslatef(x, y, z); + // **NOTE: Currently this rotation function is all that moves the camera off // the flat surface. Need to integrate function into gluLookAt glRotatef(30.0, 1.0, 0.0, 0.0); -- 2.20.1