Substance Designer supports a limited form of Vector Graphics, through the Scalable Vector graphics format. SVG files can be brought in as resources in different ways, to be used as resources for your graphs. Note that Substance Designer does not support Adobe Illustrator .AI files.
SVG files can be created or edited through the atomic SVG node, they can also be created by the UV to SVG baker.
SVG Resources in a package have a number of attributes that you can customize. Most attributes don't have a major purpose and are for library filters, but a minority affects rendering quality.
|Identifier||used for referencing inside packages. No reason to change this|
|File Path||Used to reference file on disk in SBS. Do not modify directly, used Relocate... functionality!|
|Description||Used for library descriptions.|
|Category||Used for Library filters.|
|Label||Used for Library filters.|
|Author||Used for Library filters.|
|Author URL||Used for Library filters.|
|Tags||Used for Library filters.|
|User Data||Optional extra data, not used on bitmaps.|
|Show In Library||Determines if bitmap should be hidden in the Library View.|
|Vector Graphics Quality||Affects rendering quality. Range is not linear, best quality is achieved at 0.5, beyond that it starts to optimize again.|
Because Substance Designer only supports limited functionality, authoring SVG's is bound by limitations.
In general the following is true:
- Only simple primitive shapes and paths are guaranteed to draw correctly.
- Stroke is supported, but only results in 1px stroke, as stroke styling is ignored.
- Dashed line styles will definitely break.
- Text needs to be converted to paths/outline to be rendered.
- Advanced features like gradients are not supported.
- Style Elements for CSS properties are not supported.
Export options are slightly different for applications:
Illustrator allows the most control over your SVG exports if you pay attention to the following options.
- Use only Save As, not Export As!
- SVG Profile does not matter much, though the Tiny profile will (mostly) default to settings that are definitely correct.
- Fonts must be set to Convert to Outline to work.
- CSS Properties should not be set to Style Elements, all other options will work.
- Uncheck Preserve Illustrator Editing Capabilities.
- Strokes will not work well, use Object > Path > Outline Stroke to get them to show up.
Artboards can affect the result in Substance Designer. Some Illustrator file templates introduce multiple Artboards. try to have only one, properly cropped artboard, and have it selected in the Artboard window when saving as SVG.
Inkscape saves natively as SVG, but with less control over the file format. Inkscape files will mostly work natively in Substance Designer, but with limitations:
- Strokes only show as 1px wide in Substance Designer, use Path > Stroke to Path to get them to work,
- Text will not work, use Path > Object to Path to get text to work.
Photoshop has a very limited SVG exporter (File > Export >Export As..) that is currently unable to produce correct results for Substance Designer. You can get your shape and path information, but Style is always saved as Elements, which is incompatible.
It can be used for simple black and white shape masks, where a solution is to extract the Alpha from the SVG using Alpha Split.
Alternatively a Photoshop-exported SVG can be Imported, which lets you then edit the style information natively inside Substance Designer.