Sign in to follow this  
judge dreadz

openGL, fustrum and perspective

Recommended Posts

Very brief answer: glFrustum() allows you to set up an arbitrary, off-axis frustum. gluPerspective() basically wraps glFrustum(), allowing you to create a symmetrical frustum with somewhat more intuitive arguments.

Share this post


Link to post
Share on other sites
gluPerspective is a specialized function for creating a symetric view volume based on a view angle, and ultimately calls glFrustum. glFrustum is a more generic function which gives you more control of the shape of the view volume.

In some cases, glFrustum is the simplest of the two; it's a matter of what information and requirements you have when you specify the view volume. If you have a view angle and want a symmetric view volume, then gluPerspective is obviously a better choise, as that's the kind of parameters it takes and the kind of shape it generates. If you need to control how coordinates are mapped from eye space to window space, then glFrustum is a better choise, as that's the kind of parameters it takes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this