Download

Voxel chunks not spawning well

Hello guys,
I’ve been following a challenge by Tefel which you can find here

But I encountered a problem which I can’t solve, every chunk is generating well until I try to use noise or chomp chunk at Z axis with

chunkFields[index] = (z < 30 + noise[x + y * chunkLineElements]) ? 1 : 0;

In tutorial/challenge the prodecularmesh generate chunks over noise and it looks like this
Imgur

In my project it looks like this

Here is my code of VoxelActor.h and .cpp
https://paste.ofcode.org/6dtSACuxkvfQUMFFcKW2kN#
https://paste.ofcode.org/r85KK8SMYkZc2jbeXhrQfS#

If anyone know what can be cause of this or how I can fix it then I would be grateful
Cheers

I wanted to try it, but the tutorial involved a plugin that throw a million errors, so im curious how you even got that far