Skip to content

DrShahinstein/solarsim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solarsim

3D solar system simulator using OpenGL for graphics.

Dependencies Installation

Get meson first.

Linux

=> pacman

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

=> apt

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

=> dnf

$ sudo dnf install glfw-devel mesa-libGL-devel \
                   libX11-devel libXi-devel libXrandr-devel \
                   libXinerama-devel libXcursor-devel

Macos

$ brew install gcc pkg-config glfw glm

Windows

Just 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

Screenshot

Image

Black Holes

preview.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

About

3d solar system simulator with OpenGL

Topics

Resources

Stars

Watchers

Forks

Languages