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
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