Spline Shader 花键着色器Basic 基础Shader 着色器

Shader Properties

1. Background Texture; 2. Line Texture; 3. Fill texture; 4. Line Width; 5. Smooth Width; 6. Caps. 1. 背景纹理; 2. 线纹理; 3. 填充纹理; 4. 线宽; 5. 平滑宽度; 6. 大写

Spline

花键

Drag & drop the spline to be used into this box. This can be a spline primitive or a standard spline. The spline’s coordinate system plays a crucial part in the projection of the spline — see Plane.

将要使用的样条拖放到此框中。这可以是样条基元,也可以是标准样条。样条曲线的坐标系在样条曲线的投影中起着至关重要的作用。

Background Texture
Line Texture
Fill Texture

背景纹理填充纹理

These settings specify the texture used for the background, line and fill. Close the spline to prevent unusual fill results.

这些设置指定用于背景、线条和填充的纹理。关闭样条以防止不寻常的填充结果。

If you want to define a texture here, the Fill and Use Fill Color options must first be enabled.

如果你想在这里定义一个纹理,填充和使用填充颜色选项必须首先被启用。

X Offset[-100000..100000%]
Y Offset[-100000..100000%]
X Scale[-100000..100000%]
Y Scale[-100000..100000%]

X 偏移量[-100000. . 100000% ] y 偏移量[-100000. . 100000% ] x 标度[-100000. . 100000% ] y 标度[-100000. . 100000% ]

These parameters move and scale the projected spline in the X and Y directions. Use negative Scale values to mirror the spline projection.

这些参数在 x 和 y 方向上移动和缩放投影样条。使用负缩放值来镜像样条投影。

Plane

飞机

Defines which plane in the spline’s coordinate system is used for the projection. For spline primitives, choose the XY plane.

定义样条曲线坐标系中的哪个平面用于投影,对于样条基元,选择 XY 平面。

Single Pixel

单像素

Enable this option to set the line’s thickness to one pixel (the Line Width and Smooth Width options will then be disabled). If the lines seem jagged, in the Render Settings, on the Antialiasing tab, set Antialiasing to Best. (Textures are not smoothed in the Geometry antialiasing mode).

启用此选项可以将线条的粗细设置为一个像素(然后将禁用线条宽度和平滑宽度选项)。如果线条看起来参差不齐,在渲染设置中,在反走样选项卡上,设置反走样为最佳。(纹理在几何反走样模式下是不平滑的)。

Line Width[0..10000%]
Smooth Width[0..10000%]

线宽[0. . 10000% ]平滑宽度[0. . 10000% ]

These settings will only be available if Single Pixel is disabled. The Line Width defines the line’s thickness, Smooth Width applies a soft edge to the line unless set to 0%.

这些设置将只有在单像素被禁用时才可用。线条宽度定义线条的粗细,光滑宽度在线条设置为0% 时应用软边缘。

Caps

帽子

This option does two things. First, it defines whether the ends have a semicircular cap (option enabled) or no cap (option disabled). Second, if enabled, it prevents the artifacts shown below from appearing.

这个选项有两个作用。首先,它定义两端是否有一个半圆形的上限(启用选项)或没有上限(禁用选项)。其次,如果启用,它将阻止下面显示的工件出现。

Caps with Smooth Width disabled. 平滑宽度禁用的帽子

Fill
Use Fill Color

填充颜色

To fill areas inside the spline, enable the Fill option. If the Use Fill Color option is enabled, the Fill Color is used to fill the spline, otherwise the Line Color is used.

若要填充样条内的区域,请启用“填充”选项。如果启用“使用填充颜色”选项,则使用“填充颜色”来填充样条,否则使用“线条颜色”。

Bump Width[0..10000%]

凹凸宽度[0. . 10000% ]

From top to bottom: Increasing Bump Width value. 从上到下: 增加凹凸宽度值

Defines the width of the bump effect around the lines. This is only relevant if you enable the Spline shader in the Bump channel.

定义线条周围凹凸效果的宽度。这只有当你在 Bump 通道中启用样条着色器时才有用。

Text Spline
Text
Font
Align
Height[-∞..+∞m]
H Spacing[-∞..+∞m]
V Spacing[-∞..+∞m]

字体对齐高度[-∞ . . + ∞ m ] h 间距[-∞ . . + ∞ m ] v 间距[-∞ . . + ∞ m ]

Here you can enter text that will be projected onto the texture. Set Plane to XY (the default plane for spline primitives). See Text Spline.

在这里你可以输入文本,将投影到纹理。设置 Plane 为 XY (样条基元的默认平面)。参见文本样条。

Using the Spline shader

使用样条着色器

Projecting the spline onto an object can seem tricky at first. Proceed as follows.

将样条曲线投影到一个物体上一开始看起来很棘手。

  1. Ensure the spline is smaller than the object. Drag & drop the spline into the Spline box in the 确保样条小于对象。将样条拖放到Attribute Manager 属性管理器 (if the box is ghosted, disable the Text Spline option). (如果框是鬼影,禁用文本样条选项)
  2. Set 预备Plane 飞机 to the plane in which the spline lies or mostly lies (this is XY for spline primitives by default). Enable Fill and choose background texture and line texture colors that will make the spline easy to see on the object. 到样条曲线位于或大部分位于的平面(默认情况下,样条基元是 XY)。启用填充并选择背景纹理和线条纹理颜色,这将使样条容易在对象上看到
  3. Fine-tune the position and size using 微调的位置和大小使用X Offset 偏移量, Y Offset Y 偏移量, X Scale X 比例尺 and Y Scale Y 量表.