Search

PythonReactSEOPDF
OpenClaw

Render Stl Png

render stl png

ajmwagar0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install ajmwagar/render-stl-png

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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.

Source information

Source
github
Repository
openclaw/skills
Path
skills/ajmwagar/render-stl-png
Version
—
Commit
3faa855b291a063306378584c16cab32ec4048ba
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 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

```bash
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
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.

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.