Whitepaper · October 2026 · pre-release

Margo Voxel

A clean-room voxel editor for the browser and Windows, built on Margo Engine, with a progressive WebGPU path tracer and the voxel world and multiplayer packages underneath it.

99.3-99.97%of pixels within 3/255 of MagicaVoxel's own render, six default-lit .vox scenes, black-box comparisondocs/parity/magicavoxel-parity.md (app)
72 / 72denoiser quality gates passed, measured against raw output at the same sample countdocs/verification.md
2048voxels per axis in one traced model, given as sparse blocksvoxel-pathtracer README
900bot players held at 20 ticks/s by one voxel-net server on a spread-out mapdocs/voxel-net-capacity-2026-10-21.md

Where it stands today

  • Not released. A Windows portable build exists but is unsigned and unpublished, the source repository is private, and there is no hosted version yet.
  • One platform verified. Windows 11, Edge 155 and an NVIDIA RTX A6000, plus a Ryzen 9 9950X for the CPU benchmarks. macOS, Linux, phones and other GPUs are not verified.
  • Parity is not complete. The MagicaVoxel comparison still has open items (section 5), and we do not claim our denoiser beats Intel's OIDN.
  • Dated checks. The app's test receipts are from 2026-10-21. The app has had commits since then with no recorded re-run.

0Abstract

Margo Voxel Studio is a voxel editor that runs in a desktop browser with WebGPU and as a Windows desktop app from the same production build. Files and recovery data stay on the local device. It is written clean-room: MagicaVoxel, the most widely used free voxel editor, serves only as a black box we test against, and none of its program files, shaders or bundled models are part of the project.

The app owns its interface, documents and undo history. Everything that is engine work (voxel grids and brushes, picking, meshing, the .vox codec, glTF export, lightmap baking, and a progressive path tracer) comes from Margo Engine's public packages, consumed as 19 unmodified, hash-pinned archives. This paper describes that split, the path tracer and its denoiser, how closely it reproduces MagicaVoxel's renders of the same files, how exports fare in Godot, Unity and Unreal, and what is still open. Every number names its source file. The engine itself is described in the Margo Engine whitepaper.

1The editor

Modeling
Attach, erase, paint, pick and select; voxel, face, box, line, sphere and flood brushes; XYZ mirroring; undo and redo; clipboard; shrink, invert, wrap and repeat, nearest-neighbour scaling, arbitrary rotation, directional morphology and enclosed-air fill. Palette-index and six-connected selection with replace, add and subtract.
Scenes
Named objects, parent groups, coloured layers, local transforms and pivots. Instances from imported .vox scenes share editable geometry.
Animation
Step and linear transform keys, independent geometry frames, per-object clocks, scrubbing and playback, and animated GLB export. An 18-joint humanoid skeleton generator exports a real glTF skin as a starting point; bone animation and production weight painting are open.
Palettes
Independent indexed palette banks per model, live grading that keeps the source colours, presets and shading ramps.
Procedural
A cancellable voxel-expression language with numeric parameters, deterministic noise and iteration snapshots, applied as one undo step. GPU shader tools and authored surface graphs use Margo Engine's own APIs. Original templates include six articulated showcase scenes (a citadel, a dragon, an interceptor with an opening canopy, an industrial mech and others).
Files
Native .margo projects with crash recovery, .vox import and export, sprite-sheet slices from PNG, WebP or JPEG, PNG viewport capture.
Output
Worker-side GLB export with greedy meshing, a palette atlas or vertex colours, optional corner ambient occlusion and crease-controlled normals; OBJ; path-traced PNGs, frame sequences, turntables and sprite-atlas ZIPs, all cancellable.
README.md (app) · docs/editing-animation-workflows.md · docs/templates.md

2How it is built

The split between app code and engine packages.

The rule that keeps the split honest: engine source is read-only for the app. When a public engine API cannot carry a feature, the app either keeps its existing behaviour frozen or disables the piece, and records it as a numbered engine gap; the fix then lands in the engine, never as a private patch. The app does not copy, extend or rebuild engine code. The engine archives are built from one engine commit and recorded with their hashes, and a check confirms all 38 import paths resolve.

At the last recorded check (2026-10-21) the app passed 615 of 615 unit tests and 54 of 54 real-Edge browser tests against the exact engine bytes it ships.

vendor/manifest.json · docs/verification.md · docs/engine-gaps.md · electron/main.cjs

3The path tracer

@margoengine/voxel-pathtracer attaches to an engine and, while enabled, replaces the frame with a path-traced image of the voxel scene through the engine camera, refining every frame up to a sample budget. Turning it off returns the raster frame bit for bit. It also renders off-screen PNGs and float images and answers ray picks against the same scene. It is written from public rendering literature, and its README cites each source.

How it works

Correctness checks

The tests compare the tracer with closed forms and with itself. Error against a 16,384-sample reference falls 0.0216, 0.0114, 0.0058, 0.0030 at 16, 64, 256 and 1,024 samples, the 1/√N rate of an unbiased estimator. A floating glass cube's shadow and caustic computed with light sampling matches the same light found by path sampling within 0.31% (IOR 1.5) and 0.40% (IOR 1.33). Equal seeds give bit-identical images.

Speed

Scene at 1920×1080, one sample per frameGPU per frameGPU memory
Material scene: 7 models, glass, metal, emitter, cloud, sun, sky, ground13.76 ms95 MiB
Same, denoised21.17-21.63 ms348 MiB
One dense 256³ terrain model, 3,967,601 voxels10.68-10.75 ms98 MiB
Same, denoised14.42-14.61 ms256 MiB
packages/voxel-pathtracer/README.md, "Measured performance" · tests/browser-check.mjs timing · RTX A6000, Edge 155, D3D12 · 2026-10-20 · median of 40 frames, two runs

At native 3840×2160 the material scene traces in 64.03 ms raw and 104.66 ms denoised, using about 380 and 1,392.5 MiB of GPU storage (the app's fixture, 2026-10-21; an engine run on a slower day recorded 68.81 and 113.44 ms). These are fixture timings, not frame-rate promises. The viewport also has a cheaper preview kernel: the first lit frame after opening a scene arrives in 0.36-0.44 s instead of the 2.1-2.8 s the full tracer's compile used to take. Run-to-run variation between days is large enough that we only compare rows from the same day.

4The denoiser

The denoiser is a classical filter, not a learned one: an edge-avoiding à-trous wavelet filter on albedo-demodulated radiance, with variance-guided luminance stops and a plane-distance geometric stop. In the viewport it accumulates over frames by reprojection and clamps history in YCoCg. At object, material and texture edges it weighs the filtered estimate against the raw mean by their estimated errors, so where the samples already resolve detail, filtering does not blur it.

The app holds it to 72 quality gates: three original 96×72 fixtures, each with an independent 65,536-sample reference, rendered at 4, 16 and 64 samples with three seeds, and scored in both linear RGB and log(1 + radiance). A gate passes when the denoised image has no overall or flat-area regression against the raw image at the same sample count, and at most 3% regression on geometry and texture edges. The thresholds and fixture hashes have not changed since they were set.

BuildGates passed
First version62 / 72
Engine commit e1c7aefa (a regression)60 / 72
Engine commit 107af4d672 / 72
Engine commit 85467ba2, the build the app ships72 / 72
docs/rendering.md · docs/verification.md · docs/progress.md (app)

On the engine's own scenes, averaged over four seeds against 131,072-sample references, it lowers RMSE 2.46x, 2.32x and 2.24x at 4, 16 and 64 samples on the material scene and 2.20x, 2.09x and 2.03x on a caustic scene. Edge pixels gain less. While the camera moves, newly uncovered surfaces are noisy for a few frames. These gates compare against raw output, not against Intel's OIDN, so they say nothing about how we compare with it.

5Opening MagicaVoxel files

People who already have a library of .vox files should be able to open them and see what they saw before. So the tracer has an import look that maps a .vox file's render settings onto its own, and we measure how close that gets.

Method

MagicaVoxel 0.99.7.2 is treated strictly as a black box. We write our own .vox scenes with our own writer of the published format (including the default render settings, which since 2026-10-20 come from our writer, not from a file MagicaVoxel saved). MagicaVoxel renders them through its interface and we save its snapshots; we render the same files and score the two images pixel by pixel. Its code, shaders and configuration were never read. Its renders stay on our machine and are not redistributed, so anyone checking these numbers needs their own copy of MagicaVoxel and our scene scripts.

How close

Comparison, 960×800Pixels within 3 of 255 levels
Six perspective scenes, default lighting: diffuse, metal 0.2, metal 0.8, glass, emitter, cloud99.97, 99.94, 99.85, 99.3, 99.94, 99.93%
Calibration boards: diffuse, metal, plastic, sun, sky, exposure, tone curve, emittersevery tile within 3 levels
Atmosphere, scene lit at sun 50°, 20° and 5°99.98, 99.89, 99.81%
Looking into a low sun (5°)98.66% (100% within 6 levels)
Orthographic and isometric cameras100%
docs/parity/magicavoxel-parity.md (app), "Current scores" · RTX A6000, Edge 155 · 2026-10-20

Still open: some tiles next to subsurface blocks under the sun are 7-16 levels off, and subsurface is fitted at one density only; glass over a lit floor comes out 1-2 levels bright; grid lines match on 92.7-94.6% of pixels; depth of field never showed in MagicaVoxel's snapshots, so it is not compared.

How fast

Ours renders each of the six scenes at 960×800 and 1,024 samples in 1.7-2.2 s on the RTX A6000. MagicaVoxel could only be timed by stopwatch on its progress bar, so we publish no speed comparison.

docs/parity/magicavoxel-parity.md (app), "Current scores"

Where MagicaVoxel is ahead: it is a complete, mature, free editor, and its renderer has years of use behind it. We have compared on one PC and one browser.

File limits

The engine's codec reads and writes versions 150 and 200 of the published format, and an unedited file writes back byte for byte. On export the app merges palette banks into one .vox palette when the occupied colours fit in 255 slots, splits large models into occupied buckets of at most 256 per axis, and refuses what .vox cannot hold (per-object clocks, procedural graphs, placements that are not whole-cell moves and quarter turns) rather than rounding it into something different.

6Into game engines

GLB export uses greedy meshing with a power-of-two palette atlas and nearest filtering (or vertex colours), optional corner ambient occlusion and crease-controlled normals, and collision naming for Godot and Unreal. The six showcase families export to 18 GLBs with zero Khronos validator errors. We then import them into the engines themselves, scripted, and the table says what each run does and does not prove.

EngineResultWhat it proves
Unity 6000.6.7f1, glTFast 6.20.0134 / 134Editor import with offscreen shader checks, point/clamp sampling and all four collision modes. Needs our two helper scripts. Not a standalone-player test.
Godot 4.7.2, base imports85 / 85 configured; 83 / 85 vanillaHeadless editor import: resources, colliders, hierarchy, transforms. The two vanilla misses are importer vertex-albedo flags. No rendered-pixel check.
Godot 4.7.2, animation62 / 62 compatibility mode; 46 / 62 standardThe 16 standard-mode differences are combined-TRS cases traced to an upstream Godot issue.
Godot, showcase scenes1,562 import and 770 saved-scene checksZero failures on the six showcase families.
Unreal Engine, Interchange81 import, 37 reload, 20 scene checksHidden CPU-only runs with no GPU; physics simulation and rendered pixels not tested.
docs/verification.md · docs/godot-validation.md · integrations/README.md (app) · 2026-10-21

The runs also found importer behaviour worth knowing: glTFast lowers emissive strength from 1.4 to 1.0, Godot ignores glass transmission so glass looks opaque, and Unreal's Nanite fallback drops some triangles of one showcase model unless Nanite is turned off for it.

7Voxel worlds and multiplayer

The same engine has packages for block worlds, separate from the editor: @margoengine/voxel stores 32×32×32 palette chunks with a light byte per cell, a block-type registry and a chunked world with dirty tracking, and adds meshing, lighting, streaming and rendering as separate entries. Generation and meshing run in workers.

Sandbox, render distance8 chunks16 chunks
Chunks loaded / with faces1,379 / 6025,579 / 2,435
Quads on the GPU1.18 M4.84 M
Time to fill the view1.06-1.22 s3.59-3.67 s
Frame CPU after filling, median / p950.7 / 1.1 ms1.7 / 2.2 ms
Frame CPU p95 flying at 11 blocks/s while streaming3.7 ms5.0 ms
examples/package-benchmarks/results/voxel-sandbox-bench.json · RTX A6000 desktop, Edge 155, 1920×1080, 4x MSAA, quiet-gated, seed 1 · laptops and phones not measured

@margoengine/voxel-net is an authoritative Node server on a hand-written WebSocket, a browser client with prediction and correction, and headless bots for load tests. One server process kept 20 ticks per second with 95% of ticks inside the 50 ms budget for 900 players spread over a map (1,000 went over) and 350 crowded in one spot where everyone sees everyone (400 went over). At that point the server used about one CPU core. Traffic was 13.7 Mbit/s for the 900 spread players, and a block edit reached other players in 31-77 ms median.

docs/voxel-net-capacity-2026-10-21.md · packages/voxel-net/bench/results.json · Ryzen 9 9950X, Windows 11, Node 26.12

Conditions matter here: server and bots ran on one PC over loopback with no latency or loss, the bots do not render, and the prototype has no accounts, persistence or TLS. The multiplayer package is not part of the editor.

8Limits and sizes

LimitValue
Dense models in the editor1-1,024 per axis, 16,777,216 cells shared across base models and animation frames
Sparse models in the editoroccupied chunks only, under a separate 128 MiB document cap: bounded authoring, not infinite streaming
One traced modelup to 2048 per axis; 65,535 instances; 256 area lights
Materials in the tracer255 per table, up to 4,096 tables per scene
Animation4,096 keys per model, 16,384 per document; frames 0 to 2,147,483,647
Render outputup to 8,192 px per axis in the app, 1,024 frames per sequence
GLB exportrefused above 1 million greedy quads
GPU memorythe tracer keeps each storage buffer inside WebGPU's default 128 MiB binding; native 4K, raw and denoised, fits on the tested GPU
README.md · docs/io-compatibility.md · docs/editing-animation-workflows.md (app) · packages/voxel-pathtracer/README.md
Engine entryRawGzip
@margoengine/voxel-pathtracer185,35165,421
@margoengine/voxel-edit (root entry)20,2947,533
@margoengine/voxel (root entry)13,2724,808
@margoengine/voxel/render52,29918,931
@margoengine/voxel-net client / server14,022 / 27,2845,276 / 10,483
margoengine examples/package-benchmarks/results/entry-sizes.json · commit 5eb44eca · min + gzip, other packages external

The Windows portable build is about 102.7 MB.

9What is not done

10Reproduce

In the app repository:

npm ci
npm test                    # unit tests
npm run test:browser        # real-Edge browser suite
npm run test:denoiser       # the 72 denoiser gates (dev server running)
npm run test:godot          # Godot imports, headless
npm run test:unity          # Unity Editor imports (after test:unity:prepare)
npm run desktop:build       # the Windows portable

In the engine repository, the MagicaVoxel calibration scripts are in packages/voxel-pathtracer/tests/magicavoxel/, the tracer timings in packages/voxel-pathtracer/tests/browser-check.mjs, and the multiplayer benchmark in packages/voxel-net/bench/.