diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-09-25 13:50:12 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-09-25 13:50:12 +0400 |
commit | c41e64b9da4497b23259291bc1d5fa6c1c2e7ce1 (patch) | |
tree | 8411a646f78013430928fa9f24d430cf4b70f8d5 /release/scripts/freestyle/style_modules/parameter_editor.py | |
parent | c0c488d0b2cf1365c88241d98fcef19b54d2f4fe (diff) |
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).
Diffstat (limited to 'release/scripts/freestyle/style_modules/parameter_editor.py')
-rw-r--r-- | release/scripts/freestyle/style_modules/parameter_editor.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/freestyle/style_modules/parameter_editor.py b/release/scripts/freestyle/style_modules/parameter_editor.py index 5f0d4861db4..1099618e4d1 100644 --- a/release/scripts/freestyle/style_modules/parameter_editor.py +++ b/release/scripts/freestyle/style_modules/parameter_editor.py @@ -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() |