본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)7.2k · #13409

build-wireframe-scan-reveal

하는 일

이 스킬은 스캔 파동이 모델을 훑으며 외곽선을 먼저 그리는 3D 등장 효과를 만들도록 AI 에이전트를 안내합니다. 3D 물체를 위한 기술적인 인트로를 원하는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓3D 모델이 스캔이나 측량 효과로 나타나게 하고 싶을 때.
  • ✓단순한 페이드인으로는 물체의 형태가 잘 드러나지 않을 때.
  • ✓히어로 섹션이나 인트로에 홀로그램 같은 조립 효과가 필요한 경우.

스킬 링크

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/build-wireframe-scan-reveal/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/build-wireframe-scan-reveal/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 3D 제품이 먼저 와이어프레임을 그리고 그다음 입체 표면이 나타나는 스캔 파동과 함께 등장하게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 같은 형태의 와이어프레임 버전과 솔리드 버전을 만듭니다. 공유된 확장 파동이 외곽선을 먼저 드러내고 입체 표면을 드러내며, 끝나면 와이어프레임을 제거합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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:

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:

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%:

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
자주 묻는 질문

왜 와이어프레임을 먼저 보여 주나요?

입체 표면이 나타나기 전에 물체의 형태를 설명해 주므로, 단순한 페이드보다 더 의미 있게 느껴질 수 있습니다.

스크롤이 필요한가요?

아닙니다. 이 스킬은 3D 파동 효과에 관한 것입니다. 스크롤과 연결된 애니메이션은 다른 스킬이 다룹니다.

와이어프레임은 계속 남나요?

아닙니다. 드러난 뒤에는 임시 격자를 제거하므로 최종 물체는 입체로 남습니다.

상세 정보

작성자의 원본 설명

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.

repo: MengTo/Skills

인기도

GitHub 스타
7.2k
순위
#13409
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬