3D visualisation of Metaballs (OpenGL)
- Install Cmake (minimum version 3.12)
apt install cmake
- Install GLEW
apt install glew
- Install SDL2 (for example version 2.0.16)
apt install sdl2
- Clone repository
git clone https://github.com/SBOne-Kenobi/Metaballs3D.git
- Build project with cmake
- Create build-directory
- Configure:
cmake ..
- On Windows:
- Configure build with
-DGLEW_ROOT="<PATH TO GLEW>" -DSDL2_ROOT="<PATH TO SDL2>"
- Copy glew32.dll SDL2.dll libs to build-directory of project
- Also need to build with Visual Studio toolchain on Windows (and install libs also for this toolchain)
- Configure build with
- Build:
cmake build .
- Run
./Metaballs3D
- Arrows to rotate scene
- WS to move forward and backward
- Space to pause graph
- Left ctrl and left alt to switch polygon mode
- 1 and 2 to turn on/off grid and isolines
- Whell on mouse to change detalisation of grid
- Wheel + left shift to change number of isolines
- Mouse left click creates metaball
- Mouse right click delete metaball
- Video and screenshot