Eric Lengyel's Transvoxel Algorithm Seals the Cracks in Voxel Terrain

The Transvoxel Algorithm

Voxel terrain lets games build caves, overhangs, and arches, but rendering it at multiple resolutions leaves visible cracks and holes along block boundaries. Eric Lengyel's Transvoxel Algorithm, invented in 2009 and shipped in the C4 Engine, inserts special transition cells between full- and half-resolution data. Instead of roughly 1.2 million cases, it handles just 512, which collapse into 73 equivalence classes, and it needs only local voxel data, so dynamic terrain can be retriangulated in real time. The algorithm is patent-free, and its look-up tables are on GitHub.

Instead of considering all possible combinations of voxel state for both the full-resolution and half-resolution data at a transition boundary, which would require that approximately 1.2 million cases be handled, we consider only nine samples of the high-resolution data.
  1. mkl

    Site appears hugged to death (a short page of static content...). Here it is: https://web.archive.org/web/20261021150307/https://transvoxe...

  2. cubefox

    Related: the continuous mesh simplification algorithm by Federico Ponchio, which was later used by Brian Karis for Nanite in Unreal Engine 5.

    Ponchio's original 2008 dissertation where the algorithm is called "Batched Multi-Triangulation": https://vcg.isti.cnr.it/~ponchio/download/ponchio_phd.pdf

    Easier to digest short presentation slides on the algorithm, by Ponchio and colleagues: https://vcg.isti.cnr.it/Publications/2005/CGGMPS05/Slide_Bat...

    Brian Karis' 2021 Nanite presentation where he references the above: https://advances.realtimerendering.com/s2021/Karis_Nanite_SI...

  3. grg0

    The C4 engine linked from the page is a decent thing to study too.

More from this day

2026-11-22