Skip to content
DrShahinsteinPublic

About

3d solar system simulator with OpenGL

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Solarsim

3D solar system simulator using OpenGL for graphics.

Dependencies

Get meson first.

Linux

=> pacman

$ sudo pacman -S mesa libx11 libxi libxrandr libxinerama libxcursor \
                 pkgconf base-devel

=> apt

$ sudo apt install libgl1-mesa-dev libgl-dev \
                   libx11-dev libxi-dev libxrandr-dev libxinerama-dev \
                   libxcursor-dev build-essential pkg-config

=> dnf

$ sudo dnf install mesa-libGL-devel \
                   libX11-devel libXi-devel libXrandr-devel \
                   libXinerama-devel libXcursor-devel \
                   gcc-c++ pkgconf-pkg-config ninja-build

Macos

Install the Xcode command line tools, then:

$ brew install meson ninja pkg-config

Windows

Make sure you have meson installed and you are building from w64devkit terminal. That is also what I did in my case for Windows which was easy enough. Have no knowledge about msys2 stuff.

Build

$ ./build.sh
$ ./build.sh --run
$ meson test -C build

Screenshot

Image

Black Holes

blackholes.mp4

Keys

Key / Input Action
WASD Move camera horizontally
SPACE Move camera upward
LSHIFT Move camera downward
ESC Toggle mouse capture and GUI visibility
R Reset simulation
B Add a custom celestial body at the cursor
P Toggle pause/resume simulation
C Remove last celestial body

License

MIT

About

3d solar system simulator with OpenGL

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages