Communitygithub.com

map-route

three.js로 1080x1920 릴용 3D 경로 수직 애니메이션을 만듭니다. 공원과 강이 있는 흰색 3D 도시 위로 경로가 그려지고 카메라가 따라가며 깜빡이는 빨간 핀, 실시간 카운트다운 ETA 카드, 목적지 카드를 보여줍니다.

map-route란 무엇인가요?

map-route 스킬은 three.js를 사용하여 1080x1920 크기의 셀카봉(릴) 형태로 경로가 그려지는 3D 애니메이션을 제작합니다. 출발지에서 목적지까지의 경로를 흰색 3D 도시 위에 표시하며, 공원과 강을 포함한 세련된 디자인을 제공합니다. 이 스킬은 사용자가 지정한 도시 이름, 이동 시간 및 거리를 기반으로 하며, 경로가 스스로 그려지는 동적 애니메이션과 카메라가 경로를 따라 움직인 후 최종적으로 뒤로 물러나는 장면을 포함합니다. ETA 카드는 실시간으로 카운트다운되며, 목적지에 도착하면 'Arrived'로 변경됩니다. 최종 결과물은 MP4 비디오와 스프레드시트 이미지로 제공되며, 개발자는 spec JSON 파일을 통해 경로, 장소 레이블, 강조 색상 등을 커스터마이징할 수 있습니다. 이 스킬은 headless Chrome의 WebGL을 통해 렌더링되며, ffmpeg, Node.js 18+, Python 3.9+ 환경이 필요합니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/map-route

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

3D 지도 경로 (map-route)

┌──────────────────────┐
│ [▲ 9분]              │  ETA 카드가 카운트다운되다가 "도착"으로 변경
│      ┌Iron Yard Gym┐ │  핀이 착지한 후 목적지 카드 표시
│  ▒▒   ▒▒   📍  ▒▒    │  흰색 3D 블록, 공원, 강
│  ▒▒ ━━━━━━━┛   ▒▒    │  경로가 스스로 그려지고, 카메라가 따라 움직임
│  ▒▒ ┃  ▒▒      ▒▒    │  마지막에 뒤로 물러남
└──────────────────────┘

설정 확인

SKILL_DIR은 이 SKILL.md 파일이 포함된 디렉토리입니다 (<skills>에서 경로 확인).

SKILL_DIR="$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<이 SKILL.md 파일이 있는 디렉토리>")"
KIT="$(python3 -c 'import os,sys; print(os.path.realpath(os.path.join(sys.argv[1], "..", "..", "kit")))' "$SKILL_DIR")"
[ -s "$KIT/node_modules/three/build/three.module.js" ] || bash "$KIT/setup.sh"

필요: ffmpeg, node (18+), python3 (3.9+), headless Chrome의 WebGL.

단계

  1. 여행 세부 정보 수집. 목적지 이름, 이동 시간 (분), 거리 (예: "집에서 체육관까지, 2.8km, 9분")를 확인합니다. 시간이나 거리 중 하나만 주어진 경우, 다른 하나를 추정하여 (도보 ~12분/km, 자전거 ~4분/km, 도시 운전 ~2분/km) 사용자에게 알립니다.
  2. 명세서 작성. 아래 스키마를 사용하여 <name>.map.json 파일을 만듭니다.
  3. 검증 및 빠른 스냅샷.
    python3 "$SKILL_DIR/build.py" <name>.map.json --check
    python3 "$SKILL_DIR/build.py" <name>.map.json --snap 3.8
    
    전체 3D 렌더링 전에 스냅샷 PNG를 read_file로 검사합니다.
  4. 렌더링. 실행:
    python3 "$SKILL_DIR/build.py" <name>.map.json
    
    약 1.5분 소요 (headless Chrome의 WebGL; HyperFrames의 sub_timeline_readiness_timeout 경고는 정상입니다).
  5. 시각적 QA (필수). <name>.map.sheet.jpg를 read_file로 검사:
    • 목적지 카드가 빨간색 안전 영역 상자 안에 완전히 들어가야 하며 잘리지 않아야 합니다.
    • 거리/장소 레이블이 ETA 카드나 목적지 카드와 겹치지 않아야 합니다.
  6. 인계. .mp4와 .sheet.jpg에 대한 클릭 가능한 링크를 반환합니다.

명세 스키마

{
  "destination": "Iron Yard Gym",
  "minutes": 9,
  "distance": 2.8,
  "unit": "km",
  "places": ["North Quay", "Botanic Gardens", "Market Hall", "Elm Park", "The Canal"],
  "accent": "#2f7cf6",
  "seed": 7
}
  • destination, minutes, distance (필수). destination은 약 26자 이하로 유지.
  • unit: "km" 또는 "mi".
  • places: 고정 지점에 있는 5개의 짧은 회색 레이블: [시작점 근처, 왼쪽 공원, 중간 블록, 오른쪽 공원, 강]. 현지 이름을 사용하거나 ""로 숨깁니다.
  • accent: 경로, 움직이는 점, ETA 아이콘의 6자리 16진수 색상. 핀은 빨간색 유지.
  • seed: 정수; 건물과 공원 배치가 변경됩니다.
  • hold (선택): 마지막에 추가 초.
  • out (선택): 사용자 지정 출력 .mp4 경로.

사용자 정의 경로 모양 (고급)

기본 경로는 위, 오른쪽, 위, 오른쪽으로 이동합니다. 변경하려면 "$SKILL_DIR/template.html"을 명세 파일 옆에 복사하고 명세에 "template": "template.html"을 추가한 다음 WP ([x, z] 웨이포인트; x는 -36..36, z는 -88..24 범위의 4의 배수)를 편집합니다. 최종 pullback 대상 (new THREE.Vector3(3, 0, -27))과 LBL 위치를 일치시키고 --snap 3.8로 확인합니다.

취향 규칙

  • 짧고 현실적인 장소 이름; 목적지 카드는 약 26자까지 수용.
  • 깔끔하게 유지: 하나의 경로, 하나의 빨간 핀, 추가 화살표나 설명 없음.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

breakdown

Makes a 3D exploded-view vertical animation (1080x1920) for a reel using three.js. A phone floats on a dark studio backdrop, separates layer by layer (glass, OLED screen, frame, logic board, battery, back), and draws thin leader lines to numbered labels. Use when the user asks for /breakdown, an exploded view, a "what's inside" teardown, or a labelled 3D hardware breakdown.

graph

Makes a minimal vertical (1080x1920) line-graph animation for a reel. A smooth black line draws itself on white (or white on black) while one large number counts up with the tip and lands on the final value. Use when the user asks for /graph, a growth chart, a "0 to 100K" number counter, an animated stat, or a minimal metric line chart.

low-poly

Makes a PS1/N64-era retro low-poly 3D vertical animation (1080x1920) for a reel using three.js. Chunky low-res nearest-neighbour pixels, vertex snapping, dithering, warm flat lighting, and small yellow captions with a thin black outline. Built-in scene: a dog waits on a station platform while a train arrives and leaves, and seasons turn to snow. Use when the user asks for /low-poly, PS1-style, N64 retro 3D, or "low poly shorts" animations.

minimalistic-graphics

Makes a minimal black-and-white line-art vertical animation (1080x1920) for a reel. Thin outlined steps rise one by one, a white dot hops up them, an orbit with sparks draws around the dot at the top, and one quiet lowercase line swaps to a second line. Use when the user asks for /minimalistic-graphics, simple black-and-white motion graphics, calm self-improvement visuals, or line art with one moving dot.

관련 스킬