We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
OPENGL frustum (Read 1036 times)
OPENGL frustum
Jul 26th, 2007, 4:19am
 
Hello all,

I'm working in 3D, and I'm trying to change the far clipping plane of openGL. I tried the glFrustum(GLdouble  left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearVal, GLdouble farVal); function that I found online on the openGL documentation but I am definitely missing something because Processing doesn't recognize the line. Can anyone help me on that by posting a simple example?

Thank you in advance Smiley

Best
Elfuko
Re: OPENGL frustum
Reply #1 - Jul 26th, 2007, 6:44am
 
Use the perspective command to set the far clip plane:

http://processing.org/reference/perspective_.html
Re: OPENGL frustum
Reply #2 - Jul 26th, 2007, 10:59am
 
Thanks a lot. This does work! I thought this worked only when you were using a Processing camera.
Page Index Toggle Pages: 1