Author Topic: glfrustum?  (Read 2419 times)

0 Members and 1 Guest are viewing this topic.

Offline ScottyBrosious

  • C= 64
  • **
  • Posts: 25
  • Karma: 3
    • View Profile
glfrustum?
« on: July 02, 2007 »
Can someone put this in basic layman's terms for me?

glFrustum(left,right,bottom,top,near,far)

I know there all clipping planes but how do I use them to
define what it see's and what it don't?

I just would like to understand it a bit more before I use it.

Thanks
Scott




Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: glfrustum?
« Reply #1 on: July 02, 2007 »
If the camera is at (0,0,0), then
(left, bottom, -near) to (right, bottom,  -near) to (right, top,  -near) to (left, top, -near)
is the rectangle which is projected on to the screen.
far is the far clipping plane, beyond which nothing will be drawn
near is the near clipping plane, beyond which nothing will be drawn

Jim
Challenge Trophies Won: