---
title: "voxelforge: Browser voxel engine (WebGL2, WASM) | VulCode"
description: "voxelforge is a voxel engine with a playable browser world: the renderer runs on WebGL2 and WASM, and the simulation core builds natively."
url: "https://vulcode.com/en/portfolio/other/voxelforge"
lang: "en"
---

[Other](https://vulcode.com/en/portfolio/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.

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

- A playable voxel world that runs in a browser tab

- A renderer on WebGL2, running in the browser as WASM

- A simulation core as a separate part, independent of rendering

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

- Dense test coverage of the core

## Related projects

- [**gameboy-sharp** An emulator of the original Game Boy (the DMG model) written in C#. Its core does not depend on the display layer, so it can be run and checked without a window.](https://vulcode.com/en/portfolio/other/gameboy-sharp)

- [**chip8-sharp** A CHIP-8 emulator written in C# as a pure library, with no graphics layer of its own. It covers the full instruction set and is checked against the community's test ROMs.](https://vulcode.com/en/portfolio/other/chip8-sharp)

- [**vantage** A desktop app for keeping an eye on home servers (a homelab), written in C# on Avalonia. One window shows machine load, Docker containers and whether services respond.](https://vulcode.com/en/portfolio/other/vantage)

## Describe your project.

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

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)

## 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.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
