04-11-2000, 08:01 PM
I'm working on a project, or at least starting to, that renders or scale-model of our solar system. The simplest solution for viewing seems to be using an orthographic view with the dimensions of our solar system. Instead of using the dimensions of our entire solar system, I just use the farthest out (clearly visible) object: Pluto. Now, all my planetary data is dynamically loaded from a .ini files where measurements such as distances of planets from the sun, radiuses of planets, orbits of planets, etc. are stored in km units. When I run my program with the correct solar system data, everything appears to scale, as it should, EXCEPT the planets are vertical lines! Thinking something was wrong with my glOrtho(), I rewrote my window reshaping function and got the same lines instead of spheres. Now, the funny thing is, when I go through my .ini file with all the stored values of planets' characteristics and scale them down to a size where the solar system is 100 by 100 by 100 and the planets have a radius between 1 and 10, the scene renders fine. No lines, real spheres! Why is it that when I use dimensions of objects from thousands to billions, but all to scale, the scene doesn't display correctly? I tried dividing all the inputted values from the .ini file by factors of 10, but that, oddly enough, didn't seem to scale down the solar system to an OpenGL-friendly size. Where do I go from here? I'm completely baffled.