In contrast to pixels and voxels, polygons are often explicitly represented by the coordinates of their vertices (as points). A direct consequence of this difference is that polygons can efficiently represent simple 3D structures with much empty or homogeneously filled space, while voxels excel at representing regularly sampled spaces that are non-homogeneously filled.
Voxels are frequently used in the visualization and analysis of medical and scientific data (e.g. GIS). Some volumetric displays use voxels to describe their resolution. For example, a cubic volumetric display might be able to show 512×512×512 voxels.
The word voxel originated analogously to the word "pixel", with vo representing "volume" and el representing "element"; similar formations with el for "element" include the words "pixel" and "texel".
A volume described as voxels can be visualized either by direct volume rendering or by the extraction of polygon iso-surfaces that follow the contours of given threshold values. The marching cubes algorithm is often used for isosurface extraction, however other methods exist as well.
Another technique for voxels involves raster graphics where one simply raytraces every pixel of the display into the scene, tracking an error term to determine when to step. A typical implementation will raytrace each pixel of the display starting at the bottom of the screen using what is known as a y-buffer. When a voxel is reached that has a higher y value on the display it is added to the y-buffer overriding the previous value and connected with the previous y-value on the screen interpolating the color values. There is a major downside to voxel rasterization when transformation is applied which causes severe aliasing. The advantage was the ability to rasterise using cheap integer calculations on a CPU without hardware acceleration.
Outcast, and other 1990s video games employed this graphics technique for effects such as reflection and bump-mapping and usually for terrain rendering. Outcast's graphics engine was mainly a combination of a ray casting (heightmap) engine, used to render the landscape, and a texture mappingpolygon engine used to render objects. The "Engine Programming" section of the games crs in the manual has several subsections related to graphics, among them: "Landscape Engine", "Polygon Engine", "Water & Shadows Engine" and "Special effects Engine". Although Outcast is often cited as a forerunner of voxel technology, this is somewhat misleading. The game does not actually model three-dimensional volumes of voxels. Instead, it models the ground as a surface, which may be seen as being made up of voxels. The ground is decorated with objects that are modeled using texture-mapped polygons. When Outcast was developed, the term "voxel engine", when applied to computer games, commonly referred to a ray casting engine (for example the VoxelSpace engine). On the engine technology page of the game's website, the landscape engine is also referred to as the "Voxels engine". The engine is purely software-based; it does not rely on hardware-acceleration via a 3D graphics card.
John Carmack also experimented with Voxels for the Quake III engine. One such problem cited by Carmack was the lack of graphics cards designed specifically for such rendering requiring them to be software rendered.
A voxel represents a single sample, or data point, on a regularly spaced, three-dimensional grid. This data point can consist of a single piece of data, such as an opacity, or multiple pieces of data, such as a color in addition to opacity. A voxel represents only a single point on this grid, not a volume; the space between each voxel is not represented in a voxel-based dataset. Depending on the type of data and the intended use for the dataset, this missing information may be reconstructed and/or approximated, e.g. via interpolation.
The value of a voxel may represent various properties. In CT scans, the values are Hounsfield units, giving the opacity of material to X-rays.:29 Different types of value are acquired from MRI or ultrasound.
Voxels can contain multiple scalar values, essentially vector (tensor) data; in the case of ultrasound scans with B-mode and Doppler data, density, and volumetric flow rate are captured as separate channels of data relating to the same voxel positions.
While voxels provide the benefit of precision and depth of reality, they are typically large data sets and are unwieldy to manage given the bandwidth of common computers. However, through efficient compression and manipulation of large data files, interactive visualization can be enabled on consumer market computers.
Common uses of voxels include volumetric imaging in medicine and representation of terrain in games and simulations. Voxel terrain is used instead of a heightmap because of its ability to represent overhangs, caves, arches, and other 3D terrain features. These concave features cannot be represented in a heightmap due to only the top 'layer' of data being represented, leaving everything below it filled (the volume that would otherwise be the inside of the caves, or the underside of arches or overhangs).
Vangers is a computer game uses voxels for its two-level terrain system.
Vox, released in 2012, is a voxel based exploration/RPG game focused on player generated content.
Vox-L is a voxel-based video game engine that is being developed and published by Multi-Dimensional Games.
Voxatron, a computer game produced by Lexaloffle, is composed and generated fully using voxels.
Werewolf is a computer game made by Novalogic that used voxel-based rendering technology. It was originally bundled and shipped with the Comanche 2 game although they were two separate games.
Worms 4: Mayhem uses a voxel-based engine to simulate land deformation similar to the older 2D Worms games.
While scientific volume visualization does not require modifying the actual voxel data, voxel ors can be used to create art (especially 3D pixel art) and models for voxel based games. Some ors are focused on a single approach to voxel ing while others mix various approaches. Some common approaches are:
Slice based: The volume is sliced in one or more axes and the user can each image individually using 2D raster or tools. These generally store color information in voxels.
Sculpture: Similar to the vector counterpart but with no topology constraints. These usually store density information in voxels and lack color information.
Building blocks: The user can add and remove blocks just like a construction set toy.
Voxel ors for games
Many game developers use in-house ors that are not released to the public, but a few games have publicly available ors, some of them created by players.
Atomontage Engine is a professional voxel engine also including physics engine.
There are a few voxel ors available that are not tied to specific games or engines. They can be used as alternatives or complements to traditional 3D vector modeling.
A generalization of a voxel is the toxel, or temporal voxel. This is used in the case of a 4D dataset, for example, an image sequence that represents 3D space together with another dimension such as time. In this way, an image could contain 100×100×100×100 doxels, which could be seen as a series of 100 frames of a 100×100×100 volume image (the equivalent for a 3D image would be showing a 2D cross section of the image in each frame). Although storage and manipulation of such data requires large amounts of memory, it allows the representation and analysis of spacetime systems.
^Chmielewski, Sz., Tompalski, P. (2017). "Estimating outdoor advertising media visibility with voxel-based approach". Applied Geography, 87:1–13 doi:10.1016/j.apgeog.2017.07.007. Preprint download: "Archived copy". Archived from the original on 2017-10-02. Retrieved 2017-10-02.CS1 maint: archived copy as title (link)
^Hickson, Steven; Birchfield, Stan; Essa, Irfan; Christensen, Henrik (2014). "Efficient hierarchical graph-based segmentation of RGBD videos". Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. arXiv:1801.08981. doi:10.1109/CVPR.2014.51.