Hacking Celestia - displaying lines in front of planets
Posted: 26.05.2005, 12:58
Hi all!
For a scientific visualization I need to display things like:
* a line from Jupiter to Earth
* a line from Io to Jupiter
* a bow from Io to Jupiter
I've managed to modify the code in render.cpp and added the drawing stuff to Renderer::renderOrbit. Everything displays - so far so good.
The problem is that i.e. the line from the center of Earth to the center of Jupiter doesn't seems to penetrate Jupiter in the ecliptical plane. That means, Jupiter is always in the foreground and the line always ends where Jupiter's disc begins. The same for the line from Io to Jupiter and the bow.
After trying things for a few hours I'm lost. How can I tell OpenGL to render the lines correctly -> that means, that the line actually penetrates Jupiter ?
Thanks a lot for any pointers!
Best regards,
Hannes.
For a scientific visualization I need to display things like:
* a line from Jupiter to Earth
* a line from Io to Jupiter
* a bow from Io to Jupiter
I've managed to modify the code in render.cpp and added the drawing stuff to Renderer::renderOrbit. Everything displays - so far so good.
The problem is that i.e. the line from the center of Earth to the center of Jupiter doesn't seems to penetrate Jupiter in the ecliptical plane. That means, Jupiter is always in the foreground and the line always ends where Jupiter's disc begins. The same for the line from Io to Jupiter and the bow.
After trying things for a few hours I'm lost. How can I tell OpenGL to render the lines correctly -> that means, that the line actually penetrates Jupiter ?
Thanks a lot for any pointers!
Best regards,
Hannes.