Original Post
Hello, I am developing an OpenGL application that requires very high precision. Below is a relevant extract of my code. As you can see in the GL_QUADS function i should have a square, but the output is a rectangle. I have tried all modifications i can think of, but the width always comes much longer than the height Unfortunately this site doesn't allow direct insertion of images otherwise i would have let you see how much longer the width is than the height. Does anyone know how i can fix this problem? Thanks [Edited by - run_g on July 2, 2007 10:22:23 AM]
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
glutSwapBuffers();
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
// fovy, aspect, near, far
gluPerspective( 60.0, 1, 0.01, 1000000000.0);
glViewport( 0, 0, 600, 600 );
gluLookAt ( 0, 0, 0, //camera
0, 10, 0, //center of screen
0, 1, 0 ); //up vector
……..
……..
……..
glBegin( GL_QUADS );
glVertex3f( 0, 0, 0 );
glVertex3f( 5, 0, 0 );
glVertex3f( 5, 5, 0 );
glVertex3f( 0, 5, 0 );
glEnd( );
glFlush( );