The embroidery workflow

From flat SVG to 3D embroidery.

The client’s artwork was already visible on a 3D cap, but it looked flat. The goal was to add the appearance of thread and the raised details specified in each design.

The starting point

Each logo came with its own colors, size and treatment instructions. Some regions needed to remain flat, while others needed a thinner or more pronounced raised effect.

Flat SVG artwork shown on a 3D cap in the original editor

The starting point: artwork displayed as a flat SVG on the cap.

The approach

Inkscape is an application for creating and editing vector graphics. Ink/Stitch is an extension for designing embroidery. We used them behind a Python API to convert prepared SVG artwork into a stitch plan, previews and materials for the 3D editor.

The client’s guide identifies the regions to raise. We apply the treatment to the specified area while preserving the artwork’s colors and physical dimensions.

Adjusting the appearance and relief of the embroidered artwork in the editor.

The material maps

The base-color map carries the logo’s visible colors. Normal and height maps add thread detail and relief, while the remaining maps describe how the surface should respond to light and where it is visible.

Base color, normal, height, roughness, metalness and alpha maps for a logo

An example logo’s base color and accompanying material maps.

A few problems we solved

Logos arrived in different sizes, so we normalized their dimensions in millimeters while retaining their proportions. Disconnected letters could create unwanted travel lines; trimming between regions helped avoid them.

A realistic-looking preview also did not behave correctly when used as a single 3D texture. Separating color, height and surface properties made the result work better under the editor’s lighting.

A logo with visible stitch relief on a black cap in the editor

Embroidery applied to a cap in the editor.

The output

Along with the previews and material maps, the workflow generated editable artwork, stitch data and a DST file. One documented delivery batch covered 60 teams, 120 front and rear logo placements, and 720 material maps.

Back to the case study ↗