y
Formula
方程式
Basic 基础Coord.Effector 效果器Parameter 参数Deformer 分离器Falloff 女名女子名Formula
方程式
Tip: 提示:
Now here’s an Effector that will put a smile on the faces of mathematicians amongst you. This Effector lets you create complex formulas with which you can control it.
现在这里有一个效果器,将把一个微笑的数学家在你们中间。这个效果器可以让您创建复杂的公式,您可以控制它。
Let’s first get familiar with the Shader Effector that effects clones using a texture and its gray scale values. The areas of black are given an internal value of 0, the areas of white a value of 1, and of course all the gray tones in-between that are also given an internal value. If, in the Shader Effector’s Parameter tab, P.Y. is set to 300, clones will be moved in the Y-direction between 0m and 300m in accordance with the gray scale values.
让我们首先熟悉着色效果器,它使用一个纹理和它的灰度值来影响克隆。黑色区域的内部值为0,白色区域的内部值为1,当然中间的所有灰色调也都有内部值。如果在着色效果器的参数选项卡中,p.y 设置为300,那么克隆将按照灰度值在0米到300米之间的 y 方向移动。
So, how does the Formula Effector fit into all of this? Instead of simple color or gray scale values, values from a formula are used that define where a given clone should be placed, between 0m and 300m (or outside of this range – simply add a 2 to the formula and all clones will be placed at a height of 600m).
那么,公式效果器是如何适应这一切的呢?取代简单的颜色或灰度值,使用公式中的值来定义一个给定的克隆应该放置在哪里,在0米到300米之间(或者在这个范围之外——只需在公式中添加一个2,所有克隆将被放置在600米的高度)。
In the example above, the Formula Effector uses the formula: sin((id/count)*360. As you can see, the results of the formula can vary, depending on the sinus function between 1 and -1. If P.Y is set to 300m these values will be transformed and vary between -300m and +300m. Consequently, if a simple 2 were entered into the Formula field, the clones would be placed at 600m. Since a linear arrangement of clones sets the value for the first clone to u=0 and the value for the last clone to u=1, the same result can be achieved by using the formula sin(u*360).
在上面的示例中,公式效果器使用公式: sin ((id/count) * 360。正如你所看到的,公式的结果可以有所不同,这取决于1到 -1之间的窦性函数。如果 P.Y 设置为300m,这些值将被转换,并在 -300m 和 + 300m 之间变化。因此,如果在公式字段中输入一个简单的2,克隆将被放置在600m 处。由于克隆的线性排列将第一个克隆的值设置为 u = 0,而将最后一个克隆的值设置为 u = 1,因此可以使用公式 sin (u * 360)得到相同的结果。