A Floyd-Steinberg dithering algorithm implemented into a minecraft clone
This repository is a fork of glCraft
-
- Clone the repository
git clone --recursive https://github.com/MartensCedric/PointCraft.git
- Open it in CLion and press the green magic button.
-
- Clone the repository
git clone --recursive https://github.com/MartensCedric/PointCraft.git
- Build the project the build_type can be either Release or Debug
cd PointCraft mkdir build cd build cmake -DCMAKE_BUILD_TYPE=<build_type> .. cmake --build .
- Run the game on Linux with an optional save to load:
./point_craft <saved-world.glc>
- Or on Windows with an optional save to load
point_craft.exe <saved-world.glc>
-
Rendering
- An implementation of the Floyd-Steinberg Dithering algorithm was used See Wikipedia.
- The implementation is unfortunately on the CPU since the algorithm cannot be run in parallel due to the sequential requirements.
- A parameter called
diffusion_multiplier
is available to multiply the Floyd-Steinberg fractions.
-
Left Click
to break a blockMiddle Click
to pick a blockRight Click
to place a blockWASD
to move aroundShift
to descend when physics is offSpace
to ascend when physics is off, or jump when physics is onCtrl
to go fasterEsc
to open the menu