When I place coordinates like this:
display(){
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(0.0f, 0.0f, 360.0f);
drawTeapot();
glutSwapBuffers();
}
The teapot is not visible and I want it visible at 360.0f.
I am using this for init,
init()
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45, width/height, -1000, 1000);
}
It's not a case placing coordinates > 100.0f. For starters your furstrum is wrong as the zNear value should be > 0. There is no negative region of a viewing frustrum :).
The translation you are doing on the ModelView matrix is the wrong way. i.e invert the z translation to -360.0f.
See here for more information on OpenGL axis. If you translate an object n-units to the left, from the camera's point of view you have moved it n-units to the right.