View Full Version : Sphere
09-05-2001, 02:15 AM
when I draw a sphere into 640*480 window it doesn't look like sphere - it looks like elipsoid (?) .how to fix that ? (i dont want to resize the window)
09-05-2001, 04:58 AM
I don't understand how can see an elipsoid because normaly your computer screen is in 4/3 format and 640x480 too ...
See you the result on a 16/9 TV screen ? http://www.opengl.org/discussion_boards/ubb/smile.gif
If it's the case, you have to draw yourself an elipsoid for to view a true sphere on your 16/9 screen (or make a glScale call for resizing the X, Y and Z axes of your sphere, I haven't here the goods sx,sy,sz values for this call but it isn't very hard to find).
On another side, perhaps this can be the result on a bad matrix manipulation ...
09-05-2001, 05:01 AM
You gotta specify the aspect ratio in glViewport (which is 1.33333... on 4/3 window) and then setup a Projection matrix (See gluPerspective for this).
09-05-2001, 05:06 AM
Make sure that you set the aspect ratio correct in your resize "handler"
gluPerspective(), if you are using it.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.