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:
21
tools/replay-extract/fetch-parser.sh
Executable file
21
tools/replay-extract/fetch-parser.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# ValorantReplayParser (MIT, https://github.com/michel-giehl/ValorantReplayParser) 를 고정 커밋으로 받아 vendor/ 에 둔다.
|
||||
# 발로란트 패치로 리플레이 형식이 바뀌면 PARSER_COMMIT 을 새 커밋으로 올린다.
|
||||
set -euo pipefail
|
||||
PARSER_COMMIT="${PARSER_COMMIT:-28e24af44f5d2e2444fb679f500b6ec04ab60672}"
|
||||
here="$(cd "$(dirname "$0")" && pwd)"
|
||||
dst="$here/vendor/ValorantReplayParser"
|
||||
if [ ! -d "$dst/.git" ]; then
|
||||
git clone --quiet https://github.com/michel-giehl/ValorantReplayParser "$dst"
|
||||
fi
|
||||
git -C "$dst" fetch --quiet origin
|
||||
git -C "$dst" checkout --quiet --force "$PARSER_COMMIT"
|
||||
# 저장소의 global.json 은 SDK 패치 버전까지 고정한다. 같은 10.0 대 SDK 면 쓰게 풀어 준다
|
||||
python3 - "$dst/global.json" <<'P'
|
||||
import json, sys
|
||||
p = sys.argv[1]
|
||||
d = json.load(open(p))
|
||||
d.setdefault('sdk', {})['rollForward'] = 'latestFeature'
|
||||
json.dump(d, open(p, 'w'), indent=2)
|
||||
P
|
||||
echo "parser @ $(git -C "$dst" rev-parse --short HEAD)"
|
||||
Reference in New Issue
Block a user