Skip to content

ZhanyuGuo/three_body_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three-body Simulator

Author: Zhanyu Guo

demo.gif

Reference

learnopengl-cn

Sources

See in src/*.

Build

Cmake

sudo apt install cmake build-essential

GLFW

sudo apt install git
git clone https://github.com/glfw/glfw.git

or download from https://www.glfw.org/.

cd glfw/
sudo apt install libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
mkdir build
cd build/ && cmake .. && make
sudo make install

OpenGL

sudo apt install freeglut3-dev libxxf86vm-dev libassimp-dev

Finally

git clone https://github.com/ZhanyuGuo/three_body_simulator.git
cd three_body_simulator/
mkdir build
cd build/ && cmake .. && make
./three_body_simulator

Update Log of Project

V1.5

  • Add mode selection.

  • Add more situations.

  • Complete the logic.

V1.4

  • Add light cube for point lights.

  • Increase camera's speed.

V1.3

  • Add self-rotation.

V1.2

  • Use low resolution textures to save memory.

  • Enable Multisample Anti-aliasing (MSAA).

  • Enable Gamma Correction.

V1.1

  • Add diffuse light textures.

  • Add specular light textures.

  • Use Blinn-Phong instead of Phong.

V1.0

  • Apply a skybox.

  • Add light.

Before V1.0

  • From single body to multiple bodies.

  • Build a full physical system based on differential equations.

  • Generate bodies randomly or specially.

  • Visable pure-color bodies and trajectory.

  • Build an FPS camera, motion controlled by WASD and view by mouse.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages