A short presentation to use in my portfolio about a solar system in OpenGL using Java with JOGL.
To learn the basics of programming computer graphics using OpenGL I created an simple solar system. OpenGL and DirectX are the two most relevant APIs for programming of real-time computer graphics. In order to run OpenGL (native in C/C++) in Java we used JOGL, Java Bindings for OpenGL, that realizes the OpenGL implementation while using Java as programming language. I realized several classes in order to display the solar system. The single planets are arranged in some kind of hierarchy. Every planet (including the sun and several moons) have a rotation around itself as well as a rotation around their mother planet. I displayed also the orbits of each planet. Using a slider you can increase the speed up to a factor of x1000. Using two radio buttons makes it possible to select whether the planets are displayed using a solid sphere or a wire sphere and if additional random stars are created or not. Furthermore I can adjust the camera and eye position using different keys of the keyboard. The exact coordinates of each position are also displayed in the upper right corner.