I am working on a 3-D view of the Galaxy and have a question on how to set the frustum. Right now I use gluPerspective() and set the near to something close to 0 and the far to something very far and an FOV of 20º. I then zoom in and out of the scene by changing viewing distance. I need a very deep viewing volume because space is pretty much infinite. I’ve been told that deep frustums can cause problems. I know setting near to 0 does cause problems.
What I’m not clear on is how zooming in and out should be handled. I think of it as similar to changing magnification in a telescope. Is modifying the viewing distance the right way? It seems like this might not give the correct perspectives. Anther thought I had was changing the frustum (using glFrustum() rather than gluPerspective) every time I zoomed in or out.
Anyone have any thoughts on how I should be thinking about this?