PDA

View Full Version : Another question... ( gluPerspective and gfFrustum)



Bra'Tac
04-24-2001, 04:30 AM
Hi, I wanted to use glFrustum instead of gluPerspective but I suspect there are some maths to do and I'm sure of mine.

Here is Nehe's code :
// Calculate The Aspect Ratio Of The Window
gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);

How to transform that in a frustum ??

Bra'Tac
04-24-2001, 04:40 AM
answer to myself:

look here stupid forum user who don't use the search fonction before posting:
http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/000559.html