We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have started using p3d and (in a basic sense) am rotating spheres around the centre. The problem is when the spheres come to the front of the screen (z=100) they block the whole screen before they vanish because they have gone above z=100. I was wondering if there was a way to set the boundaries of z just like with x and y "size(x,y)" as this seems like it could be the best fix. However, I don't want to reduce z in the opposite direction (minus z).
Thanks in advance :)
Answers
http://processing.org/reference/perspective_.html
has a zNear and zFar parameter. it's not the easiest thing in the world to configure though.
http://processing.org/reference/frustum_.html
is the same.