Simple OpenGL simulation of part of the solar system, with more features.
Find a file
2026-01-11 15:31:02 +02:00
build add files 2026-01-11 15:31:02 +02:00
include add files 2026-01-11 15:31:02 +02:00
src add files 2026-01-11 15:31:02 +02:00
Makefile add files 2026-01-11 15:31:02 +02:00
README.md add files 2026-01-11 15:31:02 +02:00

OpenGL planets 2 - more features

README:

This software has been tested under:

  • Arch Linux 6.14.6-arch1-1 x86_64 using sdl3 3.2.12-1, sdl2-compat 2.32.56-1, glew 2.2.0-7, mesa 25.0.5-1, and gcc 15.1.1+r7+gf36ec88aa85a-1.
  • Ubuntu 25.04 (Plucky Puffin) Linux ubuntu 6.14.0-15-generic x86_64 using libsdl2-dev 3.32.2+dfsg-2, libglew-dev 2.2.0-4build1, mesa 25.0.3-1ubuntu2, and gcc 14.2.0

You need SDL, GLEW, a C++ compiler (such as GCC g++), and a compatible OpenGL graphics driver stack.

For example, to install required software on Ubuntu 25.04 (Plucky Puffin):

apt install build-essential libsdl2-dev libglew-dev

To use the Linux Makefile (./Makefile) just run 'make' to compile and 'make run' to run in this directory.

CONTROLS:

SPACE - pause/unpause A - speed up (earth) Z - slow down (earth) S - speed up (moon) X - slow down (moon) - rotate camera right - rotate camera left - rotate camera up - rotate camera down ESCAPE - quit program

FEATURES:

  • camera controls
  • Phong lighting, diffuse and specular
  • yellowish light source from the sun in the middle
  • small blue light source that rotates around mercury
  • clouds floating around earth (alpha blended transparency + floating above surface with additional model)
  • additional planets
  • textures on all planets
  • lighting works with textures (diffuse)

ACKNOWLEDGEMENTS:

for learning materials: learnopengl.com for cloud textures: https://opengameart.org/content/clouds-with-transparency for mercury, mars, venus textures: https://www.solarsystemscope.com/textures/