build-wireframe-scan-reveal

Reveal Three.js geometry with a world-space wireframe scan that leads the solid surface.

5.7k|685|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/MengTo/Skills --skill build-wireframe-scan-reveal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-wireframe-scan-reveal
Source: https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/build-wireframe-scan-reveal
Command: npx skills add https://github.com/MengTo/Skills --skill build-wireframe-scan-reveal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires three, and includes assets (resource) components.

What problem does it solve?

Plain opacity fades and circular clip masks fail to explain the form of a 3D object during an entrance animation. This Skill implements a world-space scan wavefront in Three.js where a temporary wireframe cage draws the topology first, the solid surface follows behind it, and the cage burns away on completion.

Core Features & Use Cases

  • Paired representations: Builds a solid mesh and a temporary LineSegments cage from the same source geometry, driven by shared uScanOrigin and uScanRadius uniforms in world space.
  • Tuned conductor timing: Ships landed defaults including a 3.4-second duration, power-1.35 easing, 520-unit solid lag, 135-unit rim, 950-unit trail, and irregular sine wobble so the front never reads as a clip-path.
  • Lifecycle and accessibility discipline: Covers reduced-motion diagnostic stills, dt clamping, DPR capping, ResizeObserver sizing, offscreen pausing, keyboard-accessible replay, and full disposal of cage geometry and materials.
  • Use Case: A landing page hero introduces a procedural 3D model, such as a root or vessel, with a survey-pulse scan that grows the wireframe ahead of the surface, then removes the cage so only the finished form remains.

Quick Start

Use the build-wireframe-scan-reveal skill to reveal my Three.js model with a wire cage that leads the solid surface and disposes itself after the scan completes.

Frequently Asked Questions about build-wireframe-scan-reveal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reveal a Three.js model with a wireframe scan effect?

Create a solid mesh and a temporary LineSegments cage from the same geometry, then drive both materials with shared world-space origin and radius uniforms. Discard solid fragments beyond the radius with a lag so the cage leads, and fade the cage out near the end of the timeline.

How to make a shader discard follow an expanding radius in GLSL?

Pass uScanOrigin and uScanRadius uniforms into the fragment shader and discard fragments whose world-space distance from the origin exceeds the radius. Add low-frequency sine wobble terms so the front reads as an organic wave rather than a perfect circle.

Why does my wireframe cage look like a bright unreadable ball?

This happens when depth testing is disabled on the cage, exposing the back half of dense topology. Keep depthTest enabled, use additive blending with depthWrite off, and build the cage from the coarsest edge graph that preserves the silhouette.

Does the scan reveal work with prefers-reduced-motion?

Yes. Under reduced motion, render a designed diagnostic still at about 62 percent radius with both cage and solid visible instead of animating. Keep the replay control functional as a state reset and announce the change through an aria-live region.

When should I use a wireframe scan instead of an opacity fade?

Use it when the entrance must explain the form's topology, such as survey pulses, holographic assembly, or 3D model intros. If wireframe is the page's permanent visual language or the conductor is DOM scroll rather than a 3D wave, a different technique fits better.