Re:A Minecraft-like Block Based Game Engine Using Three.js, ...
by eropple on Friday January 18, 2013 @01:11PM
(#5080052)
Every "voxel engine" I've ever seen just draws polygons. One of my co-conspirators on a side project[1] used surface nets over voxels with density bits to create slope-friendly meshes that are also used for physics calculations. Each mesh is pretty large and there are some economies of scale for drawing larger meshes like these.
Minecraft for a long time just batched each visible side, I think even ignoring occlusion, and drew it; I don't know if they precompute larger meshes now.
[1] - http://static.largerussiangames.com/voxels/videos/rigidbodie... (Each 'companion cube' is really attached to a spherical physics body, the physics aren't mapped to the mesh.)
Re:A Minecraft-like Block Based Game Engine Using Three.js, ...
by maxogden on Friday January 18, 2013 @04:14PM
(#5081073)
this and the follow-up post were most useful when developing the voxel.js components http://0fps.wordpress.com/2012/06/30/meshing-in-a-minecraft-...
Re:A Minecraft-like Block Based Game Engine Using Three.js, ...
by whatshisface on Friday January 18, 2013 @12:44PM
(#5079891)
Nobody draws voxels, graphics cards aren't good at them. I don't know about these engines in particular, but in minecraft everything is converted to polygon meshes.
Re:A Minecraft-like Block Based Game Engine Using Three.js, ...
by manveru on Friday January 18, 2013 @01:17PM
(#5080079)
Nobody these days, but one of my all-time favorite games is Outcast[1], which used voxels for the terrain and polygons for smaller details. All it needed was a good CPU.
Re:A Minecraft-like Block Based Game Engine Using Three.js, ...
by buster on Friday January 18, 2013 @02:03PM
(#5080315)
Haha, i had that too.. fun game.. i think the characters were polygons, though :)
Also there was https://en.wikipedia.org/wiki/Comanche_series even before Outcast. I don't think it used polygons. It was launched years before 3D graphics cards, too..
I assume since all voxels are the same size you can just batch draw them but even so there is going to be a lot within viewing distance that may be invisible.
Are they all just assigned to an octtree and then culled against the view frustum or do you really need some clever occlusion culling?