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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Opengl draw distance cutoff
Page Index Toggle Pages: 1
Opengl draw distance cutoff (Read 1024 times)
Opengl draw distance cutoff
Oct 5th, 2007, 3:24pm
 
Hi all,

I'm developing a sketch that involves moving objects very far away, However once they get past a certain distance from the camera, they dissapear ... They are very simple shapes(just a bunch of planes) so there is no need to stop drawing for performance reasons. is there any way to set the maximum distance for opengl?

Thanks in advance.
Re: Opengl draw distance cutoff
Reply #1 - Oct 6th, 2007, 1:29am
 
http://processing.org/reference/frustum_.html
http://processing.org/reference/perspective_.html

Your far clipping plane needs to be extended. Also, when you extend the far plane like that, you might want to do the same for the near clipping plane- if opengl is viewing a large area, like .001 to 10000, you'll probably see artifacts.
Page Index Toggle Pages: 1