Chayan Vinayak
07-17-2011, 06:55 PM
gluPerspective(45.0,(double)w / (double)h,1.0,200.0);
In gluPersepective() function we define near clipping. In most of the cases we define near clipping as 1.0 which means anything which is beyond 1.0 or which has Z co-ordinate value less than 1.0 will not be drawn then why are the primitives or points are drawn or visible in the screen which have -5.0( or any other negative value for Z-axis)
eg.
glBegin(GL_POINTS);
glVertex3f(10.0f, 20.0f, -5.1f);
glEnd();
Thanks
In gluPersepective() function we define near clipping. In most of the cases we define near clipping as 1.0 which means anything which is beyond 1.0 or which has Z co-ordinate value less than 1.0 will not be drawn then why are the primitives or points are drawn or visible in the screen which have -5.0( or any other negative value for Z-axis)
eg.
glBegin(GL_POINTS);
glVertex3f(10.0f, 20.0f, -5.1f);
glEnd();
Thanks