• Create Account

# Solias

Member Since 09 Sep 2004
Offline Last Active Jul 02 2013 05:00 PM

### In Topic: Dual Contouring - Cutting Cubes into the Terrain

25 June 2013 - 12:04 PM

I haven't done dual contouring before, but this seems similar to how my voxel engine works. At each voxel I store 3 values representing the x, y, and z potential displacement of the surface from that sample point. The special case of 0, 0, 0 represents an empty voxel.

When building the mesh, I use a variant of marching cubes and consider each cubic cell with 8 voxels at the corners. Any cell which has a mix of 0 and non-0 voxels will contain a surface. Any cell edge connecting a 0 and non-0 voxel will contain a vertex of the mesh, and the position of the vertex along the edge is equal to the x, y, or z displacement from the non-zero voxel. This makes it very easy to calculate the vertex locations and gives me a lot of control over the surface, but still gives a lot of surface variability.

To dig a a "hole", I set a voxel to 0,0,0, and set its neighbors associated x, y, or z displacement to a random value within a controlled range. If you want straight edges, you can also get that effect by choosing consistent displacements for the neighbors.

### In Topic: Challenge #2: What tools can you not live without?

18 June 2013 - 03:52 PM

GPU View - This is a very useful free tool for graphics performance analysis on Windows. It gives you a graphical view of your GPU and CPU workloads along with the software scheduler queue. This lets you identify dependency problems causing gpu or cpu stalls and determine how gpu or cpu bound your workload is. It's really good for getting an overview of your frame and see where you are spending your resources.

### In Topic: Quick help needed with 2d rotation of vertex buffer object OpenGL

25 October 2012 - 05:55 PM

Why are you doing the -x, -y translation? I assume the verts in the VBO are in object space already?

### In Topic: Motion capture for indie game developers?

14 July 2009 - 11:19 AM

This might be an option: CMU motion capture library.

### In Topic: Skinable Flash MMO's?

29 May 2009 - 11:22 AM

Metaplace went into open beta recently.

PARTNERS