GLfloat angle2 = 30; /* in degrees */\r
\r
/* Near and far parameters */\r
-GLfloat near = -10;\r
-GLfloat far = 10;\r
+GLfloat near = -100;\r
+GLfloat far = 100;\r
\r
/* Zoom factor for mouse movements */\r
GLfloat zoomFactor = 1.0;\r
\r
// Draw teapot for a test object\r
glPushMatrix();\r
- glTranslatef(0.0, 0.0, 0.0); // **NOTE: Teapot does not rest on surface\r
+ glTranslatef(0.0, 0.5, 0.0); // **NOTE: Teapot does not rest on surface\r
glColor3f(0.5, 0.5, 0.5);\r
glutSolidTeapot(1);\r
glPopMatrix();\r
glMatrixMode(GL_PROJECTION);\r
glLoadIdentity();\r
\r
- gluPerspective(\r
- 60.0, /* field of view in degree */\r
- 1.0, /* aspect ratio */\r
- near, /* Z near */\r
- far /* Z far */\r
- ); \r
+ //gluPerspective(\r
+ // 60.0, /* field of view in degree */\r
+ // 1.0, /* aspect ratio */\r
+ // near, /* Z near */\r
+ // far /* Z far */\r
+ // );\r
\r
\r
glLightfv(GL_LIGHT0, GL_POSITION, light0_pos);\r