[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40535] branches/soc-2008-mxcurioni/ release/scripts/freestyle/style_modules/parameter_editor.py: Changed the behaviour of the Perlin 1D geometry modifier.
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Sun Sep 25 11:50:13 CEST 2011
Revision: 40535
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40535
Author: kjym3
Date: 2011-09-25 09:50:12 +0000 (Sun, 25 Sep 2011)
Log Message:
-----------
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).
Modified Paths:
--------------
branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
Modified: branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py 2011-09-25 07:42:43 UTC (rev 40534)
+++ branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py 2011-09-25 09:50:12 UTC (rev 40535)
@@ -465,8 +465,7 @@
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()
More information about the Bf-blender-cvs
mailing list