A real-time 2D solar system simulation built using JOGL (Java OpenGL). This interactive graphical project simulates planetary orbits, glowing celestial bodies, and animated star fields in a smoothly rendered canvas using GLCanvas and FPSAnimator.
- Sun with glowing core and halo effect
- Orbiting Planets β Mercury, Venus, Earth (with Moon), and Mars
- Earth-Moon System β Moon orbits around Earth dynamically
- Animated Stars β Random starfield updates every 5 seconds
- Orbit Paths β Circular orbit lines for visual reference
- 60 FPS Rendering using JOGL's
FPSAnimator
- Java
- JOGL (Java Bindings for OpenGL)
- GLCanvas & GLEventListener
- Swing (JFrame for window management)
-
Install JOGL
Download JOGL libraries from the official website or include them using your favorite Java build tool. -
Clone this Repository
git clone https://github.com/your-username/solar-system-jogl.git cd solar-system-jogl