PNG to STL: Relief vs Silhouette Extrusion

A raised ring on a backing plate beside a through-hole extrusion.

Choose photo relief when brightness should become height on a base. Choose outline extrusion when you want a flat top and uniform thickness inside a shape, such as a badge or a ring.

A grayscale ring and two MeshOdyssey previews showing a raised relief on a square base and a standalone ring.
One grayscale PNG produces two meshes. The relief keeps a square base. The silhouette leaves the center open. Download the sample PNG

Photo relief turns brightness into height

The relief spans the image area and has a base. Brighter samples sit higher with the default brightness direction. The relief height controls how much height can be added above the base. Light and dark regions in a photo can come from lighting, so use a deliberately shaded image when you need predictable heights.

Transparency is treated as white in the image conversion. For predictable backgrounds, fill the transparent area with the desired light or dark tone in your image editor first.

Outline extrusion keeps pixels on one side of a threshold

With the default brightness direction, pixels at or above the threshold contribute to the shape. They get the same depth. The black area inside the sample ring stays empty at threshold 128, while the bright band becomes a ring.

If a dark logo is on a light background, invert brightness or swap the colors before export. A narrow gap or soft edge can disappear at a low sampling resolution. Inspect the preview before increasing quality, because more sampled pixels can also produce a larger mesh.

Try both modes on the same ring

The example uses a single 96 × 96 PNG. Keeping the width and input fixed makes it easy to see what each mode changes.

  1. Load the sample in PNG to STL. Select Photo relief and set the width to 80 mm, the relief height to 4 mm, and the base thickness to 1.5 mm.
  2. Generate the preview and rotate it to see the base under the ring. Export the STL if you want to compare the outputs.
  3. Switch to Logo / outline extrude. Leave the width at 80 mm, set depth to 4 mm, and leave the threshold at 128 with brightness inversion off. Generate again and look through the center of the ring.
  4. Reopen each STL and compare its bounds. The preview reports 80.0 × 80.0 × 5.4 mm for the relief and 65.0 × 65.0 × 4.0 mm for the silhouette. The silhouette fits inside the image width because the black border is removed.

Common questions

Which mode should I use for a grayscale map?
Use photo relief so a range of brightness values becomes a range of heights.
Why did my background become solid?
Light or transparent background pixels can pass the threshold. Check the source background and brightness direction.
Does a portrait become a complete 3D head?
The tool uses pixel brightness and outlines to make reliefs or extrusions. A complete head needs a different modeling workflow.
All guides