Voxel Explained
A voxel is a three-dimensional counterpart to a pixel. It represents a value on a regular grid in a three-dimensional space. Voxels are frequently used in the visualization and analysis of medical and scientific data (e.g. geographic information systems (GIS)).[1]
As with pixels in a 2D bitmap, voxels themselves do not typically have their position (i.e. coordinates) explicitly encoded with their values. Instead, rendering systems infer the position of a voxel based upon its position relative to other voxels (i.e., its position in the data structure that makes up a single volumetric image). Some volumetric displays use voxels to describe their resolution. For example, a cubic volumetric display might be able to show 512×512×512 (or about 134 million) voxels.
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.
One of the definitions is:
Voxel is an image of a three-dimensional space region limited by given sizes, which has its own nodal point coordinates in an accepted coordinate system, its own form, its own state parameter that indicates its belonging to some modeled object, and has properties of modeled region.
This definition has the following advantage. If fixed voxel form is used within the whole model it is much easier to operate with voxel nodal points (i.e. three coordinates of this point). Yet, there is the simple form of record: indexes of the elements in the model set (i.e. integer coordinates). Model set elements in this case are state parameters, indicating voxel belonging to the modeled object or its separate parts, including their surfaces.[2]
Etymology
The word voxel originated by analogy to "pixel", with vo representing "volume" (instead of pixel's "picture") and el representing "element";[3] a similar formation with el for "element" is the word "texel".The term hypervoxel is a generalization of voxel for higher-dimensional spaces.
Rendering
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.
Both ray tracing and ray casting, as well as rasterisation, can be applied to voxel data to obtain 2D raster graphics to depict on a monitor.
Incremental error rasterisation
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.[4]
Outcast, and other 1990s video games employed this graphics technique for effects such as reflection and bump-mapping and usually for terrain rendering. Outcasts graphics engine was mainly a combination of a ray casting (heightmap) engine, used to render the landscape, and a texture mapping polygon engine used to render objects. The "Engine Programming" section of the games credits in the manual has several subsections related to graphics, among them: "Landscape Engine", "Polygon Engine", "Water & Shadows Engine" and "Special effects Engine".[5] Although Outcast is often cited as a forerunner of voxel technology,[6] 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".[7] The engine is purely software-based; it does not rely on hardware-acceleration via a 3D graphics card.[8]
John Carmack also experimented with Voxels for the Quake III engine.[9] One such problem cited by Carmack was the lack of graphics cards designed specifically for such rendering requiring them to be software rendered.
Comanche was also the first commercial flight simulation based on voxel technology. NovaLogic used the proprietary Voxel Space engine developed for the company by Kyle Freeman[10] (written entirely in Assembly language) to create open landscapes.[11] This rendering technique allowed for much more detailed and realistic terrain compared to simulations based on vector graphics at that time.
Gallery
Data
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.[12] 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.
Other values may be useful for immediate 3D rendering, such as a surface normal vector and color.
Technologies to extend voxels into 4 and 5 dimensions of data are under investigation.[13]
Uses
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).
Computer games
- 3D Dot Game Heroes uses voxels to present retro-looking graphics.
- 7 Days to Die is a voxel-based open world survival horror game developed by The Fun Pimps Entertainment.
- Ace of Spades used Ken Silverman's Voxlap engine before being rewritten in a bespoke OpenGL engine.
- Amok uses voxels for its environments.[14]
- Armored Fist 3 is a computer game made by Novalogic that used voxel-based rendering technology.
- Blade Runner is a video game that used voxels to render characters and artifacts.
- Castle Story, a castle building Real Time Strategy game in development, has terrain consisting of smoothed voxels.
- Cloudpunk, a cyberpunk adventure game, is almost entirely voxel-based.
- Comanche series, a series of computer games made by NovaLogic that used the Voxel Space voxel rasterization for terrain rendering.[15]
- , and are computer games made by Westwood Studios that used voxels to render most vehicles.
- Crysis, as well as Cryengine 2 and Cryengine 3, use a combination of heightmaps and voxels for their terrain systems.
- Cube World, an action role-playing game, features procedurally generated voxel landscapes.
- Delta Force is a computer game made by Novalogic that used the in-house Voxel Space rendering engine.
- Dual Universe is a single-shard universe MMORPG game that uses voxels to build spaceships, civilizations, and space stations.
- Ensrouded is Voxel based survival RPG. Releases on Feb 2023 by Keen Games
- EverQuest Next and EverQuest Next: Landmark, cancelled MMORPGs by Sony Online Entertainment, made extensive use of voxels for world creation as well as player generated content
- Hexplore, a multi-player role playing game, uses a voxel engine allowing the player to rotate the isometric rendered playfield.
- Hytale is an upcoming RPG Sandbox voxel-based game which gets developed by Hypixel Studios and gets funded by Riot Games.
- Master of Orion III uses voxel graphics to render space battles and solar systems. Battles displaying 1000 ships at a time were rendered slowly on computers without hardware graphic acceleration.
- Medieval Engineers is the second voxel-based engineering game by Keen Software House inspired from medieval technology.
- Minecraft is a sandbox video game that uses voxels to store terrain data,[16] but does not use voxel rendering techniques. Instead it uses polygon rendering to display each voxel as a cubic "block".[17]
- Moonglow Bay is a fishing role-playing video game, released in 2021 and developed by Bunnyhug, using voxel art style.
- Miner Wars 2081 is a 6DOF open world game made by Keen Software House that uses its own VRage voxel rendering engine to let the user deform the terrain of asteroids allowing tunnels to be formed.
- Nivalis is an upcoming cyberpunk slice-of-life, set in voxel-based world, previously featured in Cloudpunk.
- No Man's Sky is a space exploration game consisting of procedurally generated star systems containing explorable planets, moons and asteroids made up of voxels. The voxel engine allows for both terrain destruction and creation.
- Outcast, is a third-person action computer game made by former Belgian video game developer Appeal,[18] with landscapes rendered by a voxel engine.
- Phase Zero is a 2002 unreleased action-shooter video game for Atari Jaguar, with landscapes rendered by the engine Voxel Space.
- Planet Coaster is a 2016 construction and management simulation developed and published by Frontier Developments which uses a voxel-based terrain editor.[19]
- Resogun is a 2013 voxel-based side-scrolling shoot 'em up video game developed by Finnish developer Housemarque.
- Roblox uses voxels for terrain, as well as for primitive global illumination and shadows.
- Robocraft, a vehicular combat game in which players build combat machines out of voxels and premade components
- Shadow Warrior and Blood use Build engine for first-person shooter game voxel rendering, instead of sprites, as an option for many of the items pickups and scenery. Duke Nukem 3D has a fan-created pack in a similar style.
- Shattered Steel featured deforming landscapes using voxel technology.
- Sid Meier's Alpha Centauri uses voxel models to render units.
- is a voxel-based sandbox MMORPG, being developed by Radiant Worlds and published by Smilegate.
- Space Engineers is a voxel-based sandbox game set in space, developed and published by Keen Software House
- Starbase, a voxel-based massively multiplayer online role-playing game set in space, being developed and published by Frozenbyte.
- StarMade, a voxel-based sandbox game set in space, developed and published by Robin "Schema" Promesberger.
- Teardown, a voxel-based game featuring fully destructible environments, developed and published by the studio Tuxedo Labs
- The Sandbox
- Trove is a voxel-based MMORPG with building elements, developed and published by Trion Worlds.[20]
- Vangers is a computer game uses voxels for its two-level terrain system.[21]
- Veloren, is an action-adventure role-playing game set in a vast fantasy world.[22]
- Vox, released in 2012, is a voxel based exploration/RPG game focused on player generated content.
- Voxatron, a computer game produced by Lexaloffle, is composed and generated fully using voxels.[23] [24]
- 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.
- uses a voxel-based engine to simulate land deformation similar to the older 2D Worms games.
- Minetest uses them for rendering nodes
Editors
While scientific volume visualization does not require modifying the actual voxel data, voxel editors can be used to create art (especially 3D pixel art) and models for voxel based games. Some editors are focused on a single approach to voxel editing while others mix various approaches. Some common approaches are:
- Slice based: The volume is sliced in one or more axes and the user can edit each image individually using 2D raster editor 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.
There are a few voxel editors available that are not tied to specific games or engines. They can be used as alternatives or complements to traditional 3D vector modeling.
Extensions
A generalization of a voxel is the toxel, or temporal voxel.[25] 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 toxels, 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.
See also
External links
Notes and References
- Chmielewski, Sz., Tompalski, P. (2017). "Estimating outdoor advertising media visibility with voxel-based approach". Applied Geography, 87:1–13 . Preprint download: Web site: Estimating outdoor advertising media visibility with voxel-based approach (PDF Download Available) . 2017-10-02 . live . https://web.archive.org/web/20171002220053/https://www.researchgate.net/publication/318744436_Estimating_outdoor_advertising_media_visibility_with_voxel-based_approach . 2017-10-02 .
- Shchurova. Catherine I.. A methodology to design a 3D graphic editor for micro-modeling of fiber-reinforced composite parts. Advances in Engineering Software. 2015. 90. 76–82. Advances in Engineering Software Volume 90, December 2015, Pages 76-82. 10.1016/j.advengsoft.2015.07.001.
- Book: Foley, James D.
. Andries van Dam . John F. Hughes . Steven K. Feiner . Computer Graphics: Principles and Practice . Addison-Wesley. 1990. 978-0-201-12110-0 . The Systems Programming Series . Spatial-partitioning representations; Surface detail . These cells are often called voxels (volume elements), in analogy to pixels. . Computer Graphics: Principles and Practice .
- Web site: Voxels. tnlc.com. live. https://web.archive.org/web/20140417001519/http://www.tnlc.com/eep/voxels.html. 2014-04-17.
- Book: Outcast manual. 1999. Infogrames. 34.
- 'Klötzchenwelten' [Worlds of little blocks] in c't Magazin issue 04/2009 . 183. Bertuch . Manfred . C't: Magazin für Computertechnik. Heise Zeitschriften Verlag GmbH & Co. KG . 2009 . Hannover. 0724-8679.
- Web site: OUTCAST – Technology: Paradise . 7 May 2006 . archive.org . dead . https://web.archive.org/web/20060507235618/http://www.outcast-thegame.com/tech/paradise.htm . 7 May 2006 .
- "Voxel terrain engine ", introduction. In a coder's mind, 2005.
- Web site: A Little Bit Of History – Next-Gen 3D Rendering Technology: Voxel Ray Casting. 21 October 2009. tomshardware.com.
- Web site: Kyle G. Freeman Inventions, Patents and Patent Applications – Justia Patents Search. justia.com. live. https://web.archive.org/web/20140201194745/http://patents.justia.com/inventor/kyle-g-freeman. 2014-02-01.
- Web site: FlightSim.Com – NovaLogic Awarded Patent For Voxel Space Graphics Engine. flightsim.com. live. https://web.archive.org/web/20150924013816/http://www.flightsim.com/vbfs/content.php?2994-NovaLogic-Awarded-Patent-For-Voxel-Space-Graphics-Engine. 2015-09-24.
- Novelline, Robert. Squire's Fundamentals of Radiology. Harvard University Press. 5th edition. 1997. .
- Web site: Society. The Optical. High-speed laser writing method could pack 500 terabytes of data into CD-sized glass disc. 2021-10-31. phys.org. en.
- Review Crew: Amok. . 93. Ziff Davis. April 1997. 53.
- Web site: A brief history of Voxel games. | DjArcas's Blog . 2013-12-18 . live . https://web.archive.org/web/20131218235557/http://projectorgames.net/blog/?p=168 . 2013-12-18 .
- Web site: Chunk format: Block format . Minecraft Wiki . 24 September 2023 . en.
- Web site: Tutorials/Units of measure: Distance . 24 September 2023 . Minecraft Wiki . en.
- Web site: Appeal S.A. - MobyGames. mobygames.com. live. https://web.archive.org/web/20141219131019/http://www.mobygames.com/company/appeal-sa. 2014-12-19.
- News: Zak. Robert. "There's never been a better time": Planet Coaster rides to meet the demand for deep simulation games. 11 July 2016. 4 April 2016. live. https://web.archive.org/web/20160704161730/http://www.pcgamesn.com/planet-coaster/there-s-never-been-a-better-time-planet-coaster-rides-to-meet-the-demand-for-deep-simulation-games. 4 July 2016.
- Web site: Trove – A Voxel MMO Adventure from Trion Worlds. trovegame.com. live. https://web.archive.org/web/20140722160000/http://www.trovegame.com/. 2014-07-22.
- Web site: VANGERS . kdlab.com . 2009-12-20 . dead . https://web.archive.org/web/20100114235648/http://www.kdlab.com/vangers/eng/features.html . 2010-01-14 .
- Web site: Veloren . Veloren.net . 2024-06-12 . 2024-06-12 . live . https://web.archive.org/web/20240612222650/https://veloren.net/ .
- Web site: We <3 voxels: why Voxatron is an exciting indie shooter. Ars Technica. 14 January 2011 . live. https://web.archive.org/web/20111013010452/http://arstechnica.com/gaming/news/2011/01/we-3-voxels-why-voxatron-is-an-exciting-indie-shooter.ars. 2011-10-13.
- Web site: Lexaloffle BBS :: Voxatron . lexaloffle.com . 2011-01-12 . live . https://web.archive.org/web/20110108191219/http://www.lexaloffle.com/bbs/?tid=201 . 2011-01-08 .
- Book: Hickson . Steven . Birchfield . Stan . Essa . Irfan . Christensen . Henrik . 2014 IEEE Conference on Computer Vision and Pattern Recognition . Efficient Hierarchical Graph-Based Segmentation of RGBD Videos . 2014 . 344–351 . 10.1109/CVPR.2014.51. 1801.08981 . 978-1-4799-5118-5 . 519623 .