3D 리플레이 1단계: .vrf 변환기(tools/replay-extract) · 사이트 3D 재생기 · 대화 동기화

- tools/replay-extract: ValorantReplayParser(MIT, 고정 커밋) → gvr-replay JSON v1
  (선수 이동 10Hz · 라운드 · 킬 · 사격 · 스킬/설치물 · 녹화 시작 시각)
- 사이트: 경기 화면 '3D 리플레이' 칸 (three.js 지연 로드). 미니맵 바닥 + 실제 높이,
  회전 · 확대 · 선수 선택 · 따라가기 · 킬피드 · 자막 · 말하는 사람 표시
- 동기화: 같은 킬의 경기 기록 시각과 리플레이 시각 차이 중앙값 (못 맞추면 라운드 시작)
  현장 모드 시계에 묶어 재생 · 멈춤 · 이동 · 배속이 대화와 같이 움직임
- 목 서버 데모(GVR_MOCK_REPLAY), 동기화 테스트 4개

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-17 03:56:43 +09:00
parent 50fc90070b
commit 9592efeff6
18 changed files with 1539 additions and 1 deletions

View File

@@ -3934,3 +3934,139 @@ button.match:hover {
opacity: 0.45;
cursor: default;
}
/* ── 3D 리플레이 (components/ReplayViewer.tsx) ── */
.replay-panel {
flex: none;
}
.match.val:has(.replay-panel.open) {
height: auto;
}
.match.val:has(.replay-panel.open) .mgrid {
flex: none;
height: 680px;
}
.r3d {
display: flex;
flex-direction: column;
gap: 8px;
}
.r3d-stage {
position: relative;
height: min(72vh, 760px);
min-height: 420px;
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--line);
background: #0b141c;
}
.r3d-stage canvas {
display: block;
width: 100%;
height: 100%;
cursor: grab;
}
.r3d-stage canvas:active {
cursor: grabbing;
}
.r3d-hud {
position: absolute;
z-index: 2;
padding: 8px 12px;
border-radius: 10px;
background: rgba(8, 14, 20, 0.72);
font-size: 14px;
pointer-events: none;
}
.r3d-hud.tl {
top: 10px;
left: 10px;
font-size: 16px;
}
.r3d-hud.tr {
top: 10px;
right: 10px;
background: none;
padding: 0;
display: flex;
flex-direction: column;
gap: 4px;
align-items: flex-end;
}
.r3d-hud.bl {
left: 10px;
bottom: 10px;
pointer-events: auto;
}
.r3d-kill {
background: rgba(8, 14, 20, 0.78);
border-radius: 8px;
padding: 4px 10px;
font-size: 13px;
}
.r3d .a {
color: #8fd8ff;
}
.r3d .e {
color: #ff9aa5;
}
.r3d-cap {
position: absolute;
z-index: 2;
left: 50%;
bottom: 14px;
transform: translateX(-50%);
max-width: min(70%, 760px);
display: flex;
flex-direction: column;
gap: 4px;
pointer-events: none;
}
.r3d-cap > div {
background: rgba(8, 14, 20, 0.82);
border-radius: 8px;
padding: 6px 12px;
font-size: 15px;
text-align: center;
}
.r3d-cap b {
color: var(--gold);
margin-right: 6px;
}
.r3d-follow {
display: flex;
align-items: center;
gap: 6px;
margin-top: 6px;
font-size: 13px;
cursor: pointer;
}
.r3d-bar {
display: flex;
align-items: center;
gap: 8px;
}
.r3d-play {
min-width: 44px;
}
.r3d-scrub {
position: relative;
flex: 1;
display: flex;
align-items: center;
}
.r3d-scrub input {
width: 100%;
accent-color: var(--accent);
}
.r3d-scrub i {
position: absolute;
top: -6px;
width: 1px;
height: 8px;
background: var(--muted);
pointer-events: none;
}
.r3d-foot {
font-size: 12px;
}