APP

adom-glb2png

Render a GLB to a PNG via headless three.js. CLI sibling to step2glb / adom-pin1-truth — gives Claude (and you) a way to verify 3D component models without spinning up a webview screenshot loop.

💬 Sample prompts Paste any of these into Claude Code to use this app
0402 iso adom-glb2png R_0402.glb --view iso --size 600 --out R_0402.png
Top down adom-glb2png MyChip.glb --view top --size 800 --out MyChip_top.png
Quick check adom-glb2png foo.glb
Help adom-glb2png --help
Version adom-glb2png --version
Open this app

Paste this into Claude Code (VS Code panel, Adom editor, or terminal) to install:

Open the Adom Wiki page for the "adom-glb2png" app at https://wiki-ufypy5dpx93o.adom.cloud/wiki/apps/adom-glb2png and tell me how to use it.

adom-glb2png

Render a GLB file to a PNG via headless three.js. Useful for verifying 3D component models without spinning up a webview + screenshot loop.

Usage

adom-glb2png <glb-path> [--view top|iso|front|side|bottom] [--size N] [--out path]
  • --view — camera direction, defaults to iso
  • --size — output image is square size × size, defaults to 800
  • --out — output PNG path, defaults to <basename>.png

Exit codes: 0 on success, 1 on render error, 2 on bad input.

How it works

A small Bun-compiled binary that spins up a headless Chromium (via puppeteer) pointing at a tiny three.js viewer page, loads the GLB, frames the camera so the bbox diagonal fills ~70% of the viewport, screenshots, exits.

  • Camera near-plane is 0.0001 because most KiCad-pipeline GLBs use meters (a 0402 resistor's bbox diagonal is ~0.0012m).
  • Double-render with requestAnimationFrame between passes makes the output buffer non-empty reliably under SwiftShader.
  • First run downloads Chromium (~150 MB) into ~/.cache/puppeteer/. Subsequent runs reuse the cache.

Source

github.com/adom-inc/adom-glb2png

ADOM
adom-glb2png 28 days ago
v0.1.0 Linux x64 — Bun-compiled, includes puppeteer/three.js. ~100MB.
98.0 MB

Sub-Skills
?
What are Sub-Skills?

Sub-skills are community-contributed AI skill extensions for this component. They teach AI assistants about specific tools, configurators, or workflows.

Examples:

  • A manufacturer’s configuration tool for a motor controller
  • A community-written design guide for an amplifier circuit
  • An automated test/validation script for a sensor module

How to add one: Click Add Sub-Skill, provide the URL to your skill and a brief description. Submissions are reviewed by the Adom team before going live.

No sub-skills yet. Be the first to contribute one!