159 points · by mariuz · 8y ago · 116 comments
Delta Force:
https://en.wikipedia.org/wiki/Delta_Force_(video_game)
Which used the Voxel Space engine:
There used to be quite a few Turbo Pascal "voxel"-heightmap demos floating around.
Blade Runner was surprising: It used voxels for characters. https://en.wikipedia.org/wiki/Blade_Runner_(1997_video_game)
The technique seemed to fall out of favor for a while due to the polygon GPU boom (I guess I missed Delta Force) until Outcast in 1999. (Back to heightmap terrains.) https://en.wikipedia.org/wiki/Outcast_(video_game)
The 3D models were sliced from bottom to top into a couple of hundred slices (depending on desired quality) by intersecting the model with a horizontal plane and storing the resulting polygons.
The engine can only rotate the models around the vertical axis.
I made a hacky javascript version of the renderer a long time ago: http://thomas.fach-pedersen.net/bladerunner/mccoy_anim_13_fr...
EDIT: Let me also plug our WIP Blade Runner engine for ScummVM: https://github.com/scummvm/scummvm/tree/master/engines/blade...
Seems that the people that developed the game considers it voxel based.
At the moment, CGI is essentially a craft. You use a set of tricks, illusions, and hacks to deliver an immersive experience. Games like Doom show that when you get all these tricks right, the result is impressive.
Unfortunately, like all hacks, they aren't robust. Most of them work on the assumption that the player won't look to closely at anything, or will only look at certain angles, or move through the game world at regular speeds.
People who do CGI are already well aware that when you go into VR, a lot of the hacks just don't work. Often, to deliver a high-quality experience, you have to throw polygons at the problem.
I'm pretty skeptical of this presentation - talking that much about optimization and performance makes me suspicious that their performance is terrible. However, ultimately, unless better hacks are devised, I think VR will be too much of a robustness test for the current model. In the short term, that will probably just result in some ugly graphics. In the long term, it'll put a lot of weight behind the drive to find better, less hacky solutions - and voxels are kinda first and foremost in that category.
"There are a bunch of techniques people typically consider being voxel-based. The oldest ones used in games were height-map based where the renderer interpreted a 2D map of height values to calculate boundary between the air and the ground in the scene. That‘s not truly a voxel-based approach as there‘s no volumetric data set in use (ie in Delta Force 1, Comanche, Outcast, and others)."
https://www.youtube.com/watch?v=Gshc8GMTa1Y
it was quite impressive 8 years ago as it is today, but 10 years of demo without applications are weird.
here's a 2011 critique from notch of this very technology https://notch.tumblr.com/post/8386977075/its-a-scam - I don't think things have changed much
My understanding of Euclideon (based on the snippets of information, interviews and videos they’ve released) is that the primary technology they created is an on disk spatial index and streaming system that allows only the data that is on screen to be streamed from disk, allowing them to have very large and complex datasets on disk while still rendering in real time. The “infinite detail” branding was referring to that the detail possible is only limited by disk space, not by rendering performance.
That sounds pretty cool to me and not a scam as many people think.
However, they’ve never been particularly convincing in the applicability to games or even that the quality gains are as high as they claim. They kept touting how easy it is for artists since they can 3d scan real objects and use that scan data almost directly (but many polygonal models start as scans too, so...), but I’ve never been impressed with the quality of their scans or demos. Their highest quality demos are nice (a lot nicer than their earlier demos which, to me, honestly looked like it was from the 90s) but they still don’t compare to modern games in my opinion. They also have not proven that it works well for animations or dynamic lighting and shadowing. At least, they’ve never demonstrated it.
They did use their tech for their Holoverse[0] games, but, again, the quality of the actual graphics wasn’t particularly impressive in my opinion (certainly the animations seemed stiff and boring) and from reviews I’ve seen on YouTube, VR headsets provide a better experience and superior quality.
So, my verdict is that they do have some novel and interesting tech, but they haven’t been able to get anywhere close to the quality claims that they’ve made and I certainly wouldn’t bet on them over more traditional modern graphics.
That's practically Molyneuxesque!
I guess minecraft is an example of a voxel game (supposed a voxel game written in block style according to a random post on the internet[0]) that became really popular -- so I guess the answer could be "nothing", but it sure seems like voxels are still niche (and don't want to be).
[0]: https://forum.unity.com/threads/voxel-games-vs-block-games.2...
Interpolation is quite complicated and voxels, on the other hand, could be arranged so it would be very easy to draw on a traditional CPU. So one could write a really fast voxel renderer on something like Pentium 200, which would produce better looking graphics than a polygonal renderer at the same speed (it would not be as versatile but when you do a demo you are free to chose scenes where voxels will do the job better).
On GPUs interpolation is not just cheap but it's the only way to exploit massive parallelism since you can draw all interpolated points simultaneously. Drawing points, on the other hand, is sequential (because of z-buffer all primitives have to be drawn in the fixed order) and is already super slow by itself. GPUs are also optimized for drawing triangles so they do a lot of things with them they cannot do for a list of points (which would be the primitive you'd use to draw voxels). Of course you can do your voxels on compute but then you are not using color/depth buffer hardware so either way you are disadvantaged.
But now GPUs can crunch that data super fast (as you say) and memory bandwidth is often a bigger issue. So while voxels still get used in some places, they’re avoided in favour of more compressed data formats and rendering techniques.
At least, that’s what it sounded like to me, I’m no graphics expert.
The fact that the domains they might be used in are also the domains people are guaranteed to have spent a lot of money on specialized polygon-pushing processors. Voxel techniques seemed to peak at about the time of the last hurrah of CPU-based rendering.
Modeling and animation. I'm not even sure what some of these videos are showing, but it doesn't seem like it can be real voxels on a regular grid. Regular grids are hard to create models with, and are essentially impossible to animate in useful ways. I didn't see mention of how the animation in these clips was being done but there were indications that the models started out as polygons.
Signed Distance Function: https://en.wikipedia.org/wiki/Signed_distance_function
2D Signed Distance Fields are used for rendering fonts and other shapes defined by a texture whose signed pixels (-128..128) specify how far each is from the border (+ is outside, 0 is on the border, - is inside). They scale beautifully because you can smoothly interpolate between samples.
Drawing Text with Signed Distance Fields in Mapbox GL: https://blog.mapbox.com/drawing-text-with-signed-distance-fi...
TextMesh Pro - Font Asset Creation Process: https://www.youtube.com/watch?v=eXhfygRgIVY
You can convert them to piecewise outline contours (like an iso-map slicing at many different elevations) with the Marching Squares algorithm, but it's much more efficient to render them directly pixel-by-pixel with a shader.
Marching Squares: https://en.wikipedia.org/wiki/Marching_squares
Signed Distance Fields are excellent for shaders efficiently antialiasing and drawing effects like outlines, drop shadows, embossed and beveled edges, glows, multi texture mapping, bump mapping, etc). The shader can quickly determine exactly how far away each pixel is from the outline, and blend the appropriate effects together for that pixel, so you get precise anti-aliasing, outlines, drop shadows, etc, practically for free! (And literally for free, now that Unity gives TextMesh Pro away for free.)
TextMesh Pro - Unite 14 Demo: https://www.youtube.com/watch?v=q3ROZmdu65o
3D Signed Distance Fields are used for rendering volumes with the Marching Cubes and Tetrahedra algorithms (which are nice for users continuously carving and sculpting with tools, like Astroneer).
Astroneer: https://astroneer.space/
Astroneer - Digging to the Center of the Planet: https://www.youtube.com/watch?v=C3zxBhPzxYU
That also scales and handles different levels of detail nicely because you can interpolate between samples -- it creates smooth polygon meshes with interpolated normals, not harsh cubes with pointy corners like Minecraft.
Marching Cubes: https://en.wikipedia.org/wiki/Marching_cubes
Marching Tetrahedra: https://en.wikipedia.org/wiki/Marching_tetrahedra
Fast Marching Method: https://en.wikipedia.org/wiki/Fast_marching_method
Fast Sweeping Method: https://en.wikipedia.org/wiki/Fast_sweeping_method
Level-Set Method: https://en.wikipedia.org/wiki/Level-set_method
Shaders can't render 3D Signed Distance Fields as directly and efficiently as 2D (unless you're rendering to 3D volumetric textures). But you can still implement Marching Cubes on the GPU, using compute shaders (or abusing 2D shaders).
Marching Cubes on the GPU for Unity3D: https://github.com/Scrawk/Marching-Cubes-On-The-GPU
There are already game engines that voxelizes the world to a very rough voxel representation to efficiently calculate indirect light propagation.
I think more and more lighting and physics simulations will be implemented in a rough voxel representation of the game world. Then, to improve accuracy and detail this representation will become finer and finer, until it makes more sense to render this voxel representation directly, rather than rendering the polygons.
What's missing is perhaps hardware support for rasterization of polygons to voxels. It's hard to compete against the super efficient hardware rasterization of polygons to pixels otherwise.
I think character models will be polygon based for a long time still, since it's much more suited for character animation.
http://www.alexandre-pestana.com/voxelization-using-gpu-hard...
This approach is used in most commercial games that support voxel-based global illumination.
Cube: Sauerbraten did go there, and it uses something like oct-trees to store these tesselated, refined voxels.
And that is where the whole concept crawls on the shore to die - the tooling for this to work with all that has been invented before is just- not efficient- to sculpt in voxels, you basically send marching cubes through polygon models.
Personally that was the point where i dropped it- because- when i have polys allready- and dont need the destructable physics (they ruin gameplay &performance anyway most of the time) - then why bother.
Its one of those technical superior solutions which never seem to surpass the legacy solutions (like Rust and C). My assumption is, that one day, the polygon world will just eat the voxel world- having a .toVoxel.ApplyPhysicalModel(Sand).AfterPhysicsRestDo(ToPoly), and thats what will remain.
Very small cubes of dust.
A hierarchical level-of-detail scheme (e.g. the one used in Sauerbraten) is still only n^3 in the worst case. If you store one full-resolution copy of your world, and then a copy with 1/2 the resolution, then 1/4 the resolution and so on, you get a geometric series that converted to only a constant-factor overhead.
Isotopic filtering is easier, just 3*n. However, it will make surfaces look... unreal, as if physics didn't form them, at times.
You cannot wing the quality as easily in 3D though. Continuity is paramount as is some degree of smoothness. Ringing is unacceptable.
Looking at a ants-mandibles-mikro-biota, while observing a planet near the horizon.
http://www.advsys.net/ken/voxlap.htm
It has pretty cool looking visuals, dynamic objects and some basic physics as well. I think the most impressive part the developer was able to run this on ~10-15 years old computers.
You can monitor this: stay on the page, and then every once in a while right click on the back-button in Firefox (or however it's done in your browser to pop up the forward/back list). See the growing number of repetitions of the page title in the list.
Euclideon - 7 years ago: https://www.youtube.com/watch?v=00gAbgBu8R4
The big quadrillion-vowel worlds and planet-sized world claims seem to have disappeared, but now they can do small-scale voxel projects and handle deformation. No info as to how, and no products on their site for non-static voxel environments.
Voxel systems are straightforward if everything is in memory, but how do they scale?
[1] https://www.youtube.com/watch?v=nr5JqYYye3w [2] https://developer.nvidia.com/content/basics-gpu-voxelization
Euclideon's channel is https://www.youtube.com/user/EuclideonOfficial
I myself like Automontage better because they are waaay less "hype" and more "here's what I have".
Additionally there are probably quite a few people who didn't know anything about Voxels, but transitioned the "pixelart" hype into the 3D world, coming to the same end point.
I bet both these reasons together make 90% of the current interest.
Answer is similar - approximation, and lots of tiny squares/cubes/voxels.
E.g. https://static1.squarespace.com/static/5aa5ba4b55b02ca2a2f3b...
You have this situation:
*
*
*
****
* <=== incoming light
* ====> reflected light
****
*
*
*
Versus: \ | reflected light
\ |
\|______ incoming light
\
\
\
PS: This makes me wonder how nature does it. Is the fact that photons are (in a sense) "bigger" than atoms responsible for the fact that we can have shiny surfaces?http://lup.lub.lu.se/luur/download?func=downloadFile&recordO...
Yes, if you simplify things a bit, this is true. "size of the photons" is in this case their wavelength. Wavelength of visible light (~500 nm) is very much larger than the size of silver atoms in a mirror (~100 pm). This is why you can have a mirror even with surfaces that are not atomically flat.
the 'direction' of the emission depends on the interference with all the other incoming photons. that part is rooted in quantum mechanic and I've no idea how it works exactly.
It interpolates the positions and normals of the vertices of the mesh between the samples of the 3d grid. Despite its name, it doesn't render a bunch of cubes like Minecraft, but rather it renders arbitrarily oriented triangles whose vertices happen to fall on the edges of cubes (or tetrahedra).
Marching Cubes: https://en.wikipedia.org/wiki/Marching_cubes
Marching Tetrahedra: https://en.wikipedia.org/wiki/Marching_tetrahedra
Astroneer: https://astroneer.space/
Astroneer - Digging to the Center of the Planet: https://www.youtube.com/watch?v=C3zxBhPzxYU
The Sims 1 in 3D: https://www.youtube.com/watch?v=r5D7GPQDDUI
Here's how The Sims 1 sprites work:
Each object has a set of sprite bitmaps for four different rotations, at three different scales. Symmetrical objects can re-use and flip sprites for different rotations. Each set of sprite bitmaps includes a color bitmap, an alpha bitmap, and a z-buffer bitmap. The smaller scales can be derived by shrinking the largest scale, but Maxis renders them all directly in the 3D Studio Max sprite exporter, which looks nicer, and players can export and import them with Transmogrifier, and edit and touch them up with 2D tools like Photoshop or Gimp (or even program 3D tools like Blender to export them).
Making a totally new object! By Bunny Wuffles. http://bwsost.woobsha.com/9firstnewobject/page1.html
Transmogrifier walk-through: http://wiki.thesimsresource.com/images/5/54/Steve-Using_Tmog...
However, the demo video's makes you even question that they have a secret sauce at all. When you see them delete parts of the game world you see how thin the ground layer is when part of it is deleted.
The are big problems with voxels. The simplest being space as the game world increases in size the amount vowels grows with the 3rd power.
My big problem is no technical details have been published. They claim to have a pending patent on their site. However, that may not really tell us much.
I have played with voxels myself and oct-trees and other algorithms related to voxels. The only real use voxels have seen is medical imaging. If they have figured something out they should be having a paper in a math journal. I doubt it though mainly since it would involve pushing thing to the limit or beyond the limits of information theory. The only other option for such small voxels is massive amount data storage or object with relative homogeneous structure at which point it's not much better than hollow polygons.
Not only the main memory is limited, and while SSDs are getting better when playing with high density voxels with a pretty how amount entropy you can quickly exist main memory. So what I did instead was just request exposed/surface voxels and arrange the octree data structure to be linear from outside in to help with memory caches. Still all the really mattered was the exposed voxels, and that's not much different from a hollow polygon. Honestly, after having played with voxels myself I would say they are cool, but you not making a whole game out of them. If anything it's just tool to be used in some parts of a game.
I will add an other thing that gives me doubt they have anything really new is the fact when they start destroying their models you see the same color in side the model for the most part. Even the brick wall that got destroyed is pretty homogeneous.
One of their investors is an MD specializing in imaging. https://www.atomontage.com/#team-section That'll be their bread and butter.
I always wondering if the community picked up VoxelQuest https://www.voxelquest.com/ and ran with it, but last I looked that wasn't the case.
I'm too old to do serious graphics programming, but might be interested in a voxel engine written in C# with a good community.
Too old? Maybe too busy, but never too old.
I dabbled in voxels myself, even wrote a Minecraft clone and all that, but VoxelQuest was the first real voxel engine I saw working in a really nice way. It had proper lighting, shadows and even nice effects such as reflections. It is kind of a bummer that the dev quit the project, so much potential wasted :(
Not quite. Not unless you store the voxels in a three dimensional grid structure, which you wouldn't do for anything but the most simple applications.
If your game world is anything like the real world, most of it is empty space. Additionally, you usually don't have to store realistic data for the interior of the models.
You'll use a datastructure that exploits this. The most common and simple one for voxels would be sparse voxel octrees.
In addition to this, you can use compression techniques for both texture data and geometry. Most of this data will be relatively predictable.
I'd wager that the data for a modern efficient voxel implementation grows at roughly the same rate as a modern polygon based implementation. Most models these days have a quite high density of polygons after all. No surface in the real world is completely flat. As the article mentions, when you have a high density of polygons, you're using a lot of data to store the positions of each vertex, while in a voxel datastructure that data is implicit.
I think the only real problem with voxels when competing with modern polygon engines, is animation. Polygon models have a huge benefit there. Like you said though, you might want to use voxels for part of the game. I know that John Carmack was interested in using it for static landscape and buildings, and saw it as a natural extension of the megatexture technology.
Animation is very hard. Mathematics can help here, but the results look unnatural and fairly shoddy (see the building doing a simple sinusoidal based sway in their video). The problem is essentially one of scale. With polygons, we only need to animate the vertices. With this, we need to animate every voxel. This presents massive opportunities, however also massive challenges both for the machine performing the computations and also the software engineers trying to get realistic animations.
Now whether that's worth it or not is an open problem.
Minetest, for example, groups its "voxels" into cubic chunks, which are then loaded depending on a max distance and presumably some sort of a ray tracing approach to figure out, if the "voxels" in such a chunk are visible.
While rendering triangle meshes using rasterization (the "classic" way) is fast (because modern hardware is built for this), doing real-time light transport is a pain-in-the-ass, and involves a lot of inelegant (but very smart!) tricks (e.g. shadow mapping). On the other hand, we have ray tracing on triangle meshes, which is elegant, but really doesn't perform as well as rasterization, because you need a lot of rays to converge to a non-noisy result.
The state-of-the-art global illumination renderers all use a hybrid approach. Either they reduce the triangle mesh so real-time Radiosity becomes viable (like in the Frostbite 2 engine), but these suffer from not being able to simulate specular surfaces as good. While the other approach is to discretize the mesh to a voxel representation and do Voxel Cone Tracing (VCT) (which is the same as ray tracing, but instead of shooting rays, you shoot "thick" rays, and get the incoming importance over an area), which produces non-noisy results, and can be done really fast. There is a reason why engines like Unreal Engine, Unity and Godot have started to implement VCT, and why a lot of research is being geared toward finding efficient ways to do scene voxelization (just look at the DICE/SEED thesis work proposals and you'll see that this is indeed true).
The advantage of having an engine that only deals with voxels is that the techniques I've shown above can be done naturally, you can use a "pure" voxel approach instead of a hybrid. There is no need to convert triangle mesh scene to a voxel representation. My main worries with the method shown in the article is that doing animation (those not generated procedurally) using voxels is very hard. Also, the amount of memory needed to store a voxel scene is several orders of magnitude larger than a triangle mesh, even if you compress it, and worst of all, you need to store the animation as well, and depending on how that's done, can be a absolute nightmare (but I'm not up-to-date with the latest reserach there, maybe there are some fancy techniques that solve this problem).
Pretty incredible what you can do with it.
Are they just creating "boxes" or "cubes" for each voxel?
What is HARD with voxels? Animation? shadow rendering?
In a VR game, being able to look at things very close, and seeing smaller and smaller details almost infinitely, will help go a long way toward making things feel more real.
Think taking a break in an FPS, and kneeling down to see the blades of grass, and then closer to see dirt and pebbles, and even closer to maybe seeing ants.
That is called tesselation and it's already there in games for more than a decade.
To actually get infinite details, you have to switch underlining world representation from static data (meshes, voxels) to mathematical (perlin noise, fractals). Here you make an important trade-off - mathematical representation is harder to make changes to, because each modification would increase complexity of math formula used to describe the world. You can see lot of deformations in voxel demos but they are global transformations (scale, shear).
Minecraft uses hybrid approach. Inital world is described by math (called world generation) but it's then serialized (sampled) as data with specific voxel size, that you can easily manipulate.
Edit: another, IMO far more impressive approach is Media Molecules' upcoming Dreams software that uses constructive solid geometry and sparse distance fields to describe and manipulate 3d geometry. Here's a detailed tech talk: https://www.youtube.com/watch?v=u9KNtnCZDMI