Know any voxel graphics C++ libraries?

Ignacio Contreras Pinilla picture Ignacio Contreras Pinilla · Nov 5, 2011 · Viewed 14.7k times · Source

So, I'm looking for a voxel graphic engine with C++ libraries (game oriented). Just for fun, it would be the first time I use a graphic library, so it doesn't have to be very complex or powerful, just easy to understand.

Answer

Jeroen Baert picture Jeroen Baert · Sep 25, 2012

Bear in mind that voxels are just a concept. There are several ways of handling them as data, and several ways of visualizing them (extract geometry, raycasting, ...).

It's a data point in a fixed-spaced grid, that's it. What this point represents or which geometric primitive you associate with it, that's totally implementation-specific. People usually visualize them as cubes occupying the entire cell in the fixed space grid, that's why you associate them with cubes.

The most famous/popular voxel-based application, Minecraft, visualizes them using the standard rasterization pipeline as cubes centered on a grid. (Academic) Systems like GigaVoxels perform ray-tracing into a Sparse Voxel Octree structure to generate images.

I've encountered the following voxel-oriented libraries:

And here's a reddit post with 20 years of voxel engine code: https://www.reddit.com/r/VoxelGameDev/comments/3fvjb4/20_years_of_voxel_engines_source_code_included/