View Full Version : gluPerspective and fov question
We generaly use 45 deg as a yFov in gluPerspective... But in real our yFov is 90, right? But when we put in gluP... 90 it cause big distortion. So whats up with it. Or am I getting sumthin' wron'???
If you want a view without perspective distortion, you should calculate the angle between the top of the window, your face, and the bottom of the window. Typical vertical FOV for a fullscreen window then usually ends up at about 25 degrees.
Well, I mean we can select in console or options fov to 90 and then it looks like we set 45 in gluPerspective. So my question is - does 90 from options correspond to 45 in gluPerspective?
What "option" and "console" are you talking about? The angle you pass to gluPerspective is the angle between the bottom and top clip plane. 45 mean 45 degrees between the bottom and top clip planes, and that is a 45 degree vertical field of view.
Right, I forgot something. I mean options or console in games - Quake, Unreal - 90 degrees is default value fov fov there. And it looks exactly like gluPerspective with 45 angle...
12-12-2004, 08:21 AM
In most apps and games, the FOV is the horizontal angle, whereas in Glut it is the vertical angle.
So you need some simple math to convert from h to v conversion.
Anyway... If we assume that standard screen ratio is ~1,3 we have 68 degs in y. And that value in gluPerspective casues distortions, right???
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.