Polygonization of Voxels

Published June 18, 2011
Advertisement
I just made up a new word - polygonanization! I'm going to force it into at least one conversation today, and confuse everyone. Actually, someone's probably already made it up, which kinda ruins the effect.

Back to my little project, anyway...

Well, I've worked out how I'm going to make my voxel terrain. The user will be able to place a huge number of small cubes. Then he will be able to perform polygonization on these voxels, making a mesh which spans the lot of them. I'm going to be using an algorithm similar to marching cubes, but changing it slightly to allow for pointy bits. I actually got something like marching cubes working, but it was horribly blobby, which might be fine for hills and stuff, but for sharp rocks etc. it will cause problems.

So the way my formula is working is thus: First of all each voxel detects on which other faces it is being touched by other voxels. Next, according to a set of rules, a mesh is made, smoothing the voxels into a mesh, by joining up the half-way points of the edges (not too dissimilar to marching cubes). Then, the polycount can be decreased, by forcing the mesh to make continuous lines rather than rapidly changing ones.

I probably didn't explain that too well. Oh well. I'll be back next week, hopefully with a working algorithm!
Previous Entry "Hello World!"
0 likes 2 comments

Comments

JTippetts
If you're interested, the [url="http://thermite3d.org/joomla/"]PolyVox[/url] library includes both a Marching Cubes-based extractor and a cube-based extractor.
June 18, 2011 04:21 PM
zarfius
[i]polygonization[/i] ( p??lig?n??z?sh?n ) ( solid-state physics ) A phenomenon observed during the annealing of plastically bent crystals in which the edge dislocations created by cold working organize themselves vertically above each other so that polygonal domains are formed. :blink:
June 22, 2011 12:02 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Advertisement