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

build-wireframe-scan-reveal — скилл для Claude Code

Скилл build-wireframe-scan-reveal раскрывает Three.js-модель волной, которая ведёт проволочный каркас, а следом наращивает твёрдую поверхность. Каркас сгорает в финале.

MIT 1 500 установок ★ 7 995 обновлён 2026-10-25

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

Что делает build-wireframe-scan-reveal

Скилл создаёт два представления одной геометрии: LineSegments-каркас и солидный меш. Оба управляются единым uScanRadius в мировых координатах. Каркас опережает заливку на 520 единиц — пока волна движется, видна топология. После прохода каркас исчезает через smoothstep(.72, 1, t).

Длительность по умолчанию 3,4 секунды, радиус растёт по кривой 1 - (1 - t)^1.35. Два длинных синуса в unscanned() дают органичный фронт без искрения. Узкий рим алиасится, широкий превращается в туман — демо держит 135 единиц.

Временный каркас и его шейдер диспозятся сразу после завершения. Скрытая через opacity геометрия грузит GPU до конца сеанса. Без FFmpeg и рендера это не нужно — скилл работает с браузерным Three.js. Под prefers-reduced-motion показывает стоп-кадр на 62% радиуса, а не скрывает сцену.

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

  • провести волну раскрытия по 3D-модели с видимой топологией впереди
  • показать структуру меша перед появлением текстурированной поверхности
  • создать голографическую сборку объекта с горящим проволочным фронтом
  • заменить плоский fade-in геометрии на радиальное сканирование из точки
  • управлять двумя представлениями одной геометрии единым таймингом

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

  • Добавь сканирующее раскрытие для модели root.glb с началом волны в левом нижнем углу
  • Сделай так, чтобы каркас вёл заливку на 400 единиц и исчезал на последних 30% анимации
  • Поставь build-wireframe-scan-reveal и настрой волну на 2,8 секунды с органичным фронтом

Как установить build-wireframe-scan-reveal

1Через Skills CLI (Vercel)

npx skills add MengTo/Skills --skill build-wireframe-scan-reveal -a claude-code

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

~/.claude/skills/build-wireframe-scan-reveal/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/build-wireframe-scan-reveal/

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

Вопросы о build-wireframe-scan-reveal

Как установить build-wireframe-scan-reveal в Claude Code?

Запусти npx skills add MengTo/Skills --skill build-wireframe-scan-reveal -a claude-code, скилл появится в ~/.claude/skills/build-wireframe-scan-reveal/SKILL.md.

Что делает build-wireframe-scan-reveal?

Создаёт волну, которая раскрывает Three.js-геометрию: впереди проволочный каркас показывает топологию, следом наращивается твёрдая поверхность. Каркас исчезает после завершения прохода.

Зачем нужен лаг в 520 единиц между каркасом и заливкой?

Без отставания провода и заполнение приходят одновременно — читается как обычный wipe. Лаг даёт время увидеть структуру меша до того, как поверхность её закроет.

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

SKILL.md · MIT
---
name: build-wireframe-scan-reveal
description: Reveal Three.js geometry with an expanding world-space scan whose wire cage leads the solid surface, then burns away. Use for wireframe scanning, radial mesh reveals, survey pulses, holographic assembly, topology intros, and 3D model entrances where a plain opacity wipe does not explain the form.
---

# Build a Wireframe Scan Reveal

Make one world-space wavefront conduct both representations: draw topology at the front, hold the solid behind it, then remove the temporary cage. Reach for `technical-wireframe-info-layout` when wireframe is the page's permanent visual language; reach for `animation-on-scroll` when the conductor is DOM scroll rather than a 3D wave.

Extracted from `inner-green-3d.html`, where a survey pulse had to grow a procedural moss root through cards and type without reading as a circular mask.

## Pair two representations

Create the solid mesh and a temporary `LineSegments` cage from the same source geometry. Share `uScanOrigin`, `uScanRadius`, and time between their materials. Keep both in world space; local-space distance changes when a group is scaled or nested and tears the two fronts apart.

Discard the solid beyond the front, with a lag that leaves the cage visible first:

```glsl
uniform vec3 uScanOrigin;
uniform float uScanRadius;
uniform float uScanEnabled;

bool unscanned(vec3 worldPosition, float lag) {
  if (uScanEnabled < 0.5) return false;
  float wobble =
      sin(worldPosition.y * 0.011 + worldPosition.x * 0.007) * 36.0
    + sin(worldPosition.z * 0.021 + worldPosition.y * 0.013) * 17.0;
  return distance(worldPosition, uScanOrigin)
       > uScanRadius - lag + wobble;
}

// In the solid fragment shader:
if (unscanned(vWorldPosition, 520.0)) discard;
```

Use one origin outside the silhouette, usually low and left. A centered origin reads as a loading ring. Keep the two long sine terms; a perfectly circular front reads as a clip-path, while high-frequency noise makes the edge sparkle.

## Make the cage ride the front

Measure each line fragment against the same radius:

```glsl
float distanceFromOrigin = distance(vWorldPosition, uScanOrigin);
float rim = exp(-pow((distanceFromOrigin - uScanRadius) / 135.0, 2.0));
float trail = smoothstep(uScanRadius, uScanRadius - 950.0, distanceFromOrigin);
float alpha = (rim * 1.60 + trail * 0.34) * uWireOpacity;
```

Use additive blending, `transparent: true`, `depthWrite: false`, and a pale version of the scene accent. Keep depth testing on unless the cage must read through the object. Turning depth test off exposes the back half of dense topology and produces a bright unreadable ball.

## Animate one conductor

Use the landed timing as a starting point:

| parameter | default | failure prevented |
| --- | ---: | --- |
| duration | 3.4 s | a fast reveal reads as a flash |
| radius easing | `1 - (1 - t)^1.35` | linear travel stalls visually near the far corner |
| solid lag | 520 world units | zero lag makes wire and fill arrive as one wipe |
| rim width | 135 units | a narrow rim aliases; a wide rim becomes fog |
| wire trail | 950 units | no trail hides topology before it can be read |
| wire fade | `smoothstep(.72, 1, t)` | persistent cage competes with the finished surface |
| radius reach | scene diagonal × 1.3 + 900 | the far corner remains clipped after completion |

Snap the cage on over the first 6% of the timeline, then fade it during the final 28%:

```js
const e = Math.min(1, elapsed / 3.4);
scanRadius.value = easeOutPow(e) * maxRadius;
wireOpacity.value = Math.min(1, e / 0.06) * (1 - smoothstep(0.72, 1, e));
```

At completion, disable the discard branch, remove the cage, and dispose its geometry and material. Hiding it with opacity leaves duplicate geometry and shader work alive for the rest of the page.

## Stage and size the scan

Resolve `maxRadius` after layout and after parent matrices update. Use a `ResizeObserver`, guard zero-sized roots, update the camera projection, then recompute the origin and farthest reach. A one-time measurement before fonts or layout settle leaves the last corner unrevealed.

Keep the demo's scene recognisable: grey-green field, bottom light pool, white editorial type, pale cards, and the root-shaped form. The staging belongs in the demo; the reusable skill is only the paired representations and shared conductor.

## Respect motion and lifecycle

- Under `prefers-reduced-motion: reduce`, render a designed diagnostic still at about 62% radius with both cage and solid visible. Let the replay control recompose that still and announce the state; do not hide the scene.
- Clamp `dt` to 1/30 s. Reset the time base after a hidden tab or offscreen section resumes.
- Pause on `document.hidden` and when an `IntersectionObserver` says the section is offscreen.
- Cap device pixel ratio at 2.
- Expose replay as a real button with visible focus and an `aria-live` status. Keep the canvas `aria-hidden` when it is decorative.
- On teardown, cancel the frame, disconnect observers, remove listeners, and dispose geometry, materials, textures, and the renderer.

## State the cost honestly

The temporary second representation and its line coverage are the real cost. Topology density and overdraw matter more than the radius math. Build the wire cage only for the entrance, use the coarsest edge graph that preserves the silhouette, and dispose it as soon as the scan finishes. Do not claim a performance gain without profiling GPU frame time before and during the cage pass.

## Verify

- Compare the opening, midpoint, and completed states with the source at 1440×900.
- Confirm the cage leads the solid everywhere, including scaled child groups.
- Fast-forward across completion and verify no clipped islands remain.
- Replay twice and confirm only one frame loop and one cage survive.
- Resize during the scan at 390×844 and 1440×900.
- Tab to replay and confirm visible focus and a live status update.
- Test `?reduced=1` or system reduced motion: composed still, no advancing radius.
- Hide/show the tab and leave/re-enter the viewport; confirm no time jump.
- Confirm a clean console and disposed cage resources after completion.

Use [demo/index.html](demo/index.html) as the working proof and [demo/PROMPT.md](demo/PROMPT.md) to recreate or remix it.

© MengTo · MIT · MengTo/Skills

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

Все скиллы по теме «Фронтенд и UI» →
threejs-materials calesthio Скилл threejs-materials для Claude Code содержит справочник материалов Three.js: помогает выбрать материал для сетки, настроить текстуры и оптимизировать рендеринг. CX Codex +1 1 200установок title-sequence-3d charlie947 Скилл title-sequence-3d для Claude Code собирает кинематографичный 3D-опенер на Three.js в одном HTML-файле. Генерирует яркую заставку с неоновыми вывесками и логотипами для видеоролика или рассылки. CX Codex +1 3 400установок diorama Nehal Kanak (sloemo) Скилл diorama для Claude Code собирает вращаемые 3D-диорамы на Three.js. Регулирует стили графики, кинематику персонажей и отсекает навязчивые обучающие панели в повествовательных сценах. CX Codex +1 ★ 702звёзд репо three boraoztunc Держит Three.js-сцену в HyperFrames синхронной со временем ролика: адаптер шлёт hf-seek, а сцена рисует запрошенный кадр. CX Codex +1 209установок wireframe-portal-title heygen-com Скилл wireframe-portal-title для Claude Code разворачивает восьмисекундную 3D-анимацию заголовка с каркасным порталом и сменой текста. Генерирует сцену с начертаниями шрифта Geist. CX Codex +1 13 200установок threejs-skills sickn33 Скилл threejs-skills для создания 3D-сцен, интерактивных опытов и визуальных эффектов на Three.js. Подключите, когда нужно рендерить 3D-графику, WebGL-сцены, анимации или визуализировать данные в трёхмерном пространстве. CX Codex +1 3установок

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

Весь набор →
build-mobile-threejs-games Скилл build-mobile-threejs-games для сборки и проверки Three.js-игры под мобильный веб: тач-управление, адаптивный HUD, бюджеты производительности. CX Codex +1 1 600установок design-game-encounters Скилл design-game-encounters для Claude Code помогает проектировать, настраивать и тестировать боевые встречи в Three.js. Он включается при работе с аренами, волнами врагов и фазами боссов. CX Codex +1 1 600установок design-action-combat Скилл design-action-combat помогает настраивать тактическую боёвку для веб-игр через детерминированные стейт-машины. Пригодится при расчёте окон парирования, кадров запуска и регистрации попаданий. CX Codex +1 1 600установок x-bookmark-quote-posts Скилл x-bookmark-quote-posts собирает закладки в X и превращает их в черновики цитат, подстраивая тон под 100 последних собственных публикаций автора. CX Codex +1 1 600установок publish-project-to-github Скилл publish-project-to-github для Claude Code упаковывает локальный проект в GitHub-репозиторий, создаёт README со скриншотом, проверяет секреты и настраивает GitHub Pages. Публикует пет-проекты и демо. CX Codex +1 1 500установок build-interactive-particle-trail Скилл build-interactive-particle-trail для интерактивных частиц: курсор или палец оставляет след из точек, которые летят по своей траектории. Пригодится в 3D-сценах и на лендингах. CX Codex +1 1 500установок web-technique-to-skill Скилл web-technique-to-skill помогает превратить готовый визуальный или интерактивный приём в переиспользуемый скилл для веб-дизайна — с демо, которое доказывает и механику, и точность. CX Codex +1 1 500установок add-mouse-driven-orbit Скилл add-mouse-driven-orbit для Claude Code добавляет плавный параллакс и кинематографичное вращение сцены Three.js вслед за курсором, без OrbitControls. Анимация используется в интерактивных hero-секциях. CX Codex +1 1 500установок

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

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