render-an-avatar
БесплатноБез исполняемых скриптовНе проверенRender a rigged or static glTF/GLB avatar to a PNG, an animated PNG or terminal output with no GPU, WebGL or headless browser, using @three-ws/render. Use…
от nirholas★ 289 звёзд на GitHubОб этом скилле
Render a GLB with @three-ws/render
@three-ws/render is a pure JavaScript software rasterizer for glTF/GLB with skinning and animation. It needs no GPU, no WebGL and no browser, so it runs in CI, servers and sandboxes. Node 20+.
CLI
npx @three-ws/render <model.glb | url> [options]
| Flag | Meaning |
|---|---|
--out <file> |
Write a PNG (animated PNG when --frames is above 1). Without it the avatar is drawn in the terminal. |
--width <n>, --height <n> |
Output size in pixels. |
--focus <mode> |
full, bust or head (default full). |
--preset <name> |
studio, terminal or daylight. |
--clip <name or index> |
Clip to play, from the model or --animation. |
--animation <file> |
GLB or clip JSON to retarget onto this rig. |
--frames <n>, --fps <n> |
Frame count and rate (default 1, or 36 with --spin, --clip or --loop; 20 fps). |
--spin <deg> |
Turntable degrees across the loop. |
--yaw <deg>, --pitch <deg> |
Camera angles (default 26 and 6). |
--bg <color> |
Hex colour or transparent. |
--loop |
Keep animating in the terminal until interrupted. |
--blocks |
Force half-blocks even where inline images work. |
--clips |
List the model's clips and exit. |
JS API
import { renderAvatar, encodePng, encodeApng } from '@three-ws/render';
import { writeFile } from 'node:fs/promises';
const { frames } = await renderAvatar('model.glb', { width: 512, height: 512, focus: 'bust' });
await writeFile('avatar.png', encodePng(frames[0]));
Other exports: AvatarModel.load(source), model.play(clip), model.setTime(s), renderFrame(model, options), renderFrames(model, options), encodeApng(frames, { fps }), toHalfBlocks, toKitty, toITerm, detectTerminal, parseGlb, packGlb, retargetClip, normalizeBoneName. source is a URL, a file path, an ArrayBuffer or a typed array. Frames are { width, height, data } with straight-alpha RGBA. Hold the AvatarModel when rendering one avatar many times: decoding dominates the first render.
Limits
It is a CPU rasterizer, not a path tracer: expect software-render speed and see the README's "What it does not render" section before promising a material effect. Meshopt-compressed and quantized glTF load fine. Draco geometry throws (re-export with gltfpack -cc), KTX2 textures fall back to the base colour, morph targets are not evaluated (skeletal animation is), and PBR is approximated with a studio light rig.
Worked example
npx @three-ws/render avatar.glb --clipsto list animations.npx @three-ws/render avatar.glb --clip walk --frames 24 --width 288 --height 288 --out walk.pngfor an animated PNG.npx @three-ws/render avatar.glb --spin 360 --frames 36 --out spin.pngfor a turntable.
Установить render-an-avatar в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл render-an-avatar?
Render a rigged or static glTF/GLB avatar to a PNG, an animated PNG or terminal output with no GPU, WebGL or headless browser, using @three-ws/render. Use when the user wants a thumbnail, turntable or animation frame of a GLB, or a preview of a model in the terminal.
Как установить скилл render-an-avatar?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл render-an-avatar запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic