Hello,
I don't understand the function glOrthof(). I have seen posts over the web about it, but I still don't get it. Can someone explain as simply as they can how glOrthof() works?
Thanks!
Printable View
Hello,
I don't understand the function glOrthof(). I have seen posts over the web about it, but I still don't get it. Can someone explain as simply as they can how glOrthof() works?
Thanks!
The best discussion of this subject on the web is at:
http://www.glprogramming.com/red/chapter03.html
I recommend that you do not worry about how the math works for glOrtho. The important thing is how to use it. Use it to define the 3D clipping boundaries for your rendering. This is called the Viewing Volume or Frustum. With glOrtho, your frustum will have a simple box shape (an orthographic projection), as opposed to using glFrustum or gluPerspective which are used to create Frustums with the typical pyramid shape (perspective projections).
Good Luck, Clay