Skip to content

boingboomtschak/falling-sand-cubed

Repository files navigation

falling-sand-cubed

A 3D falling sand game, written in OpenGL for a Computer Graphics class project.

Intended final use is to operate upon the sand grid using a compute shader, which subdivides it into configurably-sized columns to operate on. In the initial stages, the grid will be using a CPU-managed render technique (manipulating uniforms to transform a voxel model), but eventually it is planned to use the tessellation and geometry shaders in order to generate the necessary geometry to render in the fragment shader.

Logic for particles follows the standard rules of "falling sand" or "powder" type games.

Downloads

Pre-built downloads can be found in the Releases section of the repo.

To download and build the project yourself, the included .sln file should work with Visual Studio 2019 (or 2022, as that's what we use to develop), and requires:

  • Windows 64-bit
  • A GPU with support for at least OpenGL 4.3
  • Visual C++ Runtime (should be included in your Visual Studio installation)

Any issues doing so can be reported in the Issues section.

Demo

Short video of basic functionality:

cxI3J6vMSG.mp4

Screenshot of some UI elements

UI element demo

About

A 3D falling sand game, written in OpenGL

Resources

Stars

Watchers

Forks

Packages

No packages published