X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=bd927d9bb5324400254c8bdd581af10cb1a647da;hp=83e1c299eed996576613192e7f5ec15bf1e9e5c7;hb=874481319bb04b6e86e77a07679d1f10f8a38875;hpb=8664ff7d3cbe2e5285d067231f54772b46649653 diff --git a/scene.c b/scene.c index 83e1c29..bd927d9 100644 --- a/scene.c +++ b/scene.c @@ -295,22 +295,22 @@ void display() { if ( width > height ) aspect = (float)width / (float)height; gluPerspective( - 90.0, + 75.0, aspect, 0.1, - 100 + 200 ); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt( - 0.0, 0.0, 30.0, /* eye is at (x,y,z) */ + 0.0, 0.0, 5.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 */ ); - glRotatef(30.0, 1.0, 0.0, 0.0); + glRotatef(75.0, 1.0, 0.0, 0.0); /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle); @@ -410,6 +410,7 @@ int main(int argc, char **argv) { glDepthFunc(GL_LEQUAL); // the type glEnable(GL_CULL_FACE); glEnable(GL_TEXTURE_2D); + glEnable(GL_NORMALIZE); glLineWidth(1.0); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);