feat(pointview): 新增「场景/点位」页签——正交俯视真实场景底图 + 点位精确叠加
第三个页签(与海选审核/演出配置平级),只读查看每个点位集里各点的真实
位置/朝向,配 move.to/camera.focus 时对照用,不必回 Unity 翻 json。
- pointview.js: 独立白模点位查看器(按 kind 上色/朝向箭头/悬停坐标/侧栏清单);
有底图则把正交俯视真实场景图当画布底图、点位按 shot.bounds 线性投上去
(像素级对齐家具),带显隐开关;无底图回退黑底白模。
- app.py: /api/pointsets 给有底图的点位集附 shot{url,bounds};新增
/sceneshot/{name}.png 路由(防目录穿越)。
- Dockerfile/compose: 加 STORY_SCENESHOTS_DIR(/sceneshots) env + 挂载点与注释。
底图由 SGame 仓新增 Editor 工具「剧情场景俯视抓拍」产出
({name}.png + {name}.shot.json,map-local 覆盖范围)。
This commit is contained in:
@ -21,8 +21,9 @@ COPY web ./web
|
||||
# 注意:镜像里不埋任何口令默认值。STORY_WEB_USERS(名字:口令,…)必须运行时注入,
|
||||
# 未配置时 app 启动即退出(拒绝弱口令裸奔)。
|
||||
ENV STORY_DB_PATH=/data/story_events.db \
|
||||
STORY_POINTSETS_DIR=/pointsets
|
||||
RUN mkdir -p /data /pointsets
|
||||
STORY_POINTSETS_DIR=/pointsets \
|
||||
STORY_SCENESHOTS_DIR=/sceneshots
|
||||
RUN mkdir -p /data /pointsets /sceneshots
|
||||
|
||||
EXPOSE 8787
|
||||
WORKDIR /app/web
|
||||
|
||||
Reference in New Issue
Block a user