Jump to content
  • entries
    7
  • comments
    12
  • views
    3,531

About this blog

A blog series on the development of a Medieval Fantasy Game.

Entries in this blog

Voxel Terrain Part 2 - Voxelization Methods

Instead of settling for one way only to voxelize a terrain I decide to make it possible to select between a few of them depending on what was required.  They're are basically just two methods, forward or backward. enum VoxelMethod { VOXEL_METHOD_FORWARD, VOXEL_METHOD_FORWARD_CONTOUR, VOXEL_METHOD_BACKWARD, VOXEL_METHOD_BACKWARD_CONTOUR }; Forward starts with a parent node and checks each corner against some function that says if the corner is above or below some user defined surface. 

SpiderPig

SpiderPig in Voxel Terrain

Voxel Terrain Part 1 - Voxelization

For the past few months I've been working on Voxel Terrain for Ultra.  I started by creating an octree whose parent node encapsulates the bounds for the entire terrain and must be a perfect cube with dimensions that are a power of two.  This ensures all child nodes can be neatly subdivided.  If a more rectangular terrain is required the octree creates more than one parent node to make up the rectangle. The next step was to subdivide the parent node to a level where each node would represent

SpiderPig

SpiderPig in Voxel Terrain

×
×
  • Create New...