Another problem occur when i tries to generate terrain, with noise:
As you can see, it does not look well. This was rendered with isolevel 0.9f.
I create the terrain like:
[source lang="cpp"]sampler_t randomVolumeSampler = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_REPEAT | CLK_FILTER_LINEAR;density.x = wPos.y; density.x += read_imagef(randomVolume, randomVolumeSampler, realGridPos).x * 0.25f;[/source]
So i was wondering, if i have implemented marching cube wrong, or if it behaves right,
Edited by Tapped, 14 September 2012 - 06:42 AM.