- Home /
Question by
yxyx136 · Nov 20, 2014 at 08:35 PM ·
c#noisemarching cubes
Use Marching Cubes with SimplexNoise
Hey Guys, I'm currently experimenting with this code http://scrawkblog.com/2013/04/01/marching-cubes-plugin-for-unity/, and trying to create a terrain using simplex noise. But I can't get it working with simplex noise. No voxels are created!
Here's my code:
for(x = 0; x < width; x++) {
for(y = 0; y < height; y++) {
for(z = 0; z < length; z++) {
voxels[x,y,z] = Noise.SimplexNoise(x, y, z, 10, 1.5f, 1.2f);
}
}
}
Mesh mesh = MarchingCubes.CreateMesh(voxels);
Thanks in advance!
Comment