ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Render Stl Png

Skill by ajmwagar

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/ajmwagar/render-stl-png
Or

render-stl-png

Render an STL to a PNG from a nice, consistent 3D angle ("Blender-ish" default perspective) with a solid color.

This is a deterministic software renderer:

  • No OpenGL
  • No Blender dependency
  • Uses a simple camera + z-buffer + Lambert shading

Inputs

  • STL file path (ASCII or binary)
  • Output PNG path

Parameters

  • --size <px>: image width/height (square), default 1024
  • --bg "#rrggbb": background color, default #0b0f14
  • --color "#rrggbb": mesh base color, default #4cc9f0
  • --azim-deg <deg>: camera azimuth around Z, default -35
  • --elev-deg <deg>: camera elevation, default 25
  • --fov-deg <deg>: perspective field of view, default 35
  • --margin <0..0.4>: framing margin as fraction of view, default 0.08
  • --light-dir "x,y,z": directional light vector, default -0.4,-0.3,1.0

Usage

One-shot

python3 scripts/render_stl_png.py \
  --stl /path/to/model.stl \
  --out /tmp/model.png \
  --color "#ffb703" \
  --bg "#0b0f14" \
  --size 1200

Wrapper (recommended)

The wrapper creates a cached venv (so pillow is available) and runs the renderer.

bash scripts/render_stl_png.sh /path/to/model.stl /tmp/model.png --color "#ffb703"

Notes

  • This is meant for marketing/preview images, not photorealism.
  • If you need studio lighting / materials, use Blender — but this gets you 80% quickly and reproducibly.

Metadata

Author@ajmwagar
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-ajmwagar-render-stl-png": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

create-dxf

Create RFQ-ready 2D DXF (and optional SVG preview) files from a strict, validated JSON spec derived from a natural-language design prompt. Use for sheet/plate parts (waterjet/laser/router) like mounting plates, gussets, brackets, hole patterns, and slots.

ajmwagar 4473

find-stl

Search and download ready-to-print 3D model files (STL/3MF/ZIP) for a concept or specific part by querying Printables (first). Use when an agent needs to find an existing model, capture license/attribution, download the source files, and output a local folder + manifest for quoting/printing.

ajmwagar 4473

image-to-relief-stl

Turn a source image (or multi-color mask image) into a 3D-printable bas-relief STL by mapping colors (or grayscale) to heights. Use when you have an image from an image-gen skill (nano-banana-pro, etc.) and want a real, printable model (STL) via a deterministic pipeline.

ajmwagar 4473

trace-to-svg

Trace bitmap images (PNG/JPG/WebP) into clean SVG paths using potrace/mkbitmap. Use to convert logos/silhouettes into vectors for downstream CAD workflows (e.g., create-dxf etch_svg_path) and for turning reference images into manufacturable outlines.

ajmwagar 4473

netlify

Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/<domain>). Use when Avery asks to deploy a new site, connect a repo to Netlify, configure build/publish settings, set environment variables, enable deploy previews, or automate Netlify site creation.

ajmwagar 4473