本文へ移動
cccskills
無料GitHub で公開

blender-npr-cycles

Build and validate Blender 5.2 Cycles 3D-to-2D materials using four camera-plane-offset Shader Raycast tests to derive an editable silhouette mask, combined with Cycles-compatible toon or flat shading. Use when a Cycles render needs an in-material outline without Shader to RGB.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md4.2 KB
  • agents/openai.yaml240 B
  • references/cycles-raycast-outline.md3.5 KB
  • scripts/build_cycles_npr.py15.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Blender NPR Cycles

Create a Cycles-compatible object-outline mask with Blender 5.2's Shader Raycast node. This is a shader workflow, not Geometry Nodes.

Suite Authority

Follow ../blender-production-router/references/production-protocol.md and ../blender-production-router/references/native-component-contract.md. The Router owns route, stage, budgets, rollback, and pauses. This skill owns Cycles raycast shading and outline evidence only; it cannot reroute, restart analysis, or use NPR to conceal geometry defects.

System Choice And Asset Boundary

Read ../blender-production-router/references/system-choice-contract.md. A requested stylized, shader, or compositor candidate may be discovered by blender-local-asset-library, but this Skill owns whether it is compatible with Cycles and the four-raycast outline method. Do not import an Eevee-only Shader to RGB graph or a Geometry Nodes outline merely because it comes from a local asset library.

Require passed formal topology, Structural Forms, Transition Forms, connection, silhouette, and real-bevel gates first. Raycast outlines may stylize an accepted surface; they are not evidence of a valid contour, welded shell, manufactured radius, or clean intersection.

Availability Gate

  • Require Blender 5.2 or newer.
  • Require Cycles and ShaderNodeRaycast.
  • Never substitute Eevee-only Shader to RGB.
  • If the Blender version lacks Shader Raycast, route to inverted hull, Line Art, Freestyle, or compositor line extraction and record the fallback.

Raycast Method

For each camera-plane offset +X, -X, +Y, and -Y:

  1. Transform the offset vector from Camera space to World space.
  2. Scale it by the requested outline width.
  3. Add it to Geometry Position to create the ray origin.
  4. Multiply Geometry Incoming by -1 to point toward the camera.
  5. Run Shader Raycast with a bounded ray length.
  6. Read Is Hit.

Multiply the four hit masks. A point that remains covered in all four shifted tests is interior; a point that fails at least one test becomes outline. Use the result to mix a dark outline shader with a Cycles-compatible base shader.

Use scripts/build_cycles_npr.py to build:

  • one reusable ray-sample shader group;
  • one four-direction outline-and-toon shader group;
  • one owned material on explicitly selected mesh objects.

The script defaults to local-object ray tests so nearby objects do not contaminate the silhouette. Scene-aware ray tests must be an intentional choice.

Hard Rules

  • Do not reset the scene or World.
  • Do not replace an existing user material without explicit approval.
  • Do not use Shader to RGB in Cycles.
  • Do not implement this method as Geometry Nodes.
  • Do not use unlimited ray distance or an unbounded width.
  • Do not assume world-space width is screen-space constant. Test near and far cameras.
  • Do not silently enable scene-aware ray tests; neighboring geometry can create false outlines.
  • Account for four additional shader-ray queries per shaded point when setting render samples, subdivision, and resolution.
  • Disable the outline and verify neutral clay plus wireframe before accepting the NPR result.

Validation Gate

Check all of the following:

  • Cycles is active and Blender is at least 5.2.
  • The sample group contains Camera-to-World vector transform, scaled offset, shifted position, reversed Incoming direction, and Shader Raycast.
  • The look group contains exactly four ray-sample instances with +X/-X/+Y/-Y offsets.
  • Three multiply operations combine all four Is Hit values.
  • Local-only behavior matches the requested interaction policy.
  • Front, profile, three-quarter, near, and far renders show a coherent outline.
  • Neighboring-object, concavity, thin-part, transparency, displacement, and animation tests have been reviewed.
  • Render cost and unique review-image paths are reported.

Read references/cycles-raycast-outline.md for the reconstructed graph, limitations, fallbacks, and official Blender documentation.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Plan, build, place, and validate physically meaningful Blender object assemblies, including manufactured part boundaries, mechanical seams, mounting interfaces, pivots, hierarchy, constraints, instancing, modular grids, connector planes, and precision snapping. Use when several objects must form one product, machine, architectural module, vehicle, furniture item, mechanism, or environment structure without incorrectly welding independent parts, eyeballing alignment, or leaving continuous shells as overlapping primitives.

日本語の概要は準備中です。原文の説明を表示しています。

XliuXjianX/blender-production-skills2522026年8月15日 更新

Select, build, and validate Blender deformation and motion-control systems including Simple Deform, Curve, Lattice, Mesh Deform, Shrinkwrap, Surface Deform, Armature, shape keys, hooks, constraints, and drivers. Use when an object must bend, twist, taper, follow a path, conform to a surface, deform smoothly, articulate, or move through controlled mechanical relationships.

日本語の概要は準備中です。原文の説明を表示しています。

XliuXjianX/blender-production-skills2522026年8月15日 更新

Build and refine production Blender geometry through semantic vertex/edge/face editing, BMesh, subdivision control cages, Boolean construction, Displace relief, remesh, sculpt preparation, retopology, and deliberate surface connections. Use after blockout for hard-surface, product, organic, architectural openings, terrain/relief, or reference-driven assets when shape quality, topology, continuity, or realistic part integration matters.

日本語の概要は準備中です。原文の説明を表示しています。

XliuXjianX/blender-production-skills2522026年8月15日 更新

Build, inspect, audit, and refactor Blender Geometry Nodes systems for procedural models, instancing, modular effects, curves, scattering, flocks, data visualization, fields, simulation zones, and node-graph cleanup. Use whenever a Blender task specifically calls for Geometry Nodes, reusable procedural node graphs, node connections/layout, or a scalable procedural asset.

日本語の概要は準備中です。原文の説明を表示しています。

XliuXjianX/blender-production-skills2522026年8月15日 更新

Audit Blender scenes and assets for topology, transforms, normals, surface continuity, classified connections, intersections, modifier/node intent, procedural performance, simulation stability, protected-scene changes, and fixed-view visual evidence. Use after every major modeling or simulation stage and before render, bake, export, or claims of completion.

日本語の概要は準備中です。原文の説明を表示しています。

XliuXjianX/blender-production-skills2522026年8月15日 更新

Analyze reference-image illumination and build accountable Blender lighting from shadow direction, shadow length, softness, exposed faces, environment fill, bounce, practical sources, and material response. Use for reference matching, daylight, interiors, exterior environments, product scenes, atmospheric lighting, or any task where lights must be physically and visually justified instead of added as arbitrary fill or rim lights.

日本語の概要は準備中です。原文の説明を表示しています。

XliuXjianX/blender-production-skills2522026年8月15日 更新

XliuXjianX のスキルをすべて見る

このスキルの問題を報告する