X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=e42c48c8fb9e9d9c5c4f567562a52c0731eca9cb;hp=164d1001eb6f8d01d86635b8edeef31b56c4ed7d;hb=ffb95814b6e8d3ef616722cd64e07a7af0defd74;hpb=05f50c2a687dbe49b89e730d8636b12d5d8543c9 diff --git a/scene.c b/scene.c index 164d100..e42c48c 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 = 20; +GLfloat near = -100; +GLfloat far = 100; /* Zoom factor for mouse movements */ GLfloat zoomFactor = 1.0; @@ -665,7 +665,7 @@ void display() { // Draw teapot for a test object glPushMatrix(); - glTranslatef(0.0, 0.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(); @@ -694,8 +694,8 @@ void init() { gluPerspective( 60.0, /* field of view in degree */ 1.0, /* aspect ratio */ - near, /* Z near */ - far /* Z far */ + -10, /* Z near */ + 10 /* Z far */ );