You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do i fix these floating point errors in my script, is it possible that its the algorithm its self double val = noise.noise2D_01(((i * MS_SPACING) * zoom) + (loaded_chunks[x].pos.x * zoom), ((j * MS_SPACING) * zoom) + (loaded_chunks[x].pos.y * zoom)); long ival = lround(val * 10); // Attempted mitigation using rounding loaded_chunks[x].marching_squares[i][j].on = ival < 5; // The line causing the artifacting from fp errors
The text was updated successfully, but these errors were encountered:
MarchingSquaresAlgoTest.mp4
How do i fix these floating point errors in my script, is it possible that its the algorithm its self
double val = noise.noise2D_01(((i * MS_SPACING) * zoom) + (loaded_chunks[x].pos.x * zoom), ((j * MS_SPACING) * zoom) + (loaded_chunks[x].pos.y * zoom));
long ival = lround(val * 10); // Attempted mitigation using rounding
loaded_chunks[x].marching_squares[i][j].on = ival < 5; // The line causing the artifacting from fp errors
The text was updated successfully, but these errors were encountered: