Skip to content

A series of dithering algorithms implemented into a minecraft clone

Notifications You must be signed in to change notification settings

MartensCedric/Pointcraft

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PointCraft

A Floyd-Steinberg dithering algorithm implemented into a minecraft clone

This repository is a fork of glCraft

Screenshots

House House2

Building the project

  • How to build it in CLion

    • Clone the repository
    git clone --recursive https://github.com/MartensCedric/PointCraft.git
    • Open it in CLion and press the green magic button.
  • How to build it using CMake

    • 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>

Features

  • 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.
  • Controls

    • Left Click to break a block
    • Middle Click to pick a block
    • Right Click to place a block
    • WASD to move around
    • Shift to descend when physics is off
    • Space to ascend when physics is off, or jump when physics is on
    • Ctrl to go faster
    • Esc to open the menu

About

A series of dithering algorithms implemented into a minecraft clone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 73.3%
  • Python 13.2%
  • GLSL 11.2%
  • CMake 1.2%
  • C 1.1%