X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=2e2f93c46af4bb0b08f63f29ad1c87ba84017b4c;hp=8b524344e0d173d35dac92f09f6620fb43e9aadc;hb=b24fabe7a11b7e6d6d53aff68ea37df448fb53d2;hpb=458e414cd39888ce2a949d1a8169a6f1046f85c8 diff --git a/scene.c b/scene.c index 8b52434..2e2f93c 100644 --- a/scene.c +++ b/scene.c @@ -123,8 +123,8 @@ GLfloat angle = -150; /* in degrees */ GLfloat angle2 = 30; /* in degrees */ /* Near and far parameters */ -GLfloat near = -10; -GLfloat far = 10; +GLfloat near = -100; +GLfloat far = 100; /* Zoom factor for mouse movements */ GLfloat zoomFactor = 1.0; @@ -133,7 +133,7 @@ GLfloat zoomFactor = 1.0; int drawFloorRecurse = 5; /* Size of floor, from -n to n */ -int floorSize = 100; +int floorSize = 200; /* Light 0 parameters */ GLfloat diffuse0[] = {1.0, 1.0, 1.0, 1.0}; @@ -665,7 +665,7 @@ void display() { // Draw teapot for a test object glPushMatrix(); - glTranslatef(0.0, 1.0, 0.0); // **NOTE: Teapot does not rest on surface + glTranslatef(0.0, 0.5, 0.0); // **NOTE: Teapot does not rest on surface glColor3f(0.5, 0.5, 0.5); glutSolidTeapot(1); glPopMatrix(); @@ -696,7 +696,7 @@ void init() { 1.0, /* aspect ratio */ near, /* Z near */ far /* Z far */ - ); + ); glLightfv(GL_LIGHT0, GL_POSITION, light0_pos);