Marching Cubes

PUBLISHED ON MAR 10, 2013 — SOFTWARE

Marching Cubes

I wrote an implemntation of marching cubes that uses liner interpolation. Here it’s rendering Simplex noise with vertex normals and phong shading. Calculating the normals in an efficient manner turned out to be harder than I thought. They will be very useful later when I move to terrain rendering.

There are some floating point math errors visible in this image. Ordering of math operations matters.

TAGS: SOFTWARE