Freestyle SVG导出器

This add-on can export your Freestyle Renders into an SVG file. It can fill contours with their material color and can also export SVG animations.

../../_images/addons_render_render-freestyle-svg_suzanne.svg

Freestyle SVG Exporter生成的SVG结果示例。

Activation

This add-on can be enabled via Preferences ‣ Add-ons ‣ Render ‣ Freestyle SVG Exporter. The interface for the exporter should now be visible as a new panel in the Render tab.

参考

类别

渲染

面板

属性 ‣ 渲染 ‣ Freestyle SVG Export

Usage

Activate Freestyle rendering and then render your scene with Render Image. Your render will be displayed, and the SVG version will be saved to the default output path Properties ‣ Output ‣ Output.

选项

../../_images/addons_render_render-freestyle-svg_panel.png

Freestyle SVG导出面板。

模式

帧和动画的选项。 帧将渲染单帧,Animation将所有渲染的帧打包为一个单独 .svg 文件。

在不可见时切分

默认情况下,导出器不会将不可见顶点考虑在内并将它们导出为可见顶点。 某些描边修改器(如蓝图)将顶点标记为不可见以实现某种效果。 启用此选项将在遇到不可见顶点时分割路径,从而获得更好的结果。

填充色

物体的轮廓填充为他们的材质颜色。

Note

此功能有些不稳定,特别是用在动画中时。

描边端点样式

定义SVG输出中将有的描边顶点样式。

  • 斜接

    锋利的边角。

    圆形

    边角光滑。

    倒角

    边角斜切。

可导出的属性

参考

面板

属性 ‣ 视图层 ‣ Freestyle线条样式SVG导出

由于Freestyle笔画和SVG路径对象的表示方式根本不同,因此Freestyle和SVG之间的一对一转换是不可能的。 与Freestyle相比,相对于Freestyle定义了每个点的样式,SVG的主要缺点是在每个路径中定义它。 这意味着Freestyle可以产生更复杂的结果,这在SVG中是不可能实现的。

There are extended options for the exporter, located at the specific panels of the Freestyle renderer at the View Layers tab of the Properties. Those options are located at the Freestyle Line Style SVG Export panel, at the bottom of the tab.

可以导出的属性(未应用修改器)包括:

  • 基本颜色

  • 基本透明度

  • 基本厚度

  • 虚线

动画

导出器支持创建SVG动画。 当模式设置为动画时,渲染动画单帧 (F12) 或渲染动画所有帧 (Shift-F12) 时都会保存为单个文件。 大多数现代浏览器都支持SVG动画的渲染。

../../_images/addons_render_render-freestyle-svg_cube.svg

使用导出器渲染的SVG动画。

导出填充

填充是从Freestyle渲染结果中提取的彩色区域。 具体来说,它们是由轮廓和外轮廓边缘类型的组合定义,并结合了一些预测。 当SVG渲染器无法正确呈现导出器生成的路径时,填充结果可能不可预期。 这个问题在动画中更加明显。

../../_images/addons_render_render-freestyle-svg_pallet.svg

Freestyle SVG Exporter生成的SVG结果示例。 模型由 Julien Deswaef 提供。

填充支持洞和分层。当使用分层时,导出器将尝试使用patch同样的材质渲染物体。所导出的填充,特别是特别是分层顺序并不完美。大多数情况下,可以在Inkscape或者文本编辑器中轻松解决该问题。