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:
Tamito Kajiyama
2011-09-25 09:50:12 +00:00
parent c0c488d0b2
commit c41e64b9da

View File

@@ -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()