Changed the behaviour of the Perlin 1D geometry modifier. Now it distorts
strokes using the curvilinear abscissa of stroke vertices as the input of the Perlin noise generator (instead, the Perlin 2D geometry modifier generates noise using the 2D coordinates of stroke vertices in the image space as the input of the noise generator).
This commit is contained in:
@@ -465,8 +465,7 @@ class PerlinNoise1DShader(StrokeShader):
|
||||
it = stroke.strokeVerticesBegin()
|
||||
while not it.isEnd():
|
||||
v = it.getObject()
|
||||
i = v.getProjectedX() + v.getProjectedY()
|
||||
nres = self.__noise.turbulence1(i, self.__freq, self.__amp, self.__oct)
|
||||
nres = self.__noise.turbulence1(v.u(), self.__freq, self.__amp, self.__oct)
|
||||
v.setPoint(v.getPoint() + nres * self.__dir)
|
||||
it.increment()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user