К основному содержанию
скилл CX Codex

blender-stylized-npr — скилл для Claude Code: стилизация Blender

Скилл blender-stylized-npr для Claude Code настраивает NPR-стилизацию в Blender: тонирование, контуры и Grease Pencil. Включается для аниме-, мультяшных и комиксных моделей и стилизованных объектов для игровых движков.

MIT 458 установок ★ 2 624 обновлён 2026-11-13

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add EL4CTEO/blender-skills --skill blender-stylized-npr -a claude-code
Открыть на GitHub

Что делает blender-stylized-npr

Скилл настраивает в Blender тонирование с двумя или тремя цветовыми полосами, оттенком теней, бликом по краю и жёстким бликом. Скрипт scripts/toon_setup.py добавляет узел NPR_Toon в материалы и сохраняет исходные связи для восстановления через --remove. Повторный запуск меняет параметры на месте.

Контуры можно сделать через оболочку Solidify, Line Art или Freestyle; для аниме-лиц скилл описывает перенос пользовательских нормалей с эллипсоида-прокси. Режим освещения сцены использует Shader to RGB и работает только в EEVEE. Перед --outline нужно применить масштаб объекта, иначе толщина оболочки будет считаться в его координатах.

Для игровых движков узловое тонирование не экспортируется: рампу нужно собрать в движке, используя направление того же солнца. Для плоского glTF-материала предлагаются шейдер Background или смешивание через Light Path; Grease Pencil-примеры рассчитаны на API Blender 5.x.

Какие задачи решает

  • настроить cel shading с двумя или тремя полосами
  • добавить обводку модели для рендера или игрового движка
  • перенести пользовательские нормали на лицо персонажа
  • подготовить unlit-материал для экспорта в glTF

Примеры запросов агенту

  • Настрой для Hero cel shading с тремя полосами и контуром для игрового движка.
  • Добавь Line Art к сцене и убери оболочку контура у Hero.
  • Перенеси пользовательские нормали с эллипсоида-прокси на лицо персонажа.

Как установить blender-stylized-npr

1Через Skills CLI (Vercel)

npx skills add EL4CTEO/blender-skills --skill blender-stylized-npr -a claude-code

2Вручную: положить файлы

~/.claude/skills/blender-stylized-npr/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/blender-stylized-npr/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о blender-stylized-npr

Как установить blender-stylized-npr в Claude Code?

Выполните npx skills add EL4CTEO/blender-skills --skill blender-stylized-npr -a claude-code. Файл скилла находится по пути ~/.claude/skills/blender-stylized-npr/SKILL.md.

Что делает blender-stylized-npr?

Настраивает в Blender NPR-шейдинг, контуры и Grease Pencil-линии. Также описывает работу с нормалями для аниме-лиц и подготовку стилизованных материалов к игровым движкам.

Какой режим освещения работает в Cycles?

Режим key работает в Cycles и EEVEE. Режим scene, который учитывает все источники света и их тени, доступен только в EEVEE.

Исходный текст

SKILL.md · MIT
---
name: blender-stylized-npr
description: Stylized / NPR looks in Blender 5.3 - toon and cel shading (bands, shadow tint, rim, hard specular), anime faces with custom normals, inverted-hull outlines with smoothed outline normals for game engines, Line Art and Freestyle lines, Grease Pencil drawing, unlit export. Use for anime, cartoon, comic, cel-shaded or outlined styles.
license: MIT
metadata:
  author: blender-agent-skills
  version: "1.2.0"
---

# Stylized / NPR

The execution model is in `blender-core`. Base colors still come from `blender-pbr-materials`/`blender-texturing`. This skill replaces how they're lit.

## One call each
```
scripts/toon_setup.py -- --objects Hero Sword --bands 2 --rim 0.4 --outline 0.004
scripts/toon_setup.py -- --objects Hero --bands 3 --spec 0.3 --smooth-normals      # + engine outline data
scripts/toon_setup.py -- --objects Hero --lighting scene                           # EEVEE: all lights + cast shadows
scripts/toon_setup.py -- --line-art --outline 0                                    # scene-wide Line Art
scripts/toon_setup.py -- --objects Hero Sword --remove --line-art                  # exact restore
```

## toon_setup.py
- Inserts an `NPR_Toon` emission group between each material's Principled base color and the output, and records the original surface link for `--remove`. Re-running updates values in place.
- **`--lighting key`** (default, Cycles + EEVEE): shading = N·L against one sun (`--light`; `NPR_Key` is created if there's none). Drivers follow the sun's rotation, so rotate the sun to art-direct the shadow shape. This is how engine toon shaders work, and the look matches after export.
- **`--lighting scene`**: Shader to RGB on a white diffuse, so every light and cast shadow shapes the bands. **EEVEE only.** Measured: in Cycles, Shader to RGB returns a constant regardless of light (identical render at 0, 3 and 10 W/m² sun).
- Bands: 2 (lit/shadow, classic anime) or 3 (adds a mid band 0.45 above `--threshold`). `--softness` (0.02) is the half-width of the band edge, so 0 aliases. `--shadow-tint` multiplies the base color: use cool and saturated (0.6, 0.55, 0.75), never grey/black, because grey shadows read as dirty.
- `--rim` (0–1) adds a lit-side rim, and `--spec` (0–1) a hard Blinn highlight disc (0.2–0.4 for hair/metal, 0 for skin).
- Sets **view transform Standard**: AgX/Filmic desaturate and compress flat colors, so the albedo you pick is the pixel you get only under Standard. The original is restored on `--remove`.

## Outlines (pros use several at once)
| Method | Where it works | Notes |
|---|---|---|
| Inverted hull (`--outline`, m) | Cycles, EEVEE, engines | Solidify outward, flipped normals, outline slot, Backfacing→transparent. Width 2–6 mm on a 1.75 m character. `--outline-group` = vertex group for width (taper toward tips, 0 inside the mouth) |
| `--smooth-normals` | engine outline shaders | `NPR_OutlineNormal` corner color = position-welded normal in tangent space (0.5 + 0.5n). Hard edges/UV splits no longer open gaps. Decode `n = TBN·(c·2−1)` |
| Line Art (`--line-art`, Grease Pencil) | renders | contour + crease + intersection from the camera. Needs a scene camera. `--line-radius` (m) |
| Freestyle | renders | `scene.render.use_freestyle = True`, `line_thickness` px. Slowest, most options |
Known hull limits: lines at intersections and inner creases are missing (use Line Art for those in renders), and hard-edged meshes split the hull. In Blender, merge by distance before the Solidify. In engines, use `--smooth-normals`.

## Anime faces and hair
- Face shadows from real normals look blotchy. Transfer **custom normals** from a simple ellipsoid proxy: a Data Transfer modifier with `use_loop_data=True`, `data_types_loops={'CUSTOM_NORMAL'}`, `loop_mapping='POLYINTERP_NEAREST'` (no auto smooth needed since 4.1), masked by a face vertex group. Engines import the custom normals (FBX/glTF export normals).
- For a stylized nose/cheek shadow, many games use an SDF face shadow texture sampled with the light angle in-engine. Author it as a grayscale threshold map, not in the node tree.
- Hair: a strong `--spec` plus a hand-painted highlight band ("angel ring") in the base color texture.

## Grease Pencil (5.x API)
```python
gp = bpy.data.grease_pencils.new("Ink"); ob = bpy.data.objects.new("Ink", gp); scene.collection.objects.link(ob)
mat = bpy.data.materials.new("Ink"); bpy.data.materials.create_gpencil_data(mat); gp.materials.append(mat)
drawing = gp.layers.new("Lines").frames.new(1).drawing
drawing.add_strokes([3]); s = drawing.strokes[0]
for i, p in enumerate(s.points): p.position, p.radius = (i * 0.5, 0, 0), 0.01   # radius in m
```
Strokes expose `cyclic`, `material_index`, `fill_id`, `hide_stroke`. Raw attributes: `drawing.attributes` (`position`, `radius`). `GreasePencilv3`/`grease_pencils_v3` are gone (5.0). 5.2 Line Art can emit fill strokes (`fill_strokes`).

## To game engines
Node toon shading doesn't export. Export the base color textures and rebuild the toon ramp in the engine (UE material/post-process, Unity URP toon shader, Godot `ShaderMaterial`), driven by the same sun direction. Ship the hull as a second material slot (apply the modifier), or as `NPR_OutlineNormal` for a shader outline pass.
For flat, unlit assets in glTF, use a **Background** shader, or Light Path *Is Camera Ray* mixing Transparent→Background: both export as `KHR_materials_unlit`. Emission exports as emissive on a black base, not unlit (measured).

## Gotchas
- Apply scale before `--outline`: Solidify thickness is in object space.
- Bloom and AO fight the flat look. Keep the world dim and uniform, and use one key light plus maybe a rim light.
- `--lighting scene` bands shift with light energy (luminance 0.3 ≈ threshold 0). Raise/lower `--threshold` instead of the light power.

© blender-agent-skills · MIT · EL4CTEO/blender-skills

Похожие скиллы

Все скиллы по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →
stylized-style https://github.com/arjun988 Скилл stylized-style для Claude Code задаёт художественное направление для стилизованной графики в Blender. Включается для toon-рендера, hand-painted текстур и игровых или анимационных проектов без фотореализма. CX Codex +1 608установок paint-stylized-backgrounds CodePawl Скилл paint-stylized-backgrounds для Claude Code создаёт стилизованные фоны и окружение для фильмов, игр и иллюстраций. Помогает превратить фото или рендер Blender в рисованную сцену, подготовить варианты освещения и добавить движение. CX Codex +1 ★ 350звёзд репо blender-motion-state-inspection affaan-m Скилл blender-motion-state-inspection для Claude Code извлекает параметры скелета, костей и контактов в Blender. Проверяет скольжение ног, проваливание в пол и инверсию осей ретаргетинга. CX Codex +1 7 000установок blender-web-pipeline freshtechbro Скилл blender-web-pipeline настраивает экспорт 3D-моделей из Blender в веб-формат glTF 2.0. Он помогает автоматизировать сжатие геометрии, запекание текстур и пакетную обработку сцен. CX Codex +1 4 100установок blender-modeling RobLe3 Скилл blender-modeling для ИИ-агента: создаёт и правит 3D-меши в Blender по текстовому запросу — примитивы, модификаторы, bmesh-правки. CX Codex +1 4 100установок blender-materials RobLe3 Скилл blender-materials для Claude Code: создаёт и назначает PBR-материалы в Blender через Principled BSDF — металл, стекло, пластик, ткань, кожу. Выполняет запросы «как медь» или «матовую поверхность». CX Codex +1 3 100установок

Из того же набора28

Весь набор →
blender-simulation Скилл blender-simulation для Claude Code и других платформ, автоматизирующий физические симуляции в Blender 5.3. Запускает скрипты для настройки жёстких тел, ткани, жидкостей и рендеринга без графического интерфейса. CX Codex +1 504установок blender-time-of-day Скилл blender-time-of-day для Claude Code, управляющий освещением и атмосферой сцены в Blender 5.3. Выбирает время суток и погодные условия, настраивая параметры неба, солнца, тумана и композитора. CX Codex +1 489установок blender-weather-fx Скилл blender-weather-fx для Claude Code создаёт погодные эффекты в сценах Blender 5.3. Добавляет осадки, мокрые поверхности, лужи, снег или молнии по запросу на сцену с погодой. CX Codex +1 476установок blender-addon-development Скилл blender-addon-development для Claude Code помогает создавать и исправлять расширения Blender. Включается при работе над аддоном, инструментом или интерфейсом. CX Codex +1 463установок blender-texturing Скилл blender-texturing для Claude Code автоматизирует создание текстур и слоёв умных материалов в Blender 5.3. Запускается при настройке износа, грязи или декалей на 3D-моделях. CX Codex +1 431установок blender-environment-kits Скилл blender-environment-kits для Claude Code собирает игровые окружения в Blender 5.3: рельеф, биомы и модульные наборы. Включается при создании уровней, лесов, зданий или подземелий. CX Codex +1 424установок blender-clothing Скилл blender-clothing для Claude Code автоматизирует создание игровой одежды в Blender 5.3. Извлекает геометрию из полисетки тела, переносит веса костей и устраняет сквозные пробивания ткани. CX Codex +1 416установок blender-hair-grooming Скилл blender-hair-grooming для Claude Code автоматизирует создание волос, меха и щетины в Blender с помощью кривых и процедурных нод. CX Codex +1 387установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой