Steve_7
07-21-2001, 08:11 PM
Hi I have problem with setting up perspective. Although, I use the following func. seems like I am getting glOrtho with dimensions x, y and z from -1.0f to 1.0f http://www.opengl.org/discussion_boards/ubb/frown.gif Any idea?
void DRAW :: SetUP_Environment (int w, int h){
glEnable( GL_DEPTH_TEST );
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(10.0f,(GLfloat)w/(GLfloat)h, 0.1f, 1000.0f);
glMatrixMode(GL_MODELVIEW);
gluLookAt( Cam_X, Cam_Y, Cam_Z, 0, 0, 0, 0, 1, 0 );
}
void DRAW :: SetUP_Environment (int w, int h){
glEnable( GL_DEPTH_TEST );
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(10.0f,(GLfloat)w/(GLfloat)h, 0.1f, 1000.0f);
glMatrixMode(GL_MODELVIEW);
gluLookAt( Cam_X, Cam_Y, Cam_Z, 0, 0, 0, 0, 1, 0 );
}