PDA

View Full Version : gluPerspective and glFrustum...



mridula
07-23-2006, 10:53 PM
hi all,
i wud like to know that which one of the 2 is more preferable since both the functions are used for perspective projection.

thanx

des
07-24-2006, 02:51 AM
This is your choise. The gluPerspective function taks another arguments (this arguments is more convinient), and then calls glFrustum. Instead this glFrustum can make more perspective effects. See RedBook for details

des
07-24-2006, 02:52 AM
And the gluPerspective include scene moving and rotation, glFrustum don't

des
07-24-2006, 02:55 AM
Here is the link about this: http://www.rush3d.com/reference/opengl-redbook-1.1/chapter03.html

memfr0b
07-24-2006, 03:20 AM
The functionality of gluPerspective is a strict subset of glFrustum. It does not include rotation, and exactly the same amount of translation as glFrustum. You're probably thinking of gluLookAt.

des
07-24-2006, 05:32 AM
Oh, sorry!!!