PDA

View Full Version : gluPerspective vs. gluFrustum



Anders
01-20-2002, 12:03 PM
To me it seems that these two functions accomplish the same thing, i.e. setting up the matrix for perspective viewing. Is that correctly understood? When would one be preferable over the other?
Second question: I'm currently using gluPerspective. What should I specify as FOV, to get a view similar to that used in most 3D-shooters? I am currently using 45 degrees. I use 1.33 (800/600) as aspect ratio. Is that the correct value?

Lev
01-20-2002, 12:19 PM
Yes they do the same.

hmm, hehe, you know that god doesn't like to be limited in his view and you'll go to hell for 45 degrees, don't you? http://www.opengl.org/discussion_boards/ubb/smile.gif 90 is standard http://www.opengl.org/discussion_boards/ubb/smile.gif

-Lev

[This message has been edited by Lev (edited 01-20-2002).]

Anders
01-20-2002, 12:30 PM
Are you sure about the 90 degrees? It seems to me that I get a kind of stretched view, when I use that. And about me going to hell, don't worry. I reserved my seat there a long time ago http://www.opengl.org/discussion_boards/ubb/smile.gif

zed
01-20-2002, 01:18 PM
90deg is ok (just stick your face 10cm in front of the monitor then there should be no distortion)
btw gluPerspective is just a user friendly wrapper for glFustrum

munificent
01-29-2002, 09:32 AM
if i remember correctly, quake defaults to a 45 degree view angle.

Shag
01-30-2002, 09:15 PM
Have you ever seen a space sim with a 90 degree FOV? Planets look like eggs! http://www.opengl.org/discussion_boards/ubb/smile.gif

However, my personal opinion aside, you should consider a user definable FOV. Everyone wins that way!