Hello. I am making a program that simulates a simple solar system and allows the user to navigate through it. I have a sphere for the sun and a small planet rotating around it. Everything seems to work fine, except when I get close to the sun it seems distorted if it is near the edges of the screen.
My question is, how would i correctly setup the perspective using the glFrustum()?
Logically, i would set a very small viewing area since the viewer is very small compared to the objects in the solar system, and a very large ‘far’ distance since the viewer can see deep into space, but i’m not sure what the near parameter does. When i tried setting the viewing area very small and ‘far’ very large the distortions went away but then the engine would have problems with the hidden structure removal when the planet went behind the sun.
As you can see i’m very confused. =) Any explanation would be greatly appreciated.