[Genhis][2.0.66] voronoi noise functions don't always find the nearest point
Posted: Fri Sep 19, 2025 12:06 am
For demonstration of the issue I used noise expression
(3x3 grid squares of voronoi spot noise on a fixed seed). It was visualized with noise tools using
Here's the result of the visualization:
The problem can be seen at the bottom of the top middle square, marked with the green arrow
For these points only the points generated in the same and the neighbor squares are checked for being the nearest (the ones marked with yellow arrows, plus 3 squares above that aren't relevant here). Because they are all in the far corners, the actual nearest point is the one marked by the red arrow, which is two squares below. But it doesn't get checked, as can be seen from both gradient of the expression and the jump in the value at the border of the square (the horizontal line just below green arrow).
The same exact problem seems to affect all types of voronoi noise functions.
Code: Select all
if(x >= 320 & x < 512 & y >= 128 & y < 320,
voronoi_spot_noise{x = x, y = y, seed0 = 241014965, seed1 = 0, grid_size = 64, distance_type = 1, jitter = 1},
0)
Code: Select all
noise_debug.tiles_to_visualisation("visualisation", 0, 2, "greyscale")
The same exact problem seems to affect all types of voronoi noise functions.