Other

voxelforge

Browser voxel engine (WebGL2, WASM)

An engine for a world built from cubic blocks (voxels) that you can play in the browser. WebGL2 draws the picture, the code runs as WebAssembly, and tests check the world's logic.

voxelforge

About the project

voxelforge is a voxel engine with a playable browser world: the renderer runs on WebGL2 and WASM, and the simulation core builds natively. A voxel is the 3D counterpart of a pixel, a cubic block the whole game world is made of. WASM (WebAssembly, the format browsers use to run compiled code) lets the engine run on a web page, while the core, built as an ordinary program, can be checked without a graphics card, hence the dense test coverage.

The challenge

A voxel engine has to draw the world fast and simulate it correctly at the same time, and a bug in either is easy to miss. Logic tangled up with the renderer cannot be checked without a graphics card, so the simulation core was separated from it.

What we did

  1. 01

    A playable voxel world that runs in a browser tab

  2. 02

    A renderer on WebGL2, running in the browser as WASM

  3. 03

    A simulation core as a separate part, independent of rendering

  4. 04

    A native build of the core, so tests run without a GPU

  5. 05

    Dense test coverage of the core

Related projects

Describe your project.

A free quote comes back within an hour during working hours.

Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.