- Updated: December 16, 2025
- 6 min read
Introducing Bonsai: A New Voxel Engine for UBOS
Bonsai is a lightweight, open‑source voxel engine that enables game developers and 3D graphics enthusiasts to generate and render massive procedural worlds entirely on the GPU, with a maximum size of roughly one billion blocks.
Bonsai Voxel Engine: A Quick Introduction
First released by the Bonsai GitHub repository, the engine has quickly become a reference point for developers seeking a minimal‑yet‑powerful solution for voxel‑based terrain generation. Built from the ground up in C/C++, Bonsai embraces the philosophy of “simplicity with scale”: a tiny codebase that can still render worlds as large as the distance from Earth to the Moon—over 2600 times—in every direction.
Because all terrain generation runs on GLSL shaders, any visual effect you can code in a shader can become part of the world‑building pipeline. This makes Bonsai an ideal sandbox for experimenting with noise functions, erosion simulations, and custom biome logic without the overhead of a full‑blown game engine.
Overview of the Bonsai Project
Purpose and Philosophy
Bonsai started as a personal learning project, but its evolution reflects a broader trend: developers want tools that are both lightweight and extensible. The engine’s name hints at its design goals—just as a bonsai tree is carefully pruned to reveal its essence, Bonsai trims away unnecessary abstractions while preserving the core power of voxel rendering.
The engine is deliberately open source under the permissive WTFPL license, encouraging anyone to fork, modify, or embed it in commercial products without legal friction.
Core Architecture
At its heart, Bonsai consists of three tightly coupled subsystems:
- Renderer: Deferred shading with HDR, order‑independent transparency, and a full suite of post‑processing effects (bloom, SSAO, etc.).
- Terrain Generator: GPU‑driven procedural generation using a library of 1D, 2D, and 3D noise functions, fully configurable via GLSL brush shaders.
- Editor & CSG Tools: Real‑time, SDF‑based world editing that supports primitive shapes, brush‑layering, and instant hot‑reloading of shader code.
This separation allows developers to replace or extend any component without recompiling the entire engine, a design choice that aligns well with modern modular development practices.
Key Features and Roadmap Highlights
The current pre‑alpha release (2.0.0‑prealpha‑rc0) already packs a surprising amount of functionality. Below is a MECE‑structured snapshot of what’s available today and what’s on the horizon.
Core Feature Set
- Deferred shading pipeline with HDR lighting.
- Order‑independent transparency and bloom effects.
- Screen‑Space Ambient Occlusion (SSAO) and shadow mapping.
- Async job system for multi‑threaded terrain generation.
- GPU‑based procedural terrain generation using custom GLSL shaders.
- Built‑in library of noise functions (Perlin, Simplex, Worley, etc.).
- CSG‑style editing with SDF brushes and primitive shapes.
- Performance profiler with manual instrumentation and memory tracking.
Roadmap to v2.0.0
- Renderer Enhancements: Screen‑Space Reflections (SSR), Temporal Anti‑Aliasing (TAA), and real‑time water simulation.
- Advanced Terrain Features: Erosion simulation, biome generation, and isotropic surface meshing.
- Asset Pipeline: Support for Minecraft Anvil (MCA) imports, audio decoders, and procedural sound generation.
- Optimization Targets: GPU‑based hashing, low‑discrepancy sampling, and octree‑based sparse voxel storage.
- Editor UI: Layer‑based brush GUI, real‑time preview of shader changes, and drag‑and‑drop asset management.
Build Instructions Summary
Getting Bonsai up and running is straightforward for developers comfortable with a command‑line environment. Below is a concise guide that covers the essential steps.
Prerequisites
- Clang++ ≥ 18.1 (or a compatible C++ compiler).
- Standard system headers (C runtime library is the only external dependency).
- Git for cloning the repository.
- OpenGL‑compatible graphics driver (Windows or Linux).
Step‑by‑Step Build Process
- Clone the repository:
git clone https://github.com/scallyw4g/bonsai.git && cd bonsai - Initialize submodules (if any):
git submodule update --init --recursive - Run the provided
make.shscript to compile the engine:./make.sh - After a successful build, launch the editor:
./bin/bonsai_editor - Load one of the pre‑built example worlds from the
examples/directory or start a fresh terrain using the built‑in brush system.
For developers who prefer pre‑compiled binaries, the UBOS news page provides direct download links for Windows and Linux builds.
Community Activity and Contribution Stats
Despite its niche focus, Bonsai has cultivated a vibrant community of contributors, testers, and hobbyists.
GitHub Metrics (as of Dec 2025)
- Stars: 610
- Forks: 28
- Contributors: 2 core maintainers (scallyw4g and Jesse Hughes) with occasional community PRs.
- Commits: 3,925 total commits across the repository.
- Releases: 36 releases, the latest being
v2.0.0‑alpha‑rc4(Dec 12, 2025).
Community Channels
Most real‑time discussions happen on the official Discord server, where developers share custom shaders, report bugs, and vote on roadmap items. The UBOS partner program also lists Bonsai as a featured open‑source project, providing additional exposure to enterprise users.
Generated Illustration of the Bonsai Engine
The following image was generated using UBOS’s AI image generation capabilities to visualize the engine’s voxel terrain pipeline. It highlights the flow from shader‑based noise generation to final deferred rendering.
Illustration created with the AI Image Generator template from the UBOS marketplace.
External Resources
For the most up‑to‑date source code, documentation, and issue tracker, visit the official repository:
Related UBOS Resources for Game Developers
While Bonsai handles low‑level voxel rendering, UBOS offers a suite of complementary tools that can accelerate the entire development pipeline.
- UBOS homepage – Overview of the platform and its AI‑first approach.
- UBOS platform overview – Learn how the platform integrates with custom engines like Bonsai.
- AI marketing agents – Automate promotion of your voxel games.
- UBOS for startups – Funding‑friendly plans for indie developers.
- UBOS solutions for SMBs – Scalable hosting for multiplayer voxel worlds.
- Enterprise AI platform by UBOS – Enterprise‑grade analytics for large‑scale voxel simulations.
- Web app editor on UBOS – Build web‑based level editors that talk to Bonsai via API.
- Workflow automation studio – Automate asset pipelines from texture generation to deployment.
- UBOS pricing plans – Choose a plan that matches your project budget.
- UBOS portfolio examples – See real‑world projects that combine AI and voxel tech.
- UBOS templates for quick start – Jump‑start your game with pre‑built templates.
- AI SEO Analyzer – Optimize your game’s landing page for search.
- AI Article Copywriter – Generate blog posts about your voxel game automatically.
- AI Video Generator – Create promotional videos from in‑engine footage.
- AI Chatbot template – Add in‑game support bots powered by ChatGPT.
Conclusion & Call‑to‑Action
For developers who crave a lean, GPU‑centric voxel engine that scales to planetary dimensions, Bonsai delivers a compelling mix of performance, flexibility, and open‑source freedom. Its active community, clear roadmap, and seamless integration possibilities with UBOS’s AI‑driven toolchain make it a strategic choice for both indie studios and larger teams.
Ready to experiment? Clone the repo, fire up the editor, and start sculpting worlds that stretch from Earth to the Moon. And when you’re ready to market your creation, leverage UBOS’s AI marketing agents and template marketplace to get visibility fast.
Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.