I had some problems regarding the perspective projection.
Well this is what i tried:
glMatrixMode(GL_MODELVIEW); glLoadIdentity (); gluLookAt (0.0, 0.0, 200 , 0.0, 0.0, 0.0,0.0,1.0,0.0); glMatrixMode(GL_PROJECTION); glLoadIdentity (); glFrustum(-150.0 , 150 , -150.0 ,150.0 ,100.0 ,300.0); glutWireCube (100); glFlush ();
Now im not able to figure out as to how the near and far planes are specified.
Here, if i give near = 50 and far = 300, the cube appears smaller as compared to near = 100 and far = 300.
I am confused as to how exactly the near and far are specified here.is it with respect to the camera position or something else?
Can anyone please explain?
Thanks in advance.