I’m trying to draw the circle with gluDisk in 3d space,but it looks oval(it is streched in vertical
direction),but I need the circle and not oval disk,how to fix it?
My code is this:
First: are you looking along a viewing direction perpendicular to the disk?
Second: make sure your projection matrix corresponds to your GLwindow size.
eg. if you set glortho(0,800,0,600,…) and you have a viewport of 400x600 instead of 800x600, then your disk will be stretched in the vertical direction. This also applies to perspective projections.