Datasets:
Upload AWSM article, metrics, manifests, and scripts
Browse files- .gitignore +4 -0
- .nojekyll +0 -0
- app.js +101 -0
- assets/icons/LICENSE.octicons.txt +21 -0
- assets/icons/README.md +6 -0
- data/awsm.bib +8 -0
- data/embodied_demo.json +77 -0
- data/fixed_views.json +221 -0
- data/office_video_media.json +109 -0
- data/scene_comparison.json +487 -0
- data/source_contract.json +576 -0
- data/tables_1_7.json +508 -0
- editorial.css +66 -0
- en.html +34 -0
- evidence/M1/manifest.json +68 -0
- evidence/M2/manifest.json +68 -0
- evidence/M3/manifest.json +68 -0
- evidence/M4/manifest.json +68 -0
- evidence/embodied-demo-audit.json +20 -0
- evidence/embodied-demo-delivery.json +68 -0
- evidence/provenance-note.md +41 -0
- evidence/publication_manifest.json +456 -0
- index.html +34 -0
- office-models.js +395 -0
- office.css +153 -0
- requirements.txt +1 -0
- scene-compare.js +9 -0
- scripts/browser_qa.py +6 -0
- scripts/build.py +6 -0
- scripts/editorial.py +208 -0
- scripts/publish.py +96 -0
- scripts/render.py +82 -0
- scripts/site_browser_qa.py +6 -0
- scripts/site_browser_qa_interactive.py +188 -0
- scripts/site_builder.py +6 -0
- scripts/site_builder_interactive.py +442 -0
- scripts/site_validator.py +6 -0
- scripts/site_validator_interactive.py +175 -0
- scripts/validate.py +6 -0
- scripts/validate_publication.py +423 -0
- style.css +1 -0
- vendor/three/controls/OrbitControls.js +1860 -0
- vendor/three/environments/RoomEnvironment.js +182 -0
- vendor/three/loaders/GLTFLoader.js +0 -0
- vendor/three/three.core.js +0 -0
- vendor/three/three.module.js +0 -0
- vendor/three/utils/BufferGeometryUtils.js +1435 -0
- zh.html +34 -0
.gitignore
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
qa/
|
| 3 |
+
.venv/
|
| 4 |
+
.publication.json
|
.nojekyll
ADDED
|
File without changes
|
app.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const C={zh:{t:["输入与建模路线","位姿、原生深度与模型深度","冻结模型几何","固定 5 视角外观","同场景 100 视角外观","固定 5 视角模型深度","同场景 100 视角模型深度"],view:"视角",l:{method:"方法",allowed_inputs:"允许输入",geometry_source:"几何来源",modeling_role:"建模角色",ate_m:"ATE (m) ↓",rotation_deg:"旋转误差 (°) ↓",native_depth_absrel:"原生深度 AbsRel ↓",model_depth_absrel:"模型深度 AbsRel ↓",alignment:"配准 / 限制",model_to_gt_mean_m:"模型→GT 均值 (m) ↓",observed_gt_to_model_mean_m:"观测 GT→模型均值 (m) ↓",bidirectional_mean_m:"双向平均 (m) ↓",model_sha256:"模型 SHA256",psnr_db:"PSNR (dB) ↑",ssim:"SSIM ↑",lpips_alex_v01:"LPIPS ↓",absrel:"AbsRel ↓",rmse_m:"RMSE (m) ↓",coverage:"覆盖率 ↑",penalized_mae_m:"缺失惩罚 MAE (m) ↓"}},en:{t:["Inputs and modelling routes","Pose, native depth, and model depth","Frozen-model geometry","Fixed-five appearance","Same-scene 100-view appearance","Fixed-five model depth","Same-scene 100-view model depth"],view:"VIEW",l:{method:"Method",allowed_inputs:"Allowed inputs",geometry_source:"Geometry source",modeling_role:"Modelling role",ate_m:"ATE (m) ↓",rotation_deg:"Rotation (°) ↓",native_depth_absrel:"Native depth AbsRel ↓",model_depth_absrel:"Model depth AbsRel ↓",alignment:"Alignment / limitation",model_to_gt_mean_m:"Model→GT mean (m) ↓",observed_gt_to_model_mean_m:"Observed GT→model mean (m) ↓",bidirectional_mean_m:"Bidirectional mean (m) ↓",model_sha256:"Model SHA256",psnr_db:"PSNR (dB) ↑",ssim:"SSIM ↑",lpips_alex_v01:"LPIPS ↓",absrel:"AbsRel ↓",rmse_m:"RMSE (m) ↓",coverage:"Coverage ↑",penalized_mae_m:"Penalized MAE (m) ↓"}}};
|
| 2 |
+
const lang = document.body.dataset.lang === "zh" ? "zh" : "en";
|
| 3 |
+
const c = C[lang];
|
| 4 |
+
const methodNames = {
|
| 5 |
+
en: {M1: "RGB-only", M2: "ViPE + DA3", M3: "ORB-SLAM3 + DA3", M4: "GT pose + DA3"},
|
| 6 |
+
zh: {M1: "纯 RGB", M2: "ViPE + DA3", M3: "ORB-SLAM3 + DA3", M4: "GT 位姿 + DA3"}
|
| 7 |
+
};
|
| 8 |
+
const methodLabel = id => methodNames[lang][id] ? `${id} (${methodNames[lang][id]})` : id;
|
| 9 |
+
// Display translations are separate from the frozen experimental data.
|
| 10 |
+
const routeText = {
|
| 11 |
+
en: {
|
| 12 |
+
M1: {allowed_inputs: "180 sampled RGB frames", geometry_source: "Visual inference without measured scale", modeling_role: "Infer the layout and author objects and materials"},
|
| 13 |
+
M2: {allowed_inputs: "Full RGB video; 180 frames selected for modeling", geometry_source: "RGB-only ViPE poses → pose-conditioned DA3 depth", modeling_role: "Organize pose and depth measurements into an object-centric scene"},
|
| 14 |
+
M3: {allowed_inputs: "Video, IMU, and camera–IMU calibration", geometry_source: "Monocular-inertial ORB-SLAM3 poses → pose-conditioned DA3 depth", modeling_role: "Model using images, poses, and depth"},
|
| 15 |
+
M4: {allowed_inputs: "Video and ground-truth camera poses", geometry_source: "GT poses → pose-conditioned DA3 depth", modeling_role: "The same type of modeling workflow as M3"}
|
| 16 |
+
},
|
| 17 |
+
zh: {
|
| 18 |
+
M1: {allowed_inputs: "180 张采样 RGB 图像", geometry_source: "视觉推断,无测量尺度", modeling_role: "推断布局,编写对象与材质"},
|
| 19 |
+
M2: {allowed_inputs: "完整 RGB 视频;选取 180 帧建模", geometry_source: "仅基于 RGB 的 ViPE 位姿 → 位姿条件下的 DA3 深度", modeling_role: "将位姿与深度测量组织为对象化场景"},
|
| 20 |
+
M3: {allowed_inputs: "视频、IMU、相机–IMU 标定", geometry_source: "ORB-SLAM3 单目惯性位姿 → 位姿条件下的 DA3 深度", modeling_role: "结合图像、位姿、深度建模"},
|
| 21 |
+
M4: {allowed_inputs: "视频及真值相机位姿", geometry_source: "真值位姿 → 位姿条件下的 DA3 深度", modeling_role: "与 M3 相同类型的建模流程"}
|
| 22 |
+
}
|
| 23 |
+
};
|
| 24 |
+
const directions = {
|
| 25 |
+
ate_m: "min", rotation_deg: "min", native_depth_absrel: "min", model_depth_absrel: "min",
|
| 26 |
+
model_to_gt_mean_m: "min", observed_gt_to_model_mean_m: "min", bidirectional_mean_m: "min",
|
| 27 |
+
psnr_db: "max", ssim: "max", lpips_alex_v01: "min", absrel: "min", rmse_m: "min",
|
| 28 |
+
coverage: "max", penalized_mae_m: "min"
|
| 29 |
+
};
|
| 30 |
+
const hidden = {2: new Set(["alignment"]), 3: new Set(["model_sha256", "alignment"])};
|
| 31 |
+
function formatCell(key, value) {
|
| 32 |
+
if (value === null) return "—";
|
| 33 |
+
if (key === "method") return methodLabel(value);
|
| 34 |
+
if (typeof value !== "number") return String(value).replace(/\bM[1-4]\b/g, methodLabel);
|
| 35 |
+
return ["native_depth_absrel", "model_depth_absrel", "absrel", "coverage"].includes(key)
|
| 36 |
+
? (100 * value).toFixed(2) + "%" : value.toFixed(4);
|
| 37 |
+
}
|
| 38 |
+
fetch("data/tables_1_7.json").then(response => {
|
| 39 |
+
if (!response.ok) throw Error(response.status);
|
| 40 |
+
return response.json();
|
| 41 |
+
}).then(data => {
|
| 42 |
+
for (let number = 1; number <= 7; number++) {
|
| 43 |
+
const figure = document.querySelector("#table-" + number);
|
| 44 |
+
if (!figure) continue;
|
| 45 |
+
const rows = data.tables["table" + number];
|
| 46 |
+
const keys = Object.keys(rows[0]).filter(key => !hidden[number]?.has(key));
|
| 47 |
+
const best = {};
|
| 48 |
+
for (const key of keys) {
|
| 49 |
+
if (!directions[key]) continue;
|
| 50 |
+
const values = rows.map(row => row[key]).filter(value => typeof value === "number" && Number.isFinite(value));
|
| 51 |
+
if (values.length) best[key] = (directions[key] === "max" ? Math.max : Math.min)(...values);
|
| 52 |
+
}
|
| 53 |
+
figure.querySelector(".table-title").textContent = c.t[number - 1];
|
| 54 |
+
const table = document.createElement("table");
|
| 55 |
+
const header = table.createTHead().insertRow();
|
| 56 |
+
for (const key of keys) {
|
| 57 |
+
const cell = document.createElement("th");
|
| 58 |
+
cell.scope = "col";
|
| 59 |
+
cell.textContent = c.l[key] || key;
|
| 60 |
+
header.append(cell);
|
| 61 |
+
}
|
| 62 |
+
const body = table.createTBody();
|
| 63 |
+
for (const row of rows) {
|
| 64 |
+
const tr = body.insertRow();
|
| 65 |
+
keys.forEach((key, index) => {
|
| 66 |
+
const cell = document.createElement(index ? "td" : "th");
|
| 67 |
+
if (!index) cell.scope = "row";
|
| 68 |
+
if (["allowed_inputs", "geometry_source", "modeling_role", "alignment"].includes(key)) cell.className = "wrap";
|
| 69 |
+
const value = number === 1 ? routeText[lang][row.method]?.[key] ?? row[key] : row[key];
|
| 70 |
+
const text = formatCell(key, value);
|
| 71 |
+
if (typeof row[key] === "number" && row[key] === best[key]) {
|
| 72 |
+
const strong = document.createElement("strong");
|
| 73 |
+
strong.textContent = text;
|
| 74 |
+
cell.append(strong);
|
| 75 |
+
} else cell.textContent = text;
|
| 76 |
+
tr.append(cell);
|
| 77 |
+
});
|
| 78 |
+
}
|
| 79 |
+
figure.querySelector(".table-mount").replaceChildren(table);
|
| 80 |
+
}
|
| 81 |
+
}).catch(error => {
|
| 82 |
+
document.querySelectorAll(".table-mount").forEach(mount => {
|
| 83 |
+
mount.textContent = (lang === "zh" ? "表格加载失败:" : "Table load failed: ") + error.message;
|
| 84 |
+
});
|
| 85 |
+
console.error(error);
|
| 86 |
+
});
|
| 87 |
+
const method = document.querySelector("#compare-method");
|
| 88 |
+
const frame = document.querySelector("#compare-frame");
|
| 89 |
+
method.disabled = false;
|
| 90 |
+
frame.disabled = false;
|
| 91 |
+
function refresh() {
|
| 92 |
+
const id = String(frame.value).padStart(3, "0"), m = method.value;
|
| 93 |
+
document.querySelector("#compare-pred").src = `assets/fixed_views/${m}/${id}.png`;
|
| 94 |
+
document.querySelector("#compare-gt").src = `assets/fixed_views/GT/${id}.png`;
|
| 95 |
+
document.querySelector("#compare-label").textContent = `${m} / ${c.view} ${frame.value}`;
|
| 96 |
+
document.querySelector("#figure-4").dataset.method = m;
|
| 97 |
+
document.querySelector("#figure-4").dataset.frame = frame.value;
|
| 98 |
+
}
|
| 99 |
+
method?.addEventListener("change", refresh);
|
| 100 |
+
frame?.addEventListener("change", refresh);
|
| 101 |
+
refresh();
|
assets/icons/LICENSE.octicons.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 GitHub Inc.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
assets/icons/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Brand icons
|
| 2 |
+
|
| 3 |
+
- `github.svg`: GitHub mark from [Primer Octicons](https://github.com/primer/octicons/blob/main/icons/mark-github-16.svg), used under the included MIT license (`LICENSE.octicons.txt`).
|
| 4 |
+
- `huggingface.svg`: [Hugging Face official logo](https://huggingface.co/front/assets/huggingface_logo-noborder.svg), with a viewBox added for responsive sizing.
|
| 5 |
+
|
| 6 |
+
The GitHub icon links to the AWSM repository. The Hugging Face icon is displayed without a link.
|
data/awsm.bib
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@misc{awsm_2026,
|
| 2 |
+
title = {{AWSM}: Agentic World Simulation and Mapping},
|
| 3 |
+
author = {{Phygital AI}},
|
| 4 |
+
year = {2026},
|
| 5 |
+
howpublished = {Interactive research article},
|
| 6 |
+
url = {https://phygital-ai.github.io/agentic-world-simulation-and-mapping/},
|
| 7 |
+
note = {Reconstruction benchmarks, editable scene assets, and map-based embodied demonstration}
|
| 8 |
+
}
|
data/embodied_demo.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"title": "Map-based embodied execution: reception-desk task",
|
| 4 |
+
"run_id": "sceneweft-walljourney-20260930-214924",
|
| 5 |
+
"delivery": "20260930-four-robot-demo-final-156s",
|
| 6 |
+
"recording_date": "2026-09-30",
|
| 7 |
+
"task_intent": {
|
| 8 |
+
"zh": "让无人机去前台,并让机器人在那里排好队。",
|
| 9 |
+
"en": "Send the drone to the reception desk and have the robots line up there.",
|
| 10 |
+
"language_to_plan_parser_demonstrated": false
|
| 11 |
+
},
|
| 12 |
+
"scene": {
|
| 13 |
+
"method": "M4",
|
| 14 |
+
"blend_sha256": "cc6cb605246a255d94e36b9dc3f8b91d5a292b047470bc0ff75b8a5c404b0cfe",
|
| 15 |
+
"manifest": "evidence/M4/manifest.json"
|
| 16 |
+
},
|
| 17 |
+
"navigation": {
|
| 18 |
+
"localization": "simulator_pose",
|
| 19 |
+
"route": "predefined",
|
| 20 |
+
"route_screening": "reconstructed_and_original_geometry",
|
| 21 |
+
"environment": "Isaac Sim / PhysX dynamics simulation",
|
| 22 |
+
"embodiments": ["drone", "humanoid", "quadruped", "wheeled_robot"],
|
| 23 |
+
"demonstration": "target marked on reconstructed map, routes specified, controller execution"
|
| 24 |
+
},
|
| 25 |
+
"media": {
|
| 26 |
+
"video": "assets/embodied-demo/four-robots-214924-156s-phone.mp4",
|
| 27 |
+
"poster": "assets/embodied-demo/navigation-214924-poster.png",
|
| 28 |
+
"poster_sha256": "fe1dfcc8d014fc47f93a6e4e343598c146373c2d3dc7b41613123bb6caafec8f",
|
| 29 |
+
"sha256": "b9008c7b754f994d30a740a632b70ea0f693f3917fcf11820e64902ddbd13596",
|
| 30 |
+
"bytes": 11648571,
|
| 31 |
+
"duration_s": 156.0,
|
| 32 |
+
"width": 1280,
|
| 33 |
+
"height": 720,
|
| 34 |
+
"playback_rate": "1x",
|
| 35 |
+
"source_fps": "100/7",
|
| 36 |
+
"output_fps": 30,
|
| 37 |
+
"frame_count": 4680,
|
| 38 |
+
"route_trimmed": true,
|
| 39 |
+
"trimmed_opening_s": 12.32,
|
| 40 |
+
"source_frame_ids": [177, 2148],
|
| 41 |
+
"later_terminal_hold_included": false,
|
| 42 |
+
"frame_rate_conversion": "Timestamp-preserving frame duplication/drop; no optical-flow interpolation or acceleration",
|
| 43 |
+
"hd": {
|
| 44 |
+
"video": "assets/embodied-demo/four-robots-214924-156s-hd.mp4",
|
| 45 |
+
"sha256": "f83dbb49e3aa97fd3f5f9c54ed79ed8624bac75dbd7e4cdddc4dc414b76ed222",
|
| 46 |
+
"bytes": 49687378
|
| 47 |
+
},
|
| 48 |
+
"map": {
|
| 49 |
+
"image": "assets/embodied-demo/planned-route-156s.png",
|
| 50 |
+
"sha256": "e3c8e766f40a975a0aceca185fa60867375153fc8ddb6db451788eb935cb9b8b",
|
| 51 |
+
"bytes": 1125683,
|
| 52 |
+
"width": 1920,
|
| 53 |
+
"height": 1080,
|
| 54 |
+
"role": "static planned-route design, not a measured execution trajectory"
|
| 55 |
+
},
|
| 56 |
+
"segments": [
|
| 57 |
+
{"start_s": 0, "end_s": 6, "role": "scene presentation"},
|
| 58 |
+
{"start_s": 6, "end_s": 12, "role": "reconstruction presentation"},
|
| 59 |
+
{"start_s": 12, "end_s": 18, "role": "static planned-route presentation; not an execution trace"},
|
| 60 |
+
{"start_s": 18, "end_s": 156, "role": "recorded native RGB execution from run 20260930-214924"}
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
"audit": {
|
| 64 |
+
"status": "FAILED",
|
| 65 |
+
"acceptance": false,
|
| 66 |
+
"film_accepted": false,
|
| 67 |
+
"summary": "evidence/embodied-demo-audit.json",
|
| 68 |
+
"ground_final_formation_reached": true,
|
| 69 |
+
"full_flight_mission_completed": true,
|
| 70 |
+
"required_terminal_hold_s": 8.0,
|
| 71 |
+
"measured_terminal_hold_s": 7.994999821297824
|
| 72 |
+
},
|
| 73 |
+
"scope": {
|
| 74 |
+
"demonstrated": ["map-based route execution in simulation", "shared map used by multiple embodiments"],
|
| 75 |
+
"not_evaluated": ["online visual localization", "learned instruction parsing", "memory retrieval", "real-robot transfer", "navigation comparison across M1-M4", "policy sim-to-real gap"]
|
| 76 |
+
}
|
| 77 |
+
}
|
data/fixed_views.json
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"source_manifest": "astra_blender2/report/space/results/blog_tables_1_5/reference_style_figures.json",
|
| 4 |
+
"source_manifest_sha256": "be3fb4153dbba73c6eeb2f4ba0070cf68539f848e6829c5da87c2b3398907b07",
|
| 5 |
+
"frames": [
|
| 6 |
+
0,
|
| 7 |
+
36,
|
| 8 |
+
72,
|
| 9 |
+
108,
|
| 10 |
+
144
|
| 11 |
+
],
|
| 12 |
+
"methods": [
|
| 13 |
+
"M1",
|
| 14 |
+
"M2",
|
| 15 |
+
"M3",
|
| 16 |
+
"M4",
|
| 17 |
+
"GT"
|
| 18 |
+
],
|
| 19 |
+
"images": [
|
| 20 |
+
{
|
| 21 |
+
"method": "M1",
|
| 22 |
+
"frame": 0,
|
| 23 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M1/000.png",
|
| 24 |
+
"published": "assets/fixed_views/M1/000.png",
|
| 25 |
+
"sha256": "33b9f0d09f34871564d86bde23d61d82d48133b3f9ac2f6c251b8435f4bce5c4",
|
| 26 |
+
"bytes": 460982
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"method": "M2",
|
| 30 |
+
"frame": 0,
|
| 31 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M2/000.png",
|
| 32 |
+
"published": "assets/fixed_views/M2/000.png",
|
| 33 |
+
"sha256": "dff45b5cd9bc4c5d757f36c8b8eaff015684c6681b40ad0d6b936940e7c9f316",
|
| 34 |
+
"bytes": 465709
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"method": "M3",
|
| 38 |
+
"frame": 0,
|
| 39 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M3/000.png",
|
| 40 |
+
"published": "assets/fixed_views/M3/000.png",
|
| 41 |
+
"sha256": "a2ca215a65c82b7361c072694c6a1201464bc2ad80c18ba7c59a963927d89b44",
|
| 42 |
+
"bytes": 418136
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"method": "M4",
|
| 46 |
+
"frame": 0,
|
| 47 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/blog_tables_1_6_current_m4/renders/M4/000.png",
|
| 48 |
+
"published": "assets/fixed_views/M4/000.png",
|
| 49 |
+
"sha256": "a4e82854e7ce3e3870959f008a6d590f9c65925e4b33ca0e96f6cf7ffdd6ab43",
|
| 50 |
+
"bytes": 536558
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"method": "GT",
|
| 54 |
+
"frame": 0,
|
| 55 |
+
"source": "vio-reconstruction/sessions/lobby_orb_success_20260929T123153/inputs/cam0/data/249080011831.png",
|
| 56 |
+
"published": "assets/fixed_views/GT/000.png",
|
| 57 |
+
"sha256": "0c95e2288b7d864133952d0ce6f552abea743a7d4ea4622103047bd794a07d04",
|
| 58 |
+
"bytes": 3688630
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"method": "M1",
|
| 62 |
+
"frame": 36,
|
| 63 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M1/036.png",
|
| 64 |
+
"published": "assets/fixed_views/M1/036.png",
|
| 65 |
+
"sha256": "d1ccc4bf1da6c2b9e90bfc38bd37d8598a0a0068b374d05a4138bac2b37a904c",
|
| 66 |
+
"bytes": 490712
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"method": "M2",
|
| 70 |
+
"frame": 36,
|
| 71 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M2/036.png",
|
| 72 |
+
"published": "assets/fixed_views/M2/036.png",
|
| 73 |
+
"sha256": "2f8cb5397a7800f0229867ba94b0ee8e8c453600176531da65f27f96e7f4f147",
|
| 74 |
+
"bytes": 478265
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"method": "M3",
|
| 78 |
+
"frame": 36,
|
| 79 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M3/036.png",
|
| 80 |
+
"published": "assets/fixed_views/M3/036.png",
|
| 81 |
+
"sha256": "6c117fef7d146ae81baab7453cb88a2df7f75b080d8e9c672e2163a9fbf00f79",
|
| 82 |
+
"bytes": 433089
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"method": "M4",
|
| 86 |
+
"frame": 36,
|
| 87 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/blog_tables_1_6_current_m4/renders/M4/036.png",
|
| 88 |
+
"published": "assets/fixed_views/M4/036.png",
|
| 89 |
+
"sha256": "a0a7a8afcd3ebc4e56c79a45aa41740f28ca08186b00a67af19161f23f773c2d",
|
| 90 |
+
"bytes": 547041
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"method": "GT",
|
| 94 |
+
"frame": 36,
|
| 95 |
+
"source": "vio-reconstruction/sessions/lobby_orb_success_20260929T123153/inputs/cam0/data/283280013455.png",
|
| 96 |
+
"published": "assets/fixed_views/GT/036.png",
|
| 97 |
+
"sha256": "449c88399a68cd88397306fbe42c5293e6684d9a9cfb749ea9e3f5ff78eef04d",
|
| 98 |
+
"bytes": 3688630
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"method": "M1",
|
| 102 |
+
"frame": 72,
|
| 103 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M1/072.png",
|
| 104 |
+
"published": "assets/fixed_views/M1/072.png",
|
| 105 |
+
"sha256": "30b78883e701ef411d4cc04a44dffaba6df13631f6ab4c643edc42e2aa4b2415",
|
| 106 |
+
"bytes": 431098
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"method": "M2",
|
| 110 |
+
"frame": 72,
|
| 111 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M2/072.png",
|
| 112 |
+
"published": "assets/fixed_views/M2/072.png",
|
| 113 |
+
"sha256": "899b65b8c0487f9987f38d09b246c9f97b0b94217d11ebbe29b990f48f19b003",
|
| 114 |
+
"bytes": 424182
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"method": "M3",
|
| 118 |
+
"frame": 72,
|
| 119 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M3/072.png",
|
| 120 |
+
"published": "assets/fixed_views/M3/072.png",
|
| 121 |
+
"sha256": "7d40497cf6c2c3c20403a4c3e1f9b0abe478fbb8602e1f259e51c48dd535d4f3",
|
| 122 |
+
"bytes": 390554
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"method": "M4",
|
| 126 |
+
"frame": 72,
|
| 127 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/blog_tables_1_6_current_m4/renders/M4/072.png",
|
| 128 |
+
"published": "assets/fixed_views/M4/072.png",
|
| 129 |
+
"sha256": "a934d91a6f6b9e130322f526e212dc9f279e1c787398e0181da3e9dd4f60127c",
|
| 130 |
+
"bytes": 491159
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"method": "GT",
|
| 134 |
+
"frame": 72,
|
| 135 |
+
"source": "vio-reconstruction/sessions/lobby_orb_success_20260929T123153/inputs/cam0/data/317520015081.png",
|
| 136 |
+
"published": "assets/fixed_views/GT/072.png",
|
| 137 |
+
"sha256": "222246adc897e2c42232a2b10231c614601dcd71580186647522ff1881a9b71f",
|
| 138 |
+
"bytes": 3688630
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"method": "M1",
|
| 142 |
+
"frame": 108,
|
| 143 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M1/108.png",
|
| 144 |
+
"published": "assets/fixed_views/M1/108.png",
|
| 145 |
+
"sha256": "9c98270c0e013225d168ee7714afbd2a80f5dfa764c0b158437d1985c26f4745",
|
| 146 |
+
"bytes": 309546
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"method": "M2",
|
| 150 |
+
"frame": 108,
|
| 151 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M2/108.png",
|
| 152 |
+
"published": "assets/fixed_views/M2/108.png",
|
| 153 |
+
"sha256": "291733823717146fa1e474187aafdca49d6e06b8900985dde6c48fef55684926",
|
| 154 |
+
"bytes": 464925
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"method": "M3",
|
| 158 |
+
"frame": 108,
|
| 159 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M3/108.png",
|
| 160 |
+
"published": "assets/fixed_views/M3/108.png",
|
| 161 |
+
"sha256": "12b289c7af68a32b1a00817685ed79ede039b3624af9896a57e90b1d5b99d864",
|
| 162 |
+
"bytes": 433108
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"method": "M4",
|
| 166 |
+
"frame": 108,
|
| 167 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/blog_tables_1_6_current_m4/renders/M4/108.png",
|
| 168 |
+
"published": "assets/fixed_views/M4/108.png",
|
| 169 |
+
"sha256": "4046e5e362ab8a81404aabd59da159a192f206bf7a80b694aca130c698fe2c7e",
|
| 170 |
+
"bytes": 531759
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"method": "GT",
|
| 174 |
+
"frame": 108,
|
| 175 |
+
"source": "vio-reconstruction/sessions/lobby_orb_success_20260929T123153/inputs/cam0/data/351720016706.png",
|
| 176 |
+
"published": "assets/fixed_views/GT/108.png",
|
| 177 |
+
"sha256": "5e5d07ef9ee0c166c24160b228dfc802ab244ac6002e8cfa76e450ee4a385565",
|
| 178 |
+
"bytes": 3688630
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"method": "M1",
|
| 182 |
+
"frame": 144,
|
| 183 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M1/144.png",
|
| 184 |
+
"published": "assets/fixed_views/M1/144.png",
|
| 185 |
+
"sha256": "cf7e5355a33a83fd148daf6a648936757e8be6d09639ace537cdb2ed37a8ed98",
|
| 186 |
+
"bytes": 486611
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"method": "M2",
|
| 190 |
+
"frame": 144,
|
| 191 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M2/144.png",
|
| 192 |
+
"published": "assets/fixed_views/M2/144.png",
|
| 193 |
+
"sha256": "6c4f51435f109f71a35a09c0757e8995dd4de3ebec16c43ee32c25c94303e165",
|
| 194 |
+
"bytes": 481190
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"method": "M3",
|
| 198 |
+
"frame": 144,
|
| 199 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/reference_style_figures/renders/M3/144.png",
|
| 200 |
+
"published": "assets/fixed_views/M3/144.png",
|
| 201 |
+
"sha256": "cc546f9d355fd3d8ac4f48a08b4e4a1158c112585922bb34e8715229482a3542",
|
| 202 |
+
"bytes": 474768
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"method": "M4",
|
| 206 |
+
"frame": 144,
|
| 207 |
+
"source": "world_lobby_four_trajectory_20260929/astra_blender2/evaluation/blog_tables_1_6_current_m4/renders/M4/144.png",
|
| 208 |
+
"published": "assets/fixed_views/M4/144.png",
|
| 209 |
+
"sha256": "1d6080b2ce9f2ae95c6a6d9fc47a620365a4439df89267ab166122287d8b61be",
|
| 210 |
+
"bytes": 529379
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"method": "GT",
|
| 214 |
+
"frame": 144,
|
| 215 |
+
"source": "vio-reconstruction/sessions/lobby_orb_success_20260929T123153/inputs/cam0/data/385920018330.png",
|
| 216 |
+
"published": "assets/fixed_views/GT/144.png",
|
| 217 |
+
"sha256": "cb8c1a4ade400f935ef4e1e3bfe93245fe77d8beb239040bf43baea840996444",
|
| 218 |
+
"bytes": 3688630
|
| 219 |
+
}
|
| 220 |
+
]
|
| 221 |
+
}
|
data/office_video_media.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"release_id": 400742542,
|
| 3 |
+
"tag": "office-media-20261001",
|
| 4 |
+
"assets": [
|
| 5 |
+
{
|
| 6 |
+
"file": "office-input.mp4",
|
| 7 |
+
"bytes": 11309649,
|
| 8 |
+
"sha256": "b99fbe48c99410972782b0a10754d3da2e461dda2dd95aa94c4213bb8d0baeb8",
|
| 9 |
+
"url": "https://github.com/Phygital-AI/agentic-world-simulation-and-mapping/releases/download/office-media-20261001/office-input.mp4",
|
| 10 |
+
"asset_id": 602717050
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"file": "office-pmodel.mp4",
|
| 14 |
+
"bytes": 19214748,
|
| 15 |
+
"sha256": "f2caba7641bb50ff65a231ea1d245724e884d449a41b89e829854924b53a514b",
|
| 16 |
+
"url": "https://github.com/Phygital-AI/agentic-world-simulation-and-mapping/releases/download/office-media-20261001/office-pmodel.mp4",
|
| 17 |
+
"asset_id": 602717164
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"file": "office-scan.mp4",
|
| 21 |
+
"bytes": 153594492,
|
| 22 |
+
"sha256": "4643631ba15e6a33c43ea3dd3f259f2b68fe1d67c69a44262ad5bf1519b5daf3",
|
| 23 |
+
"url": "https://github.com/Phygital-AI/agentic-world-simulation-and-mapping/releases/download/office-media-20261001/office-scan.mp4",
|
| 24 |
+
"asset_id": 602717518
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"schema_version": 1,
|
| 28 |
+
"preservation": "Original source files remain byte-for-byte in the release assets. Same-origin web playback files are listed separately below.",
|
| 29 |
+
"order": [
|
| 30 |
+
"office-input.mp4",
|
| 31 |
+
"office-pmodel.mp4",
|
| 32 |
+
"office-scan.mp4"
|
| 33 |
+
],
|
| 34 |
+
"video_spec": {
|
| 35 |
+
"width": 960,
|
| 36 |
+
"height": 540,
|
| 37 |
+
"frame_rate": "30/1",
|
| 38 |
+
"frames": 2103,
|
| 39 |
+
"duration_seconds": 70.1
|
| 40 |
+
},
|
| 41 |
+
"posters": [
|
| 42 |
+
{
|
| 43 |
+
"path": "assets/office-cafe/office-input-poster.jpg",
|
| 44 |
+
"source": "office-input.mp4",
|
| 45 |
+
"frame_index": 0,
|
| 46 |
+
"sha256": "09ee086ae0eca08afecbafb5fe5849600d0837349ae1b14e72dbdbaae9c2f237",
|
| 47 |
+
"bytes": 94250
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"path": "assets/office-cafe/office-pmodel-poster.jpg",
|
| 51 |
+
"source": "office-pmodel.mp4",
|
| 52 |
+
"frame_index": 0,
|
| 53 |
+
"sha256": "61ea36de0e40a955879b3b0195961ad137c738373726efda760b50232b7041b8",
|
| 54 |
+
"bytes": 80038
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"path": "assets/office-cafe/office-scan-poster.jpg",
|
| 58 |
+
"source": "office-scan.mp4",
|
| 59 |
+
"frame_index": 0,
|
| 60 |
+
"sha256": "59f64e13f254ef3c9dbf511277cd9782ac0267f25b54e99cba938269be30d4e3",
|
| 61 |
+
"bytes": 218866
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"path": "assets/office-cafe/office-shake-heavy-poster.jpg",
|
| 65 |
+
"source": "office-shake-heavy.mp4",
|
| 66 |
+
"frame_index": 0,
|
| 67 |
+
"sha256": "e4574f22938288bf76f5d123cbba7f871643a4889c519fab176484738438be6b",
|
| 68 |
+
"bytes": 104096
|
| 69 |
+
}
|
| 70 |
+
],
|
| 71 |
+
"web_playback": [
|
| 72 |
+
{
|
| 73 |
+
"source": "office-input.mp4",
|
| 74 |
+
"path": "assets/office-cafe/office-input-web.mp4",
|
| 75 |
+
"bytes": 27902821,
|
| 76 |
+
"sha256": "4915b934b5f9971c77d60f88d91ed110c5e164bb0932f89ac7cf8915964e9d2c",
|
| 77 |
+
"processing": "H.264 Constrained Baseline, CRF 18, maxrate 4 Mbps, fastdecode, faststart, 2-second keyframes",
|
| 78 |
+
"width": 960,
|
| 79 |
+
"height": 540,
|
| 80 |
+
"frames": 2103,
|
| 81 |
+
"frame_rate": "30/1",
|
| 82 |
+
"duration_seconds": 70.1
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"source": "office-pmodel.mp4",
|
| 86 |
+
"path": "assets/office-cafe/office-pmodel-web.mp4",
|
| 87 |
+
"bytes": 21650736,
|
| 88 |
+
"sha256": "3b03fe58a1922cdd1ca935f6ad52c69e672f1e391cdec1543e60db99e93a4d71",
|
| 89 |
+
"processing": "H.264 Constrained Baseline, CRF 18, maxrate 4 Mbps, fastdecode, faststart, 2-second keyframes",
|
| 90 |
+
"width": 960,
|
| 91 |
+
"height": 540,
|
| 92 |
+
"frames": 2103,
|
| 93 |
+
"frame_rate": "30/1",
|
| 94 |
+
"duration_seconds": 70.1
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"source": "office-scan.mp4",
|
| 98 |
+
"path": "assets/office-cafe/office-scan-web.mp4",
|
| 99 |
+
"bytes": 35449707,
|
| 100 |
+
"sha256": "861a074637b4b756f1c6ca115b50f20c9d03b46303caa6eb0503e812c4194b92",
|
| 101 |
+
"processing": "H.264 Constrained Baseline, CRF 18, maxrate 4 Mbps, fastdecode, faststart, 2-second keyframes",
|
| 102 |
+
"width": 960,
|
| 103 |
+
"height": 540,
|
| 104 |
+
"frames": 2103,
|
| 105 |
+
"frame_rate": "30/1",
|
| 106 |
+
"duration_seconds": 70.1
|
| 107 |
+
}
|
| 108 |
+
]
|
| 109 |
+
}
|
data/scene_comparison.json
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"models": {
|
| 4 |
+
"GT": {
|
| 5 |
+
"url": "assets/comparison/GT.glb",
|
| 6 |
+
"sha256": "6c28ab067c63c5b1fce19c6a972f3d66c7ac4d9bd9ce3b5a57e2e18f5641fe8f",
|
| 7 |
+
"bytes": 24816108,
|
| 8 |
+
"registration": "identity"
|
| 9 |
+
},
|
| 10 |
+
"M1": {
|
| 11 |
+
"url": "models/M1/scene.glb",
|
| 12 |
+
"sha256": "21a605be65d58dbe01606b8326bfe6f07fa418c67e133c9b2181729b68bc2832",
|
| 13 |
+
"bytes": 15104860,
|
| 14 |
+
"runtime_matrix_gltf_y_up": [
|
| 15 |
+
[
|
| 16 |
+
-0.034082710190599566,
|
| 17 |
+
-0.017474675835450443,
|
| 18 |
+
-1.003087981240217,
|
| 19 |
+
6.886067611483274
|
| 20 |
+
],
|
| 21 |
+
[
|
| 22 |
+
-0.07852778991034609,
|
| 23 |
+
1.0006337553304165,
|
| 24 |
+
-0.014763720507024342,
|
| 25 |
+
-0.11837912846914733
|
| 26 |
+
],
|
| 27 |
+
[
|
| 28 |
+
1.000162111167947,
|
| 29 |
+
0.07796933330392732,
|
| 30 |
+
-0.03534159003611681,
|
| 31 |
+
-25.800695086947528
|
| 32 |
+
],
|
| 33 |
+
[
|
| 34 |
+
0.0,
|
| 35 |
+
0.0,
|
| 36 |
+
0.0,
|
| 37 |
+
1.0
|
| 38 |
+
]
|
| 39 |
+
],
|
| 40 |
+
"source_registration": "astra_blender2/evaluation/reference_style_figures/registration_M1.json"
|
| 41 |
+
},
|
| 42 |
+
"M2": {
|
| 43 |
+
"url": "models/M2/scene.glb",
|
| 44 |
+
"sha256": "0ee9123f38099d1df63ab593dd7082d5f1cf1b136e63833ec5afa0e072cf4c2e",
|
| 45 |
+
"bytes": 14523124,
|
| 46 |
+
"runtime_matrix_gltf_y_up": [
|
| 47 |
+
[
|
| 48 |
+
-0.002921335722089408,
|
| 49 |
+
-0.00012677219434212295,
|
| 50 |
+
-0.9999957248540663,
|
| 51 |
+
10.642407320031518
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
0.0030202640740619557,
|
| 55 |
+
0.9999954297989613,
|
| 56 |
+
-0.00013559539998786452,
|
| 57 |
+
0.08437265493567603
|
| 58 |
+
],
|
| 59 |
+
[
|
| 60 |
+
0.9999911718622922,
|
| 61 |
+
-0.0030206472816780125,
|
| 62 |
+
-0.002920939485494111,
|
| 63 |
+
-21.687447573786944
|
| 64 |
+
],
|
| 65 |
+
[
|
| 66 |
+
0.0,
|
| 67 |
+
0.0,
|
| 68 |
+
0.0,
|
| 69 |
+
1.0
|
| 70 |
+
]
|
| 71 |
+
],
|
| 72 |
+
"source_registration": "astra_blender2/evaluation/reference_style_figures/registration_M2.json"
|
| 73 |
+
},
|
| 74 |
+
"M3": {
|
| 75 |
+
"url": "models/M3/scene.glb",
|
| 76 |
+
"sha256": "22699f8225a5f90166cdea2e6e2bdad7977fda4a1fe1086da209f0c9afe97a6c",
|
| 77 |
+
"bytes": 7701488,
|
| 78 |
+
"runtime_matrix_gltf_y_up": [
|
| 79 |
+
[
|
| 80 |
+
0.9999929680848632,
|
| 81 |
+
0.0025089340052771025,
|
| 82 |
+
0.002787298151085771,
|
| 83 |
+
7.830309933606095
|
| 84 |
+
],
|
| 85 |
+
[
|
| 86 |
+
-0.002507975856466338,
|
| 87 |
+
0.9999967947503668,
|
| 88 |
+
-0.0003471974908570291,
|
| 89 |
+
-0.005554550842903794
|
| 90 |
+
],
|
| 91 |
+
[
|
| 92 |
+
-0.0027881603126906785,
|
| 93 |
+
0.0003402045729258979,
|
| 94 |
+
0.9999960552036794,
|
| 95 |
+
-17.966462178842214
|
| 96 |
+
],
|
| 97 |
+
[
|
| 98 |
+
0.0,
|
| 99 |
+
0.0,
|
| 100 |
+
0.0,
|
| 101 |
+
1.0
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"source_registration": "astra_blender2/evaluation/reference_style_figures/registration_M3.json"
|
| 105 |
+
},
|
| 106 |
+
"M4": {
|
| 107 |
+
"url": "models/M4/scene.glb",
|
| 108 |
+
"sha256": "716e4b89b7b11ad8a0cb0e238b366b4f5dc80e3a2c3cddb5eedc469ef4e63774",
|
| 109 |
+
"bytes": 17202608,
|
| 110 |
+
"runtime_matrix_gltf_y_up": [
|
| 111 |
+
[
|
| 112 |
+
1,
|
| 113 |
+
0,
|
| 114 |
+
0,
|
| 115 |
+
0
|
| 116 |
+
],
|
| 117 |
+
[
|
| 118 |
+
0,
|
| 119 |
+
0,
|
| 120 |
+
1,
|
| 121 |
+
0
|
| 122 |
+
],
|
| 123 |
+
[
|
| 124 |
+
0,
|
| 125 |
+
-1,
|
| 126 |
+
0,
|
| 127 |
+
0
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
0,
|
| 131 |
+
0,
|
| 132 |
+
0,
|
| 133 |
+
1
|
| 134 |
+
]
|
| 135 |
+
],
|
| 136 |
+
"source_registration": null
|
| 137 |
+
}
|
| 138 |
+
},
|
| 139 |
+
"camera": {
|
| 140 |
+
"target": [
|
| 141 |
+
18,
|
| 142 |
+
1.2,
|
| 143 |
+
-21
|
| 144 |
+
],
|
| 145 |
+
"position": [
|
| 146 |
+
24,
|
| 147 |
+
23,
|
| 148 |
+
-5
|
| 149 |
+
],
|
| 150 |
+
"fov": 42,
|
| 151 |
+
"near": 0.05,
|
| 152 |
+
"far": 500
|
| 153 |
+
},
|
| 154 |
+
"coordinate_conversion": {
|
| 155 |
+
"reason": "glTF is Y-up while registration is Blender Z-up",
|
| 156 |
+
"C_mapping": "[x,y,z] -> [x,z,-y]",
|
| 157 |
+
"C": [
|
| 158 |
+
[
|
| 159 |
+
1,
|
| 160 |
+
0,
|
| 161 |
+
0,
|
| 162 |
+
0
|
| 163 |
+
],
|
| 164 |
+
[
|
| 165 |
+
0,
|
| 166 |
+
0,
|
| 167 |
+
1,
|
| 168 |
+
0
|
| 169 |
+
],
|
| 170 |
+
[
|
| 171 |
+
0,
|
| 172 |
+
-1,
|
| 173 |
+
0,
|
| 174 |
+
0
|
| 175 |
+
],
|
| 176 |
+
[
|
| 177 |
+
0,
|
| 178 |
+
0,
|
| 179 |
+
0,
|
| 180 |
+
1
|
| 181 |
+
]
|
| 182 |
+
],
|
| 183 |
+
"C_inverse": [
|
| 184 |
+
[
|
| 185 |
+
1,
|
| 186 |
+
0,
|
| 187 |
+
0,
|
| 188 |
+
0
|
| 189 |
+
],
|
| 190 |
+
[
|
| 191 |
+
0,
|
| 192 |
+
0,
|
| 193 |
+
-1,
|
| 194 |
+
0
|
| 195 |
+
],
|
| 196 |
+
[
|
| 197 |
+
0,
|
| 198 |
+
1,
|
| 199 |
+
0,
|
| 200 |
+
0
|
| 201 |
+
],
|
| 202 |
+
[
|
| 203 |
+
0,
|
| 204 |
+
0,
|
| 205 |
+
0,
|
| 206 |
+
1
|
| 207 |
+
]
|
| 208 |
+
],
|
| 209 |
+
"runtime_formula": "C * T * C^-1"
|
| 210 |
+
},
|
| 211 |
+
"registrations": {
|
| 212 |
+
"M1": {
|
| 213 |
+
"source": {
|
| 214 |
+
"path": "astra_blender2/evaluation/reference_style_figures/registration_M1.json",
|
| 215 |
+
"sha256": "db6b936e5d04b1be27048790ab354f481f89d20f4d46739340ea6f6fc1048d1e",
|
| 216 |
+
"transform_direction": "GT_from_model",
|
| 217 |
+
"status": "COMPLETE_DIAGNOSTIC",
|
| 218 |
+
"scope": "GT-assisted Sim3 from frozen manual-view camera associations; shape/display diagnostic only; not metric recovery; no mesh ICP",
|
| 219 |
+
"limitations": "All M1 authored cameras remain invalid for native trajectory evaluation; this GT-assisted registration is diagnostic only."
|
| 220 |
+
},
|
| 221 |
+
"GT_from_model_blender_z_up": [
|
| 222 |
+
[
|
| 223 |
+
-0.034082710190599566,
|
| 224 |
+
1.003087981240217,
|
| 225 |
+
-0.017474675835450443,
|
| 226 |
+
6.886067611483274
|
| 227 |
+
],
|
| 228 |
+
[
|
| 229 |
+
-1.000162111167947,
|
| 230 |
+
-0.03534159003611681,
|
| 231 |
+
-0.07796933330392732,
|
| 232 |
+
25.800695086947528
|
| 233 |
+
],
|
| 234 |
+
[
|
| 235 |
+
-0.07852778991034609,
|
| 236 |
+
0.014763720507024342,
|
| 237 |
+
1.0006337553304165,
|
| 238 |
+
-0.11837912846914733
|
| 239 |
+
],
|
| 240 |
+
[
|
| 241 |
+
0.0,
|
| 242 |
+
0.0,
|
| 243 |
+
0.0,
|
| 244 |
+
1.0
|
| 245 |
+
]
|
| 246 |
+
],
|
| 247 |
+
"runtime_matrix_gltf_y_up": [
|
| 248 |
+
[
|
| 249 |
+
-0.034082710190599566,
|
| 250 |
+
-0.017474675835450443,
|
| 251 |
+
-1.003087981240217,
|
| 252 |
+
6.886067611483274
|
| 253 |
+
],
|
| 254 |
+
[
|
| 255 |
+
-0.07852778991034609,
|
| 256 |
+
1.0006337553304165,
|
| 257 |
+
-0.014763720507024342,
|
| 258 |
+
-0.11837912846914733
|
| 259 |
+
],
|
| 260 |
+
[
|
| 261 |
+
1.000162111167947,
|
| 262 |
+
0.07796933330392732,
|
| 263 |
+
-0.03534159003611681,
|
| 264 |
+
-25.800695086947528
|
| 265 |
+
],
|
| 266 |
+
[
|
| 267 |
+
0.0,
|
| 268 |
+
0.0,
|
| 269 |
+
0.0,
|
| 270 |
+
1.0
|
| 271 |
+
]
|
| 272 |
+
],
|
| 273 |
+
"formula": "C * GT_from_model * C^-1",
|
| 274 |
+
"diagnostic_caveat": "M1 only: GT-assisted Sim(3) from five manual camera associations; diagnostic only; not native metric recovery."
|
| 275 |
+
},
|
| 276 |
+
"M2": {
|
| 277 |
+
"source": {
|
| 278 |
+
"path": "astra_blender2/evaluation/reference_style_figures/registration_M2.json",
|
| 279 |
+
"sha256": "456f1bed62a2ece0601e05d3f6044545f6835999d2bd98394d9ae278f44022b6",
|
| 280 |
+
"transform_direction": "GT_from_model",
|
| 281 |
+
"status": "COMPLETE",
|
| 282 |
+
"scope": "one SE3 from 180 input camera correspondences; no scale fit",
|
| 283 |
+
"limitations": null
|
| 284 |
+
},
|
| 285 |
+
"GT_from_model_blender_z_up": [
|
| 286 |
+
[
|
| 287 |
+
-0.002921335722089408,
|
| 288 |
+
0.9999957248540663,
|
| 289 |
+
-0.00012677219434212295,
|
| 290 |
+
10.642407320031518
|
| 291 |
+
],
|
| 292 |
+
[
|
| 293 |
+
-0.9999911718622922,
|
| 294 |
+
-0.002920939485494111,
|
| 295 |
+
0.0030206472816780125,
|
| 296 |
+
21.687447573786944
|
| 297 |
+
],
|
| 298 |
+
[
|
| 299 |
+
0.0030202640740619557,
|
| 300 |
+
0.00013559539998786452,
|
| 301 |
+
0.9999954297989613,
|
| 302 |
+
0.08437265493567603
|
| 303 |
+
],
|
| 304 |
+
[
|
| 305 |
+
0.0,
|
| 306 |
+
0.0,
|
| 307 |
+
0.0,
|
| 308 |
+
1.0
|
| 309 |
+
]
|
| 310 |
+
],
|
| 311 |
+
"runtime_matrix_gltf_y_up": [
|
| 312 |
+
[
|
| 313 |
+
-0.002921335722089408,
|
| 314 |
+
-0.00012677219434212295,
|
| 315 |
+
-0.9999957248540663,
|
| 316 |
+
10.642407320031518
|
| 317 |
+
],
|
| 318 |
+
[
|
| 319 |
+
0.0030202640740619557,
|
| 320 |
+
0.9999954297989613,
|
| 321 |
+
-0.00013559539998786452,
|
| 322 |
+
0.08437265493567603
|
| 323 |
+
],
|
| 324 |
+
[
|
| 325 |
+
0.9999911718622922,
|
| 326 |
+
-0.0030206472816780125,
|
| 327 |
+
-0.002920939485494111,
|
| 328 |
+
-21.687447573786944
|
| 329 |
+
],
|
| 330 |
+
[
|
| 331 |
+
0.0,
|
| 332 |
+
0.0,
|
| 333 |
+
0.0,
|
| 334 |
+
1.0
|
| 335 |
+
]
|
| 336 |
+
],
|
| 337 |
+
"formula": "C * GT_from_model * C^-1",
|
| 338 |
+
"diagnostic_caveat": null
|
| 339 |
+
},
|
| 340 |
+
"M3": {
|
| 341 |
+
"source": {
|
| 342 |
+
"path": "astra_blender2/evaluation/reference_style_figures/registration_M3.json",
|
| 343 |
+
"sha256": "30454936b3a9a2a8163ce8ae4851979ce4df71826028ed15967f6a7e882dce49",
|
| 344 |
+
"transform_direction": "GT_from_model",
|
| 345 |
+
"status": "COMPLETE",
|
| 346 |
+
"scope": "one SE3 from 180 input camera correspondences; no scale fit",
|
| 347 |
+
"limitations": null
|
| 348 |
+
},
|
| 349 |
+
"GT_from_model_blender_z_up": [
|
| 350 |
+
[
|
| 351 |
+
0.9999929680848632,
|
| 352 |
+
-0.002787298151085771,
|
| 353 |
+
0.0025089340052771025,
|
| 354 |
+
7.830309933606095
|
| 355 |
+
],
|
| 356 |
+
[
|
| 357 |
+
0.0027881603126906785,
|
| 358 |
+
0.9999960552036794,
|
| 359 |
+
-0.0003402045729258979,
|
| 360 |
+
17.966462178842214
|
| 361 |
+
],
|
| 362 |
+
[
|
| 363 |
+
-0.002507975856466338,
|
| 364 |
+
0.0003471974908570291,
|
| 365 |
+
0.9999967947503668,
|
| 366 |
+
-0.005554550842903794
|
| 367 |
+
],
|
| 368 |
+
[
|
| 369 |
+
0.0,
|
| 370 |
+
0.0,
|
| 371 |
+
0.0,
|
| 372 |
+
1.0
|
| 373 |
+
]
|
| 374 |
+
],
|
| 375 |
+
"runtime_matrix_gltf_y_up": [
|
| 376 |
+
[
|
| 377 |
+
0.9999929680848632,
|
| 378 |
+
0.0025089340052771025,
|
| 379 |
+
0.002787298151085771,
|
| 380 |
+
7.830309933606095
|
| 381 |
+
],
|
| 382 |
+
[
|
| 383 |
+
-0.002507975856466338,
|
| 384 |
+
0.9999967947503668,
|
| 385 |
+
-0.0003471974908570291,
|
| 386 |
+
-0.005554550842903794
|
| 387 |
+
],
|
| 388 |
+
[
|
| 389 |
+
-0.0027881603126906785,
|
| 390 |
+
0.0003402045729258979,
|
| 391 |
+
0.9999960552036794,
|
| 392 |
+
-17.966462178842214
|
| 393 |
+
],
|
| 394 |
+
[
|
| 395 |
+
0.0,
|
| 396 |
+
0.0,
|
| 397 |
+
0.0,
|
| 398 |
+
1.0
|
| 399 |
+
]
|
| 400 |
+
],
|
| 401 |
+
"formula": "C * GT_from_model * C^-1",
|
| 402 |
+
"diagnostic_caveat": null
|
| 403 |
+
},
|
| 404 |
+
"M4": {
|
| 405 |
+
"source": {
|
| 406 |
+
"path": null,
|
| 407 |
+
"sha256": null,
|
| 408 |
+
"transform_direction": "GT_from_model",
|
| 409 |
+
"rule": "identity_world; source GLB retains Blender Z-up axes"
|
| 410 |
+
},
|
| 411 |
+
"GT_from_model_blender_z_up": [
|
| 412 |
+
[
|
| 413 |
+
1,
|
| 414 |
+
0,
|
| 415 |
+
0,
|
| 416 |
+
0
|
| 417 |
+
],
|
| 418 |
+
[
|
| 419 |
+
0,
|
| 420 |
+
1,
|
| 421 |
+
0,
|
| 422 |
+
0
|
| 423 |
+
],
|
| 424 |
+
[
|
| 425 |
+
0,
|
| 426 |
+
0,
|
| 427 |
+
1,
|
| 428 |
+
0
|
| 429 |
+
],
|
| 430 |
+
[
|
| 431 |
+
0,
|
| 432 |
+
0,
|
| 433 |
+
0,
|
| 434 |
+
1
|
| 435 |
+
]
|
| 436 |
+
],
|
| 437 |
+
"runtime_matrix_gltf_y_up": [
|
| 438 |
+
[
|
| 439 |
+
1,
|
| 440 |
+
0,
|
| 441 |
+
0,
|
| 442 |
+
0
|
| 443 |
+
],
|
| 444 |
+
[
|
| 445 |
+
0,
|
| 446 |
+
0,
|
| 447 |
+
1,
|
| 448 |
+
0
|
| 449 |
+
],
|
| 450 |
+
[
|
| 451 |
+
0,
|
| 452 |
+
-1,
|
| 453 |
+
0,
|
| 454 |
+
0
|
| 455 |
+
],
|
| 456 |
+
[
|
| 457 |
+
0,
|
| 458 |
+
0,
|
| 459 |
+
0,
|
| 460 |
+
1
|
| 461 |
+
]
|
| 462 |
+
],
|
| 463 |
+
"formula": "C (axis conversion only; GT_from_model is identity)",
|
| 464 |
+
"diagnostic_caveat": null
|
| 465 |
+
}
|
| 466 |
+
},
|
| 467 |
+
"display_cutaway": {
|
| 468 |
+
"scope": "runtime display only; frozen GLB/Blend bytes remain unchanged",
|
| 469 |
+
"hide_name_pattern": "ceiling|roof|wall|facade",
|
| 470 |
+
"keep_name_pattern": "emblem|art|grass|metal",
|
| 471 |
+
"applies_to": [
|
| 472 |
+
"M1",
|
| 473 |
+
"M2",
|
| 474 |
+
"M3",
|
| 475 |
+
"M4"
|
| 476 |
+
],
|
| 477 |
+
"gt_asset": "already exported as a cutaway display model"
|
| 478 |
+
},
|
| 479 |
+
"immutability": "Display copies and runtime registration do not alter frozen source GLB bytes.",
|
| 480 |
+
"m1_diagnostic_caveat": "M1 registration is diagnostic only and is not native metric recovery.",
|
| 481 |
+
"gt_asset": {
|
| 482 |
+
"source_url": "https://wentingw.github.io/astra-world-model-blog/assets/comparison/GT.glb",
|
| 483 |
+
"published": "assets/comparison/GT.glb",
|
| 484 |
+
"sha256": "6c28ab067c63c5b1fce19c6a972f3d66c7ac4d9bd9ce3b5a57e2e18f5641fe8f",
|
| 485 |
+
"bytes": 24816108
|
| 486 |
+
}
|
| 487 |
+
}
|
data/source_contract.json
ADDED
|
@@ -0,0 +1,576 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"old_site_baseline": "ae69dbe",
|
| 4 |
+
"source_root_name": "world_lobby_four_trajectory_20260929",
|
| 5 |
+
"table_source": {
|
| 6 |
+
"path": "astra_blender2/evaluation/blog_extended_100_20260930/tables_1_7.json",
|
| 7 |
+
"sha256": "01faed4be8948d16fbdc081bda859554f3bfc3f20c55746fba0ca70369179287",
|
| 8 |
+
"published_url": "data/tables_1_7.json"
|
| 9 |
+
},
|
| 10 |
+
"figures": {
|
| 11 |
+
"assets/figure14_abc.png": {
|
| 12 |
+
"source": "astra_blender2/report/space/assets/figure14_abc.png",
|
| 13 |
+
"published": "assets/figure14_abc.png",
|
| 14 |
+
"sha256": "6ce74542f6ce9d45a985e1916a42ef2e1205b29bbcb03959e4b1ea08380dfa39",
|
| 15 |
+
"bytes": 344653
|
| 16 |
+
},
|
| 17 |
+
"assets/fixed_five_view_comparison_m1_m4.jpg": {
|
| 18 |
+
"source": "astra_blender2/report/space/assets/fixed_five_view_comparison_m1_m4.jpg",
|
| 19 |
+
"published": "assets/fixed_five_view_comparison_m1_m4.jpg",
|
| 20 |
+
"sha256": "501a674252a492deb209a9cfd847e8f0c83103c49d5f250964ee451d233481a9",
|
| 21 |
+
"bytes": 1755470
|
| 22 |
+
},
|
| 23 |
+
"assets/model_depth_error_five_views_m1_m4.png": {
|
| 24 |
+
"source": "astra_blender2/report/space/assets/model_depth_error_five_views_m1_m4.png",
|
| 25 |
+
"published": "assets/model_depth_error_five_views_m1_m4.png",
|
| 26 |
+
"sha256": "448bc111da467461ae84941bc6ea5f5601ca5f9746d292dc1b8b279bbfa153ce",
|
| 27 |
+
"bytes": 469515
|
| 28 |
+
},
|
| 29 |
+
"assets/teaser_originals.png": {
|
| 30 |
+
"source": "teaser_originals.png",
|
| 31 |
+
"published": "assets/teaser_originals.png",
|
| 32 |
+
"sha256": "6099f12bdaea83fb2ce4f8e1ed282ac864d6f4ffb96911efb5a9101845656dae",
|
| 33 |
+
"bytes": 4000665
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"models": {
|
| 37 |
+
"M1": {
|
| 38 |
+
"glb": {
|
| 39 |
+
"source": "astra_blender/models/M1/scene.glb",
|
| 40 |
+
"published": "models/M1/scene.glb",
|
| 41 |
+
"sha256": "21a605be65d58dbe01606b8326bfe6f07fa418c67e133c9b2181729b68bc2832",
|
| 42 |
+
"bytes": 15104860
|
| 43 |
+
},
|
| 44 |
+
"blend": {
|
| 45 |
+
"source": "astra_blender/models/M1/scene.blend",
|
| 46 |
+
"published": "models/M1/scene.blend",
|
| 47 |
+
"sha256": "80f985ad09591bdb227e99e71f6bacaa0b9e8c8b565c27da64ad4ac4ceb8910e",
|
| 48 |
+
"bytes": 2691023
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
"M2": {
|
| 52 |
+
"glb": {
|
| 53 |
+
"source": "astra_blender/models/M2/scene.glb",
|
| 54 |
+
"published": "models/M2/scene.glb",
|
| 55 |
+
"sha256": "0ee9123f38099d1df63ab593dd7082d5f1cf1b136e63833ec5afa0e072cf4c2e",
|
| 56 |
+
"bytes": 14523124
|
| 57 |
+
},
|
| 58 |
+
"blend": {
|
| 59 |
+
"source": "astra_blender/models/M2/scene.blend",
|
| 60 |
+
"published": "models/M2/scene.blend",
|
| 61 |
+
"sha256": "c19f33ec434bbcf89137e67d81c283b9adfd48f42e993d8b29d63e08318f79a6",
|
| 62 |
+
"bytes": 3886116
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"M3": {
|
| 66 |
+
"glb": {
|
| 67 |
+
"source": "astra_blender/models/M3/scene.glb",
|
| 68 |
+
"published": "models/M3/scene.glb",
|
| 69 |
+
"sha256": "22699f8225a5f90166cdea2e6e2bdad7977fda4a1fe1086da209f0c9afe97a6c",
|
| 70 |
+
"bytes": 7701488
|
| 71 |
+
},
|
| 72 |
+
"blend": {
|
| 73 |
+
"source": "astra_blender/models/M3/scene.blend",
|
| 74 |
+
"published": "models/M3/scene.blend",
|
| 75 |
+
"sha256": "00cd43eef3b4a6b2b2b169e8a7eda787dc57222dc501a3a9be09f39af5f46a9b",
|
| 76 |
+
"bytes": 2319452
|
| 77 |
+
}
|
| 78 |
+
},
|
| 79 |
+
"M4": {
|
| 80 |
+
"glb": {
|
| 81 |
+
"source": "astra_blender/models/M4/scene.glb",
|
| 82 |
+
"published": "models/M4/scene.glb",
|
| 83 |
+
"sha256": "716e4b89b7b11ad8a0cb0e238b366b4f5dc80e3a2c3cddb5eedc469ef4e63774",
|
| 84 |
+
"bytes": 17202608
|
| 85 |
+
},
|
| 86 |
+
"blend": {
|
| 87 |
+
"source": "astra_blender/models/M4/scene.blend",
|
| 88 |
+
"published": "models/M4/scene.blend",
|
| 89 |
+
"sha256": "cc6cb605246a255d94e36b9dc3f8b91d5a292b047470bc0ff75b8a5c404b0cfe",
|
| 90 |
+
"bytes": 2268620
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"gt_asset": {
|
| 95 |
+
"source_url": "https://wentingw.github.io/astra-world-model-blog/assets/comparison/GT.glb",
|
| 96 |
+
"published": "assets/comparison/GT.glb",
|
| 97 |
+
"sha256": "6c28ab067c63c5b1fce19c6a972f3d66c7ac4d9bd9ce3b5a57e2e18f5641fe8f",
|
| 98 |
+
"bytes": 24816108
|
| 99 |
+
},
|
| 100 |
+
"fixed_views_manifest": "data/fixed_views.json",
|
| 101 |
+
"scene_comparison_manifest": "data/scene_comparison.json",
|
| 102 |
+
"office_cafe_case_study": {
|
| 103 |
+
"office_cafe": {
|
| 104 |
+
"source_url": "https://office-cafe-vipe.hiwtishere.chatgpt.site/",
|
| 105 |
+
"presentation": "local_models_and_synchronized_original_videos",
|
| 106 |
+
"included_assets": [
|
| 107 |
+
"original_model",
|
| 108 |
+
"legacy_model",
|
| 109 |
+
"input_video",
|
| 110 |
+
"procedural_model_video",
|
| 111 |
+
"scan_video",
|
| 112 |
+
"strong_shake"
|
| 113 |
+
],
|
| 114 |
+
"video_manifest": "data/office_video_media.json"
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
"vendor": {
|
| 118 |
+
"three.module.js": {
|
| 119 |
+
"source": "world_model_blog/private_repo/sceneweft_sync_20260925/blog/vendor/three/three.module.js",
|
| 120 |
+
"published": "vendor/three/three.module.js",
|
| 121 |
+
"sha256": "c8211c69345d2e9949dc7a8ac969380497aa0600a5a8ac6a459c8cd02dd9cb8a",
|
| 122 |
+
"bytes": 603113
|
| 123 |
+
},
|
| 124 |
+
"three.core.js": {
|
| 125 |
+
"source": "world_model_blog/private_repo/sceneweft_sync_20260925/blog/vendor/three/three.core.js",
|
| 126 |
+
"published": "vendor/three/three.core.js",
|
| 127 |
+
"sha256": "eb077d2417f61d3e6d9264c317cabc4ea35769ed6b0ab533067292a550784c20",
|
| 128 |
+
"bytes": 1403455
|
| 129 |
+
},
|
| 130 |
+
"loaders/GLTFLoader.js": {
|
| 131 |
+
"source": "world_model_blog/private_repo/sceneweft_sync_20260925/blog/vendor/three/loaders/GLTFLoader.js",
|
| 132 |
+
"published": "vendor/three/loaders/GLTFLoader.js",
|
| 133 |
+
"sha256": "67ac5551fdafa6e349bd80c8f8e5e39c136d6b2fb1ad647db9abb21dc86f9e4a",
|
| 134 |
+
"bytes": 114739
|
| 135 |
+
},
|
| 136 |
+
"controls/OrbitControls.js": {
|
| 137 |
+
"source": "world_model_blog/private_repo/sceneweft_sync_20260925/blog/vendor/three/controls/OrbitControls.js",
|
| 138 |
+
"published": "vendor/three/controls/OrbitControls.js",
|
| 139 |
+
"sha256": "b97879c748170baadeb3fb84cea1ffdf4674e283dc06042f34e2acb95a76042c",
|
| 140 |
+
"bytes": 38703
|
| 141 |
+
},
|
| 142 |
+
"environments/RoomEnvironment.js": {
|
| 143 |
+
"source": "world_model_blog/private_repo/sceneweft_sync_20260925/blog/vendor/three/environments/RoomEnvironment.js",
|
| 144 |
+
"published": "vendor/three/environments/RoomEnvironment.js",
|
| 145 |
+
"sha256": "c20f0b4677f6128a138d7152b85cbef9091f4f45cdfa05adca04d40c1697c7ae",
|
| 146 |
+
"bytes": 4899
|
| 147 |
+
},
|
| 148 |
+
"utils/BufferGeometryUtils.js": {
|
| 149 |
+
"source": "world_model_blog/private_repo/sceneweft_sync_20260925/blog/vendor/three/utils/BufferGeometryUtils.js",
|
| 150 |
+
"published": "vendor/three/utils/BufferGeometryUtils.js",
|
| 151 |
+
"sha256": "fda7e946b8e0b5ab39b779206589e7a1079a22eb24efb89d7223e03fdfb1f751",
|
| 152 |
+
"bytes": 35539
|
| 153 |
+
}
|
| 154 |
+
},
|
| 155 |
+
"tables": [
|
| 156 |
+
{
|
| 157 |
+
"number": 1,
|
| 158 |
+
"key": "table1",
|
| 159 |
+
"methods": [
|
| 160 |
+
"M1",
|
| 161 |
+
"M2",
|
| 162 |
+
"M3",
|
| 163 |
+
"M4"
|
| 164 |
+
],
|
| 165 |
+
"columns": [
|
| 166 |
+
"method",
|
| 167 |
+
"allowed_inputs",
|
| 168 |
+
"geometry_source",
|
| 169 |
+
"modeling_role"
|
| 170 |
+
],
|
| 171 |
+
"url": "index.html#table-1",
|
| 172 |
+
"english_url": "en.html#table-1"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"number": 2,
|
| 176 |
+
"key": "table2",
|
| 177 |
+
"methods": [
|
| 178 |
+
"M1",
|
| 179 |
+
"M2",
|
| 180 |
+
"M3",
|
| 181 |
+
"M4"
|
| 182 |
+
],
|
| 183 |
+
"columns": [
|
| 184 |
+
"method",
|
| 185 |
+
"ate_m",
|
| 186 |
+
"rotation_deg",
|
| 187 |
+
"native_depth_absrel",
|
| 188 |
+
"model_depth_absrel",
|
| 189 |
+
"alignment"
|
| 190 |
+
],
|
| 191 |
+
"url": "index.html#table-2",
|
| 192 |
+
"english_url": "en.html#table-2"
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"number": 3,
|
| 196 |
+
"key": "table3",
|
| 197 |
+
"methods": [
|
| 198 |
+
"M1",
|
| 199 |
+
"M2",
|
| 200 |
+
"M3",
|
| 201 |
+
"M4"
|
| 202 |
+
],
|
| 203 |
+
"columns": [
|
| 204 |
+
"method",
|
| 205 |
+
"model_to_gt_mean_m",
|
| 206 |
+
"observed_gt_to_model_mean_m",
|
| 207 |
+
"model_sha256",
|
| 208 |
+
"alignment",
|
| 209 |
+
"bidirectional_mean_m"
|
| 210 |
+
],
|
| 211 |
+
"url": "index.html#table-3",
|
| 212 |
+
"english_url": "en.html#table-3"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"number": 4,
|
| 216 |
+
"key": "table4",
|
| 217 |
+
"methods": [
|
| 218 |
+
"M1",
|
| 219 |
+
"M2",
|
| 220 |
+
"M3",
|
| 221 |
+
"M4"
|
| 222 |
+
],
|
| 223 |
+
"columns": [
|
| 224 |
+
"method",
|
| 225 |
+
"psnr_db",
|
| 226 |
+
"ssim",
|
| 227 |
+
"lpips_alex_v01"
|
| 228 |
+
],
|
| 229 |
+
"url": "index.html#table-4",
|
| 230 |
+
"english_url": "en.html#table-4"
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"number": 5,
|
| 234 |
+
"key": "table5",
|
| 235 |
+
"methods": [
|
| 236 |
+
"M1",
|
| 237 |
+
"M2",
|
| 238 |
+
"M3",
|
| 239 |
+
"M4"
|
| 240 |
+
],
|
| 241 |
+
"columns": [
|
| 242 |
+
"method",
|
| 243 |
+
"psnr_db",
|
| 244 |
+
"ssim",
|
| 245 |
+
"lpips_alex_v01"
|
| 246 |
+
],
|
| 247 |
+
"url": "index.html#table-5",
|
| 248 |
+
"english_url": "en.html#table-5"
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"number": 6,
|
| 252 |
+
"key": "table6",
|
| 253 |
+
"methods": [
|
| 254 |
+
"M1",
|
| 255 |
+
"M2",
|
| 256 |
+
"M3",
|
| 257 |
+
"M4"
|
| 258 |
+
],
|
| 259 |
+
"columns": [
|
| 260 |
+
"method",
|
| 261 |
+
"absrel",
|
| 262 |
+
"rmse_m",
|
| 263 |
+
"coverage",
|
| 264 |
+
"penalized_mae_m"
|
| 265 |
+
],
|
| 266 |
+
"url": "index.html#table-6",
|
| 267 |
+
"english_url": "en.html#table-6"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"number": 7,
|
| 271 |
+
"key": "table7",
|
| 272 |
+
"methods": [
|
| 273 |
+
"M1",
|
| 274 |
+
"M2",
|
| 275 |
+
"M3",
|
| 276 |
+
"M4"
|
| 277 |
+
],
|
| 278 |
+
"columns": [
|
| 279 |
+
"method",
|
| 280 |
+
"absrel",
|
| 281 |
+
"rmse_m",
|
| 282 |
+
"coverage",
|
| 283 |
+
"penalized_mae_m"
|
| 284 |
+
],
|
| 285 |
+
"url": "index.html#table-7",
|
| 286 |
+
"english_url": "en.html#table-7"
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
"presentation": {
|
| 290 |
+
"table2_hidden_columns": [
|
| 291 |
+
"alignment"
|
| 292 |
+
],
|
| 293 |
+
"table3_hidden_columns": [
|
| 294 |
+
"model_sha256",
|
| 295 |
+
"alignment"
|
| 296 |
+
],
|
| 297 |
+
"figure1_layout": "single supplied teaser image",
|
| 298 |
+
"metric_best_values": "bold, raw-value comparison"
|
| 299 |
+
},
|
| 300 |
+
"protocols": {
|
| 301 |
+
"table2": "180 fixed views × 19,200 pixels; optical-Z; GT-valid domain; no per-view fitting",
|
| 302 |
+
"table3": {
|
| 303 |
+
"model_surface_samples": 100000,
|
| 304 |
+
"model_surface_seed": 20260923,
|
| 305 |
+
"observed_gt_samples": 100000,
|
| 306 |
+
"observed_gt_seed": 20260925,
|
| 307 |
+
"distance": "exact nearest triangle",
|
| 308 |
+
"bidirectional_mean": "arithmetic mean of model→GT and observed GT→model mean distances"
|
| 309 |
+
},
|
| 310 |
+
"table4": {
|
| 311 |
+
"views": [
|
| 312 |
+
0,
|
| 313 |
+
36,
|
| 314 |
+
72,
|
| 315 |
+
108,
|
| 316 |
+
144
|
| 317 |
+
],
|
| 318 |
+
"resolution": [
|
| 319 |
+
640,
|
| 320 |
+
480
|
| 321 |
+
],
|
| 322 |
+
"gt_resize": "Lanczos 1280x960 to 640x480",
|
| 323 |
+
"metrics": "full-image PSNR, SSIM, LPIPS AlexNet v0.1; no crop/mask/fitting"
|
| 324 |
+
},
|
| 325 |
+
"table5": {
|
| 326 |
+
"scope": "100 seeded views drawn without replacement from the 175 modeling frames remaining after excluding fixed views; these are not unseen modeling inputs",
|
| 327 |
+
"seed": 20260930,
|
| 328 |
+
"excluded_fixed_views": [
|
| 329 |
+
0,
|
| 330 |
+
36,
|
| 331 |
+
72,
|
| 332 |
+
108,
|
| 333 |
+
144
|
| 334 |
+
],
|
| 335 |
+
"selected_indices": [
|
| 336 |
+
1,
|
| 337 |
+
2,
|
| 338 |
+
3,
|
| 339 |
+
5,
|
| 340 |
+
9,
|
| 341 |
+
12,
|
| 342 |
+
13,
|
| 343 |
+
14,
|
| 344 |
+
16,
|
| 345 |
+
18,
|
| 346 |
+
19,
|
| 347 |
+
21,
|
| 348 |
+
22,
|
| 349 |
+
25,
|
| 350 |
+
26,
|
| 351 |
+
27,
|
| 352 |
+
28,
|
| 353 |
+
29,
|
| 354 |
+
30,
|
| 355 |
+
31,
|
| 356 |
+
32,
|
| 357 |
+
33,
|
| 358 |
+
34,
|
| 359 |
+
38,
|
| 360 |
+
40,
|
| 361 |
+
42,
|
| 362 |
+
43,
|
| 363 |
+
44,
|
| 364 |
+
45,
|
| 365 |
+
46,
|
| 366 |
+
50,
|
| 367 |
+
52,
|
| 368 |
+
55,
|
| 369 |
+
56,
|
| 370 |
+
58,
|
| 371 |
+
59,
|
| 372 |
+
60,
|
| 373 |
+
61,
|
| 374 |
+
62,
|
| 375 |
+
63,
|
| 376 |
+
64,
|
| 377 |
+
67,
|
| 378 |
+
70,
|
| 379 |
+
71,
|
| 380 |
+
73,
|
| 381 |
+
75,
|
| 382 |
+
76,
|
| 383 |
+
78,
|
| 384 |
+
79,
|
| 385 |
+
81,
|
| 386 |
+
83,
|
| 387 |
+
84,
|
| 388 |
+
85,
|
| 389 |
+
87,
|
| 390 |
+
89,
|
| 391 |
+
93,
|
| 392 |
+
94,
|
| 393 |
+
96,
|
| 394 |
+
98,
|
| 395 |
+
99,
|
| 396 |
+
101,
|
| 397 |
+
102,
|
| 398 |
+
103,
|
| 399 |
+
104,
|
| 400 |
+
106,
|
| 401 |
+
107,
|
| 402 |
+
109,
|
| 403 |
+
112,
|
| 404 |
+
113,
|
| 405 |
+
117,
|
| 406 |
+
118,
|
| 407 |
+
119,
|
| 408 |
+
120,
|
| 409 |
+
122,
|
| 410 |
+
123,
|
| 411 |
+
124,
|
| 412 |
+
127,
|
| 413 |
+
133,
|
| 414 |
+
135,
|
| 415 |
+
136,
|
| 416 |
+
137,
|
| 417 |
+
138,
|
| 418 |
+
142,
|
| 419 |
+
146,
|
| 420 |
+
148,
|
| 421 |
+
149,
|
| 422 |
+
151,
|
| 423 |
+
152,
|
| 424 |
+
155,
|
| 425 |
+
157,
|
| 426 |
+
160,
|
| 427 |
+
164,
|
| 428 |
+
166,
|
| 429 |
+
167,
|
| 430 |
+
168,
|
| 431 |
+
169,
|
| 432 |
+
170,
|
| 433 |
+
172,
|
| 434 |
+
177,
|
| 435 |
+
179
|
| 436 |
+
],
|
| 437 |
+
"resolution": [
|
| 438 |
+
640,
|
| 439 |
+
480
|
| 440 |
+
],
|
| 441 |
+
"preprocessing": "GT RGB Lanczos 1280x960 to 640x480; RGB float32 [0,1]; no crop, mask, or color/exposure fitting",
|
| 442 |
+
"metrics": "full-image PSNR, SSIM, LPIPS AlexNet v0.1",
|
| 443 |
+
"aggregation": "arithmetic mean over the same frozen 100 views"
|
| 444 |
+
},
|
| 445 |
+
"table6": {
|
| 446 |
+
"views": [
|
| 447 |
+
0,
|
| 448 |
+
36,
|
| 449 |
+
72,
|
| 450 |
+
108,
|
| 451 |
+
144
|
| 452 |
+
],
|
| 453 |
+
"depth": {
|
| 454 |
+
"depth": "optical Z in metres",
|
| 455 |
+
"domain": "GT valid_domain and finite GT in [0.1, 30] m",
|
| 456 |
+
"prediction_valid": "finite prediction in [0.1, 30] m",
|
| 457 |
+
"aggregation": "pixel-weighted over all selected frames",
|
| 458 |
+
"missing_penalty": "30 m absolute error for each missing prediction"
|
| 459 |
+
}
|
| 460 |
+
},
|
| 461 |
+
"table7": {
|
| 462 |
+
"scope": "the exact same 100 modeling-frame indices as Table 5; held out only from the fixed-five check",
|
| 463 |
+
"seed": 20260930,
|
| 464 |
+
"selected_indices": [
|
| 465 |
+
1,
|
| 466 |
+
2,
|
| 467 |
+
3,
|
| 468 |
+
5,
|
| 469 |
+
9,
|
| 470 |
+
12,
|
| 471 |
+
13,
|
| 472 |
+
14,
|
| 473 |
+
16,
|
| 474 |
+
18,
|
| 475 |
+
19,
|
| 476 |
+
21,
|
| 477 |
+
22,
|
| 478 |
+
25,
|
| 479 |
+
26,
|
| 480 |
+
27,
|
| 481 |
+
28,
|
| 482 |
+
29,
|
| 483 |
+
30,
|
| 484 |
+
31,
|
| 485 |
+
32,
|
| 486 |
+
33,
|
| 487 |
+
34,
|
| 488 |
+
38,
|
| 489 |
+
40,
|
| 490 |
+
42,
|
| 491 |
+
43,
|
| 492 |
+
44,
|
| 493 |
+
45,
|
| 494 |
+
46,
|
| 495 |
+
50,
|
| 496 |
+
52,
|
| 497 |
+
55,
|
| 498 |
+
56,
|
| 499 |
+
58,
|
| 500 |
+
59,
|
| 501 |
+
60,
|
| 502 |
+
61,
|
| 503 |
+
62,
|
| 504 |
+
63,
|
| 505 |
+
64,
|
| 506 |
+
67,
|
| 507 |
+
70,
|
| 508 |
+
71,
|
| 509 |
+
73,
|
| 510 |
+
75,
|
| 511 |
+
76,
|
| 512 |
+
78,
|
| 513 |
+
79,
|
| 514 |
+
81,
|
| 515 |
+
83,
|
| 516 |
+
84,
|
| 517 |
+
85,
|
| 518 |
+
87,
|
| 519 |
+
89,
|
| 520 |
+
93,
|
| 521 |
+
94,
|
| 522 |
+
96,
|
| 523 |
+
98,
|
| 524 |
+
99,
|
| 525 |
+
101,
|
| 526 |
+
102,
|
| 527 |
+
103,
|
| 528 |
+
104,
|
| 529 |
+
106,
|
| 530 |
+
107,
|
| 531 |
+
109,
|
| 532 |
+
112,
|
| 533 |
+
113,
|
| 534 |
+
117,
|
| 535 |
+
118,
|
| 536 |
+
119,
|
| 537 |
+
120,
|
| 538 |
+
122,
|
| 539 |
+
123,
|
| 540 |
+
124,
|
| 541 |
+
127,
|
| 542 |
+
133,
|
| 543 |
+
135,
|
| 544 |
+
136,
|
| 545 |
+
137,
|
| 546 |
+
138,
|
| 547 |
+
142,
|
| 548 |
+
146,
|
| 549 |
+
148,
|
| 550 |
+
149,
|
| 551 |
+
151,
|
| 552 |
+
152,
|
| 553 |
+
155,
|
| 554 |
+
157,
|
| 555 |
+
160,
|
| 556 |
+
164,
|
| 557 |
+
166,
|
| 558 |
+
167,
|
| 559 |
+
168,
|
| 560 |
+
169,
|
| 561 |
+
170,
|
| 562 |
+
172,
|
| 563 |
+
177,
|
| 564 |
+
179
|
| 565 |
+
],
|
| 566 |
+
"depth": {
|
| 567 |
+
"depth": "optical Z in metres",
|
| 568 |
+
"domain": "GT valid_domain and finite GT in [0.1, 30] m",
|
| 569 |
+
"prediction_valid": "finite prediction in [0.1, 30] m",
|
| 570 |
+
"aggregation": "pixel-weighted over all selected frames",
|
| 571 |
+
"missing_penalty": "30 m absolute error for each missing prediction"
|
| 572 |
+
}
|
| 573 |
+
}
|
| 574 |
+
},
|
| 575 |
+
"m1_notice": "M1 model-space metrics use one frozen GT-assisted Sim(3) from five manual camera associations. They are diagnostic and do not represent native metric recovery."
|
| 576 |
+
}
|
data/tables_1_7.json
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"status": "COMPLETE",
|
| 4 |
+
"scope": "Only frozen models under astra_blender/models/M1..M4",
|
| 5 |
+
"reference": "https://wentingw.github.io/astra-world-model-blog/#_5",
|
| 6 |
+
"m1_notice": "M1 model-space metrics use one frozen GT-assisted Sim(3) from five manual camera associations. They are diagnostic and do not represent native metric recovery.",
|
| 7 |
+
"protocols": {
|
| 8 |
+
"table2": "180 fixed views × 19,200 pixels; optical-Z; GT-valid domain; no per-view fitting",
|
| 9 |
+
"table3": {
|
| 10 |
+
"model_surface_samples": 100000,
|
| 11 |
+
"model_surface_seed": 20260923,
|
| 12 |
+
"observed_gt_samples": 100000,
|
| 13 |
+
"observed_gt_seed": 20260925,
|
| 14 |
+
"distance": "exact nearest triangle",
|
| 15 |
+
"bidirectional_mean": "arithmetic mean of model→GT and observed GT→model mean distances"
|
| 16 |
+
},
|
| 17 |
+
"table4": {
|
| 18 |
+
"views": [
|
| 19 |
+
0,
|
| 20 |
+
36,
|
| 21 |
+
72,
|
| 22 |
+
108,
|
| 23 |
+
144
|
| 24 |
+
],
|
| 25 |
+
"resolution": [
|
| 26 |
+
640,
|
| 27 |
+
480
|
| 28 |
+
],
|
| 29 |
+
"gt_resize": "Lanczos 1280x960 to 640x480",
|
| 30 |
+
"metrics": "full-image PSNR, SSIM, LPIPS AlexNet v0.1; no crop/mask/fitting"
|
| 31 |
+
},
|
| 32 |
+
"table5": {
|
| 33 |
+
"scope": "100 seeded views drawn without replacement from the 175 modeling frames remaining after excluding fixed views; these are not unseen modeling inputs",
|
| 34 |
+
"seed": 20260930,
|
| 35 |
+
"excluded_fixed_views": [
|
| 36 |
+
0,
|
| 37 |
+
36,
|
| 38 |
+
72,
|
| 39 |
+
108,
|
| 40 |
+
144
|
| 41 |
+
],
|
| 42 |
+
"selected_indices": [
|
| 43 |
+
1,
|
| 44 |
+
2,
|
| 45 |
+
3,
|
| 46 |
+
5,
|
| 47 |
+
9,
|
| 48 |
+
12,
|
| 49 |
+
13,
|
| 50 |
+
14,
|
| 51 |
+
16,
|
| 52 |
+
18,
|
| 53 |
+
19,
|
| 54 |
+
21,
|
| 55 |
+
22,
|
| 56 |
+
25,
|
| 57 |
+
26,
|
| 58 |
+
27,
|
| 59 |
+
28,
|
| 60 |
+
29,
|
| 61 |
+
30,
|
| 62 |
+
31,
|
| 63 |
+
32,
|
| 64 |
+
33,
|
| 65 |
+
34,
|
| 66 |
+
38,
|
| 67 |
+
40,
|
| 68 |
+
42,
|
| 69 |
+
43,
|
| 70 |
+
44,
|
| 71 |
+
45,
|
| 72 |
+
46,
|
| 73 |
+
50,
|
| 74 |
+
52,
|
| 75 |
+
55,
|
| 76 |
+
56,
|
| 77 |
+
58,
|
| 78 |
+
59,
|
| 79 |
+
60,
|
| 80 |
+
61,
|
| 81 |
+
62,
|
| 82 |
+
63,
|
| 83 |
+
64,
|
| 84 |
+
67,
|
| 85 |
+
70,
|
| 86 |
+
71,
|
| 87 |
+
73,
|
| 88 |
+
75,
|
| 89 |
+
76,
|
| 90 |
+
78,
|
| 91 |
+
79,
|
| 92 |
+
81,
|
| 93 |
+
83,
|
| 94 |
+
84,
|
| 95 |
+
85,
|
| 96 |
+
87,
|
| 97 |
+
89,
|
| 98 |
+
93,
|
| 99 |
+
94,
|
| 100 |
+
96,
|
| 101 |
+
98,
|
| 102 |
+
99,
|
| 103 |
+
101,
|
| 104 |
+
102,
|
| 105 |
+
103,
|
| 106 |
+
104,
|
| 107 |
+
106,
|
| 108 |
+
107,
|
| 109 |
+
109,
|
| 110 |
+
112,
|
| 111 |
+
113,
|
| 112 |
+
117,
|
| 113 |
+
118,
|
| 114 |
+
119,
|
| 115 |
+
120,
|
| 116 |
+
122,
|
| 117 |
+
123,
|
| 118 |
+
124,
|
| 119 |
+
127,
|
| 120 |
+
133,
|
| 121 |
+
135,
|
| 122 |
+
136,
|
| 123 |
+
137,
|
| 124 |
+
138,
|
| 125 |
+
142,
|
| 126 |
+
146,
|
| 127 |
+
148,
|
| 128 |
+
149,
|
| 129 |
+
151,
|
| 130 |
+
152,
|
| 131 |
+
155,
|
| 132 |
+
157,
|
| 133 |
+
160,
|
| 134 |
+
164,
|
| 135 |
+
166,
|
| 136 |
+
167,
|
| 137 |
+
168,
|
| 138 |
+
169,
|
| 139 |
+
170,
|
| 140 |
+
172,
|
| 141 |
+
177,
|
| 142 |
+
179
|
| 143 |
+
],
|
| 144 |
+
"resolution": [
|
| 145 |
+
640,
|
| 146 |
+
480
|
| 147 |
+
],
|
| 148 |
+
"preprocessing": "GT RGB Lanczos 1280x960 to 640x480; RGB float32 [0,1]; no crop, mask, or color/exposure fitting",
|
| 149 |
+
"metrics": "full-image PSNR, SSIM, LPIPS AlexNet v0.1",
|
| 150 |
+
"aggregation": "arithmetic mean over the same frozen 100 views"
|
| 151 |
+
},
|
| 152 |
+
"table6": {
|
| 153 |
+
"views": [
|
| 154 |
+
0,
|
| 155 |
+
36,
|
| 156 |
+
72,
|
| 157 |
+
108,
|
| 158 |
+
144
|
| 159 |
+
],
|
| 160 |
+
"depth": {
|
| 161 |
+
"depth": "optical Z in metres",
|
| 162 |
+
"domain": "GT valid_domain and finite GT in [0.1, 30] m",
|
| 163 |
+
"prediction_valid": "finite prediction in [0.1, 30] m",
|
| 164 |
+
"aggregation": "pixel-weighted over all selected frames",
|
| 165 |
+
"missing_penalty": "30 m absolute error for each missing prediction"
|
| 166 |
+
}
|
| 167 |
+
},
|
| 168 |
+
"table7": {
|
| 169 |
+
"scope": "the exact same 100 modeling-frame indices as Table 5; held out only from the fixed-five check",
|
| 170 |
+
"seed": 20260930,
|
| 171 |
+
"selected_indices": [
|
| 172 |
+
1,
|
| 173 |
+
2,
|
| 174 |
+
3,
|
| 175 |
+
5,
|
| 176 |
+
9,
|
| 177 |
+
12,
|
| 178 |
+
13,
|
| 179 |
+
14,
|
| 180 |
+
16,
|
| 181 |
+
18,
|
| 182 |
+
19,
|
| 183 |
+
21,
|
| 184 |
+
22,
|
| 185 |
+
25,
|
| 186 |
+
26,
|
| 187 |
+
27,
|
| 188 |
+
28,
|
| 189 |
+
29,
|
| 190 |
+
30,
|
| 191 |
+
31,
|
| 192 |
+
32,
|
| 193 |
+
33,
|
| 194 |
+
34,
|
| 195 |
+
38,
|
| 196 |
+
40,
|
| 197 |
+
42,
|
| 198 |
+
43,
|
| 199 |
+
44,
|
| 200 |
+
45,
|
| 201 |
+
46,
|
| 202 |
+
50,
|
| 203 |
+
52,
|
| 204 |
+
55,
|
| 205 |
+
56,
|
| 206 |
+
58,
|
| 207 |
+
59,
|
| 208 |
+
60,
|
| 209 |
+
61,
|
| 210 |
+
62,
|
| 211 |
+
63,
|
| 212 |
+
64,
|
| 213 |
+
67,
|
| 214 |
+
70,
|
| 215 |
+
71,
|
| 216 |
+
73,
|
| 217 |
+
75,
|
| 218 |
+
76,
|
| 219 |
+
78,
|
| 220 |
+
79,
|
| 221 |
+
81,
|
| 222 |
+
83,
|
| 223 |
+
84,
|
| 224 |
+
85,
|
| 225 |
+
87,
|
| 226 |
+
89,
|
| 227 |
+
93,
|
| 228 |
+
94,
|
| 229 |
+
96,
|
| 230 |
+
98,
|
| 231 |
+
99,
|
| 232 |
+
101,
|
| 233 |
+
102,
|
| 234 |
+
103,
|
| 235 |
+
104,
|
| 236 |
+
106,
|
| 237 |
+
107,
|
| 238 |
+
109,
|
| 239 |
+
112,
|
| 240 |
+
113,
|
| 241 |
+
117,
|
| 242 |
+
118,
|
| 243 |
+
119,
|
| 244 |
+
120,
|
| 245 |
+
122,
|
| 246 |
+
123,
|
| 247 |
+
124,
|
| 248 |
+
127,
|
| 249 |
+
133,
|
| 250 |
+
135,
|
| 251 |
+
136,
|
| 252 |
+
137,
|
| 253 |
+
138,
|
| 254 |
+
142,
|
| 255 |
+
146,
|
| 256 |
+
148,
|
| 257 |
+
149,
|
| 258 |
+
151,
|
| 259 |
+
152,
|
| 260 |
+
155,
|
| 261 |
+
157,
|
| 262 |
+
160,
|
| 263 |
+
164,
|
| 264 |
+
166,
|
| 265 |
+
167,
|
| 266 |
+
168,
|
| 267 |
+
169,
|
| 268 |
+
170,
|
| 269 |
+
172,
|
| 270 |
+
177,
|
| 271 |
+
179
|
| 272 |
+
],
|
| 273 |
+
"depth": {
|
| 274 |
+
"depth": "optical Z in metres",
|
| 275 |
+
"domain": "GT valid_domain and finite GT in [0.1, 30] m",
|
| 276 |
+
"prediction_valid": "finite prediction in [0.1, 30] m",
|
| 277 |
+
"aggregation": "pixel-weighted over all selected frames",
|
| 278 |
+
"missing_penalty": "30 m absolute error for each missing prediction"
|
| 279 |
+
}
|
| 280 |
+
}
|
| 281 |
+
},
|
| 282 |
+
"tables": {
|
| 283 |
+
"table1": [
|
| 284 |
+
{
|
| 285 |
+
"method": "M1",
|
| 286 |
+
"allowed_inputs": "180 张采样 RGB",
|
| 287 |
+
"geometry_source": "视觉推断,无测量尺度",
|
| 288 |
+
"modeling_role": "推断布局,编写对象与材质"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"method": "M2",
|
| 292 |
+
"allowed_inputs": "完整 RGB 视频;选取 180 帧建模",
|
| 293 |
+
"geometry_source": "ViPE RGB-only 位姿 → pose-conditioned DA3 深度",
|
| 294 |
+
"modeling_role": "将位姿与深度测量组织为对象化场景"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"method": "M3",
|
| 298 |
+
"allowed_inputs": "视频、IMU、相机–IMU 标定",
|
| 299 |
+
"geometry_source": "ORB-SLAM3 单目惯性位姿 → pose-conditioned DA3 深度",
|
| 300 |
+
"modeling_role": "结合图像、位姿、深度建模"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"method": "M4",
|
| 304 |
+
"allowed_inputs": "视频及 GT camera pose",
|
| 305 |
+
"geometry_source": "GT 位姿 → pose-conditioned DA3 深度",
|
| 306 |
+
"modeling_role": "与 M3 相同类型的建模流程"
|
| 307 |
+
}
|
| 308 |
+
],
|
| 309 |
+
"table2": [
|
| 310 |
+
{
|
| 311 |
+
"method": "M1",
|
| 312 |
+
"ate_m": null,
|
| 313 |
+
"rotation_deg": null,
|
| 314 |
+
"native_depth_absrel": null,
|
| 315 |
+
"model_depth_absrel": 0.16439823806285858,
|
| 316 |
+
"alignment": "GT-assisted Sim(3), diagnostic only"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"method": "M2",
|
| 320 |
+
"ate_m": 0.1668,
|
| 321 |
+
"rotation_deg": 0.3065,
|
| 322 |
+
"native_depth_absrel": 0.19056472003176061,
|
| 323 |
+
"model_depth_absrel": 0.09286404401063919,
|
| 324 |
+
"alignment": "one global SE(3), scale=1"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"method": "M3",
|
| 328 |
+
"ate_m": 0.1205,
|
| 329 |
+
"rotation_deg": 0.1943,
|
| 330 |
+
"native_depth_absrel": 0.20379653842953233,
|
| 331 |
+
"model_depth_absrel": 0.08371810615062714,
|
| 332 |
+
"alignment": "one global SE(3), scale=1"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"method": "M4",
|
| 336 |
+
"ate_m": "-",
|
| 337 |
+
"rotation_deg": "-",
|
| 338 |
+
"native_depth_absrel": 0.1886706026379072,
|
| 339 |
+
"model_depth_absrel": 0.07600006461143494,
|
| 340 |
+
"alignment": "GT coordinates"
|
| 341 |
+
}
|
| 342 |
+
],
|
| 343 |
+
"table3": [
|
| 344 |
+
{
|
| 345 |
+
"method": "M1",
|
| 346 |
+
"model_to_gt_mean_m": 0.34486243741226075,
|
| 347 |
+
"observed_gt_to_model_mean_m": 0.40664686199496186,
|
| 348 |
+
"model_sha256": "80f985ad09591bdb227e99e71f6bacaa0b9e8c8b565c27da64ad4ac4ceb8910e",
|
| 349 |
+
"alignment": "GT-assisted Sim3 from frozen manual-view camera associations; shape/display diagnostic only; not metric recovery; no mesh ICP",
|
| 350 |
+
"bidirectional_mean_m": 0.3757546497036113
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"method": "M2",
|
| 354 |
+
"model_to_gt_mean_m": 0.13236121125603983,
|
| 355 |
+
"observed_gt_to_model_mean_m": 0.10298419313248852,
|
| 356 |
+
"model_sha256": "c19f33ec434bbcf89137e67d81c283b9adfd48f42e993d8b29d63e08318f79a6",
|
| 357 |
+
"alignment": "one SE3 from 180 input camera correspondences; no scale fit",
|
| 358 |
+
"bidirectional_mean_m": 0.11767270219426418
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"method": "M3",
|
| 362 |
+
"model_to_gt_mean_m": 0.06935983382743138,
|
| 363 |
+
"observed_gt_to_model_mean_m": 0.09502824761255278,
|
| 364 |
+
"model_sha256": "00cd43eef3b4a6b2b2b169e8a7eda787dc57222dc501a3a9be09f39af5f46a9b",
|
| 365 |
+
"alignment": "one SE3 from 180 input camera correspondences; no scale fit",
|
| 366 |
+
"bidirectional_mean_m": 0.08219404071999209
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"method": "M4",
|
| 370 |
+
"model_to_gt_mean_m": 0.06866006729939131,
|
| 371 |
+
"observed_gt_to_model_mean_m": 0.07449522976921306,
|
| 372 |
+
"model_sha256": "cc6cb605246a255d94e36b9dc3f8b91d5a292b047470bc0ff75b8a5c404b0cfe",
|
| 373 |
+
"alignment": "permitted GT input coordinate frame; astra_blender/models/M4 T_input_model is identity",
|
| 374 |
+
"bidirectional_mean_m": 0.07157764853430218
|
| 375 |
+
}
|
| 376 |
+
],
|
| 377 |
+
"table4": [
|
| 378 |
+
{
|
| 379 |
+
"method": "M1",
|
| 380 |
+
"psnr_db": 10.260909193969148,
|
| 381 |
+
"ssim": 0.3091735512018204,
|
| 382 |
+
"lpips_alex_v01": 0.6575803160667419
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"method": "M2",
|
| 386 |
+
"psnr_db": 12.95293150317823,
|
| 387 |
+
"ssim": 0.3896766543388367,
|
| 388 |
+
"lpips_alex_v01": 0.5310081720352173
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"method": "M3",
|
| 392 |
+
"psnr_db": 12.052547333787004,
|
| 393 |
+
"ssim": 0.3958937466144562,
|
| 394 |
+
"lpips_alex_v01": 0.5791207671165466
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"method": "M4",
|
| 398 |
+
"psnr_db": 12.294263798590851,
|
| 399 |
+
"ssim": 0.34136943221092225,
|
| 400 |
+
"lpips_alex_v01": 0.531274390220642
|
| 401 |
+
}
|
| 402 |
+
],
|
| 403 |
+
"table5": [
|
| 404 |
+
{
|
| 405 |
+
"method": "M1",
|
| 406 |
+
"psnr_db": 11.691789500467046,
|
| 407 |
+
"ssim": 0.31951158225536347,
|
| 408 |
+
"lpips_alex_v01": 0.6073989069461823
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"method": "M2",
|
| 412 |
+
"psnr_db": 13.207560508419194,
|
| 413 |
+
"ssim": 0.3776748192310333,
|
| 414 |
+
"lpips_alex_v01": 0.5329300162196159
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"method": "M3",
|
| 418 |
+
"psnr_db": 12.252687193116532,
|
| 419 |
+
"ssim": 0.3972503730654717,
|
| 420 |
+
"lpips_alex_v01": 0.5683315402269363
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"method": "M4",
|
| 424 |
+
"psnr_db": 12.513978931521383,
|
| 425 |
+
"ssim": 0.33674563601613045,
|
| 426 |
+
"lpips_alex_v01": 0.5237806642055511
|
| 427 |
+
}
|
| 428 |
+
],
|
| 429 |
+
"table6": [
|
| 430 |
+
{
|
| 431 |
+
"method": "M1",
|
| 432 |
+
"absrel": 0.2901068925857544,
|
| 433 |
+
"rmse_m": 3.049535036087036,
|
| 434 |
+
"coverage": 0.9996145833333333,
|
| 435 |
+
"penalized_mae_m": 1.88661527633667
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"method": "M2",
|
| 439 |
+
"absrel": 0.09218113869428635,
|
| 440 |
+
"rmse_m": 1.116154432296753,
|
| 441 |
+
"coverage": 0.9978125,
|
| 442 |
+
"penalized_mae_m": 0.577746570110321
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"method": "M3",
|
| 446 |
+
"absrel": 0.09866034984588623,
|
| 447 |
+
"rmse_m": 1.1816775798797607,
|
| 448 |
+
"coverage": 0.9984166666666666,
|
| 449 |
+
"penalized_mae_m": 0.5551674365997314
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"method": "M4",
|
| 453 |
+
"absrel": 0.08832013607025146,
|
| 454 |
+
"rmse_m": 1.1883933544158936,
|
| 455 |
+
"coverage": 0.9985833333333334,
|
| 456 |
+
"penalized_mae_m": 0.5010335445404053
|
| 457 |
+
}
|
| 458 |
+
],
|
| 459 |
+
"table7": [
|
| 460 |
+
{
|
| 461 |
+
"method": "M1",
|
| 462 |
+
"absrel": 0.164479598402977,
|
| 463 |
+
"rmse_m": 1.7184345722198486,
|
| 464 |
+
"coverage": 0.9924354166666667,
|
| 465 |
+
"penalized_mae_m": 1.2859067916870117
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"method": "M2",
|
| 469 |
+
"absrel": 0.09284797310829163,
|
| 470 |
+
"rmse_m": 1.1448776721954346,
|
| 471 |
+
"coverage": 0.9977067708333334,
|
| 472 |
+
"penalized_mae_m": 0.6155765056610107
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"method": "M3",
|
| 476 |
+
"absrel": 0.08247262239456177,
|
| 477 |
+
"rmse_m": 1.0896246433258057,
|
| 478 |
+
"coverage": 0.9991479166666667,
|
| 479 |
+
"penalized_mae_m": 0.4945947229862213
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"method": "M4",
|
| 483 |
+
"absrel": 0.07466284930706024,
|
| 484 |
+
"rmse_m": 1.1474982500076294,
|
| 485 |
+
"coverage": 0.998678125,
|
| 486 |
+
"penalized_mae_m": 0.47199496626853943
|
| 487 |
+
}
|
| 488 |
+
]
|
| 489 |
+
},
|
| 490 |
+
"source_files": {
|
| 491 |
+
"base_tables_1_5": {
|
| 492 |
+
"path": "astra_blender2/report/space/results/blog_tables_1_5/tables_1_5.json",
|
| 493 |
+
"sha256": "35379c83f758cacad2b9a07c1d1159f332bf109e94cf3cddd7e6ccde0d0b8270"
|
| 494 |
+
},
|
| 495 |
+
"view_subset_manifest": {
|
| 496 |
+
"path": "astra_blender2/evaluation/blog_extended_100_20260930/view_subset_manifest.json",
|
| 497 |
+
"sha256": "f03f7561b01fe1132dcbc16890e9abb10af73b5c4589f75b38aa698a3819feca"
|
| 498 |
+
},
|
| 499 |
+
"appearance_metrics": {
|
| 500 |
+
"path": "astra_blender2/evaluation/blog_extended_100_20260930/appearance_metrics.json",
|
| 501 |
+
"sha256": "bd8a3e4cd06ef42030a1e49008b321b4ee51f134059c681d2a709bf5e39874fd"
|
| 502 |
+
},
|
| 503 |
+
"depth_metrics": {
|
| 504 |
+
"path": "astra_blender2/evaluation/blog_extended_100_20260930/depth_metrics.json",
|
| 505 |
+
"sha256": "709809701db36c49ab848d665da330a7cb213cf26675212dbcf214d7e4cd5b24"
|
| 506 |
+
}
|
| 507 |
+
}
|
| 508 |
+
}
|
editorial.css
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root{--masthead-width:1080px;--masthead-gutter:40px}
|
| 2 |
+
.insight-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
|
| 3 |
+
.insight-strip .metric-reduction{display:block;margin-top:12px;color:var(--green);font-size:13px;font-weight:600;line-height:1.5}
|
| 4 |
+
@media(max-width:700px){.insight-strip{grid-template-columns:1fr}}
|
| 5 |
+
.office-links{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:14px}
|
| 6 |
+
body>nav,body>header,body>.hero{max-width:var(--masthead-width);padding-left:var(--masthead-gutter);padding-right:var(--masthead-gutter);margin-left:auto;margin-right:auto}
|
| 7 |
+
body>nav{padding-top:24px;padding-bottom:24px;border-bottom:0;position:relative}
|
| 8 |
+
body>nav::after{content:"";position:absolute;bottom:0;left:var(--masthead-gutter);right:var(--masthead-gutter);height:1px;background:var(--line)}
|
| 9 |
+
body>header{margin-top:48px;margin-bottom:34px}
|
| 10 |
+
header .title-name{margin:0 0 14px;color:var(--green);font-size:clamp(14px,1.35vw,17px);font-weight:700;letter-spacing:.18em;line-height:1.6;text-transform:uppercase}
|
| 11 |
+
header .title-lockup{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 34px}
|
| 12 |
+
header h1{margin:0;color:#182f28;font-family:Georgia,"Times New Roman",serif;font-size:clamp(104px,16vw,190px);font-weight:500;letter-spacing:-.045em;line-height:1.04}
|
| 13 |
+
header .pronunciation{margin:0;color:#7c8477;font:italic 400 clamp(22px,2.5vw,32px)/1.4 Georgia,"Noto Serif CJK SC",serif;white-space:nowrap}
|
| 14 |
+
header .lead{max-width:none;margin:24px 0 0;color:#182f28;font-family:Georgia,"Noto Serif CJK SC",serif;font-size:clamp(26px,3.15vw,40px);font-weight:500;line-height:1.35;letter-spacing:-.02em;text-wrap:pretty}
|
| 15 |
+
header .lead .tagline-emphasis{color:var(--green);font-weight:inherit;text-decoration:none}
|
| 16 |
+
header .brand-note{margin:16px 0 0;color:var(--muted);font-size:14px;line-height:1.6}
|
| 17 |
+
body[data-lang="zh"] header .title-name{letter-spacing:.16em}
|
| 18 |
+
body[data-lang="zh"] header .lead{line-height:1.6;letter-spacing:0}
|
| 19 |
+
header .publication-date{margin:20px 0 0;color:#60736b;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
|
| 20 |
+
body>.hero{margin-top:0;margin-bottom:72px}
|
| 21 |
+
body>.hero>video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#182c29;border:1px solid #dbe2d9;border-radius:5px;box-shadow:0 12px 36px -24px #243b3033}
|
| 22 |
+
.project-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}
|
| 23 |
+
.project-links .project-resource{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 18px;border:1px solid var(--line);border-radius:999px;background:var(--white);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none}
|
| 24 |
+
.project-links img{display:block;width:24px;height:24px;object-fit:contain;background:transparent}
|
| 25 |
+
.project-links a{position:relative;padding-right:26px}
|
| 26 |
+
.project-external-arrow{position:absolute;top:6px;right:6px;width:12px;height:12px;color:var(--green);pointer-events:none}
|
| 27 |
+
.project-links a:hover{border-color:#8eaa9e;background:#edf1e9}
|
| 28 |
+
.project-links a:focus-visible{outline:2px solid var(--green);outline-offset:4px}
|
| 29 |
+
.finding-comparison{border-bottom:0;padding-bottom:0;margin-bottom:0}
|
| 30 |
+
.finding-comparison + .analysis-block{border-top:0;padding-top:0;margin-top:24px}
|
| 31 |
+
header .title-name,header .title-lockup,header .lead{animation:masthead-enter .7s cubic-bezier(.22,1,.36,1) both}
|
| 32 |
+
header .lead{animation-delay:.08s}
|
| 33 |
+
.table-figure tbody th{white-space:normal;min-width:155px;max-width:215px;font-weight:600}
|
| 34 |
+
@keyframes masthead-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
|
| 35 |
+
.citation-block{border-radius:5px;border-color:#dbe2d9;background:#fbfcf8;white-space:pre-wrap;overflow-wrap:anywhere}
|
| 36 |
+
.citation-download{display:inline-flex;align-items:center;gap:20px;min-height:44px;padding:8px 15px;border:1px solid var(--line);border-radius:4px;font-size:13px;font-weight:600;text-decoration:none;transition:background-color .18s ease,border-color .18s ease}
|
| 37 |
+
.citation-download:hover{background:#edf1e9;border-color:#8eaa9e}
|
| 38 |
+
.citation-download:focus-visible{outline:2px solid var(--green);outline-offset:4px}
|
| 39 |
+
.embodied-demo{scroll-margin-top:30px}
|
| 40 |
+
.mission-command{margin:28px 0 20px;padding:22px 26px;border-left:3px solid var(--green);background:#edf1e9;font-size:clamp(20px,2.4vw,27px);line-height:1.6}
|
| 41 |
+
.mission-command>span{display:block;margin-bottom:8px;font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.12em;color:var(--green)}
|
| 42 |
+
.mission-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;list-style:none;padding:0;margin:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
|
| 43 |
+
.mission-flow li{padding:14px 12px;font-size:13px;line-height:1.7}
|
| 44 |
+
.mission-flow li+li{border-left:1px solid var(--line)}
|
| 45 |
+
.mission-flow span{display:block;color:var(--green);font-size:11px;letter-spacing:.12em}
|
| 46 |
+
.demo-film{margin:24px 0 14px}
|
| 47 |
+
.demo-film video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#15231f;border:1px solid var(--line)}
|
| 48 |
+
.demo-film figcaption{font-size:13px;line-height:1.8}
|
| 49 |
+
.demo-map{margin:28px 0 20px}
|
| 50 |
+
.demo-map img{width:100%;height:auto;border:1px solid var(--line);border-radius:4px}
|
| 51 |
+
.demo-map a{display:block}
|
| 52 |
+
.demo-map a:focus-visible{outline:2px solid var(--green);outline-offset:4px}
|
| 53 |
+
.demo-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 22px;font-size:13px}
|
| 54 |
+
.demo-protocol{margin:20px 0 0;border-top:1px solid var(--line);padding:14px 0;font-size:14px;color:var(--muted)}
|
| 55 |
+
.demo-protocol summary{cursor:pointer;color:var(--green);font-weight:650;min-height:30px}
|
| 56 |
+
.demo-protocol p{font-size:14px}
|
| 57 |
+
.grounding-block{margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}
|
| 58 |
+
.spatial-foundation{margin-top:38px;padding-top:25px;border-top:1px solid var(--line)}
|
| 59 |
+
.capability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:18px 0}
|
| 60 |
+
.capability-grid>div{padding:12px 0;border-top:1px solid var(--line)}
|
| 61 |
+
.capability-grid h4{margin:0 0 8px;font-size:17px;color:var(--green)}
|
| 62 |
+
.capability-grid p{margin:0;font-size:15px;line-height:1.85}
|
| 63 |
+
.demo-protocol summary:focus-visible,.demo-links a:focus-visible{outline:2px solid var(--green);outline-offset:4px}
|
| 64 |
+
@media(max-width:800px){:root{--masthead-gutter:28px}body>header{margin-top:40px}header .title-lockup{column-gap:24px}}
|
| 65 |
+
@media(max-width:600px){:root{--masthead-gutter:22px}body>header{margin-top:32px;margin-bottom:28px}header h1{font-size:clamp(82px,24vw,140px)}header .title-name{font-size:14px;letter-spacing:.13em}header .title-lockup{gap:8px 20px}header .pronunciation{font-size:24px}header .lead{margin-top:24px;font-size:28px}body>.hero{margin-bottom:44px}nav{gap:15px;flex-wrap:wrap}.brand{font-size:11px}.mission-command{padding:18px}.mission-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.mission-flow li:nth-child(3){border-left:0}.mission-flow li:nth-child(n+3){border-top:1px solid var(--line)}.capability-grid{grid-template-columns:1fr}.demo-links{flex-direction:column}}
|
| 66 |
+
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}header .title-name,header .title-lockup,header .lead{animation:none}.citation-download{transition:none}}
|
en.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>AWSM: Agentic World Simulation and Mapping — Phygital AI</title><meta name="description" content="From real spaces to worlds phygital agents can use."><meta property="og:type" content="article"><meta property="og:locale" content="en_US"><meta property="og:title" content="AWSM: Agentic World Simulation and Mapping"><meta property="og:description" content="From real spaces to worlds phygital agents can use."><meta property="og:image" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/assets/teaser_originals.png"><meta property="og:url" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/index.html"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="AWSM: Agentic World Simulation and Mapping"><meta name="twitter:description" content="From real spaces to worlds phygital agents can use."><meta name="twitter:image" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/assets/teaser_originals.png"><link rel="canonical" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><link rel="alternate" hreflang="zh-CN" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/zh.html"><link rel="alternate" hreflang="en" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><link rel="stylesheet" href="style.css?v=cbba47743ba2"><link rel="stylesheet" href="editorial.css?v=462f0ffc2b51"><script type="importmap">{"imports":{"three":"./vendor/three/three.module.js"}}</script><script src="app.js?v=d70db3a6816b" defer></script><script type="module" src="scene-compare.js?v=bd749465e05d"></script><link rel="stylesheet" href="office.css?v=2e8c4a2f0718"><link rel="alternate" hreflang="x-default" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><meta property="article:published_time" content="2026-10-01"></head>
|
| 2 |
+
<body data-lang="en"><a class="skip" href="#main">Skip to article</a><nav><a class="brand" href="index.html">PHYGITAL AI / AWSM</a><div><a href="zh.html" >中文</a><a href="index.html" aria-current='page'>EN</a><a href="https://github.com/wentingw/AWSM" target="_blank" rel="noopener noreferrer">GitHub ↗</a></div></nav><header><p class="title-name">Agentic World Simulation and Mapping</p><div class="title-lockup"><h1 aria-label="AWSM: Agentic World Simulation and Mapping">AWSM</h1><p class="pronunciation">pronounced “awesome”</p></div><p class="lead">From real spaces to <strong class="tagline-emphasis">worlds phygital agents can use.</strong></p><p class="brand-note">Phygital = physical + digital.</p><p class="publication-date">Published <time datetime="2026-10-01">October 1, 2026</time></p></header>
|
| 3 |
+
<div class="hero" id="overview-video"><video controls playsinline preload="metadata" poster="assets/awsm-promo-v5-poster.jpg" aria-label="AWSM introduction video"><source src="assets/awsm-promo-v5.mp4" type="video/mp4"><a href="assets/awsm-promo-v5.mp4">AWSM introduction video</a></video><div class="project-links" role="group" aria-label="AWSM project resources"><a class="project-resource" href="https://github.com/wentingw/AWSM" target="_blank" rel="noopener noreferrer" aria-label="GitHub (opens in a new window)" title="GitHub (opens in a new window)"><img src="assets/icons/github.svg" width="24" height="24" alt="">GitHub<svg class="project-external-arrow" viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 12 12 4M4 4h8v8"/></svg></a><span class="project-resource"><img src="assets/icons/huggingface.svg" width="24" height="24" alt="">Hugging Face (Coming soon)</span></div></div><div class="layout"><aside class="toc"><p>ON THIS PAGE</p><a href="#results">Overview</a><a href="#motivation">Motivation</a><a href="#workflow">Workflow</a><a href="#more-results">Results & analysis</a><a href="#embodied-demo">Embodied demo</a><a href="#related-work">Related work</a><a href="#limitations">Limitations</a><a href="#citation">Citation</a><a href="#references">References</a></aside><main id="main">
|
| 4 |
+
<section id="results"><p class="section-tag">01 / OVERVIEW</p><aside class="tldr"><strong>TL;DR</strong><p>AWSM uses large-model agents to turn visual observations into editable 3D scenes, grounded in camera-pose and depth estimates—including IMU-informed visual–inertial constraints that tie geometry to physical scale. In one controlled Isaac Sim scene, four reconstruction routes test spatial fidelity, not just visual plausibility. The aligned comparison from RGB-only M1 to GT-pose-conditioned M4 shows ≈81% lower bidirectional surface error and ≈54% lower model-depth AbsRel across 180 evaluation views. A multi-robot demo then illustrates goal-directed navigation and task execution on the reconstructed map: follow predefined routes to a marked reception desk and line up there. Next steps are higher efficiency and accuracy, reusable simulation-ready assets, and deeper integration with phygital agents for persistent spatial memory, object search, and interaction.</p></aside><h2>A scene can look plausible and still be spatially wrong.</h2><p class="standfirst">Agentic reconstruction uses a large model to inspect observations, call modeling tools, and iteratively build and check an editable scene. The challenge is not only to produce a convincing room, but to preserve the scale, shape, and spatial relationships that make it useful beyond rendering. AWSM asks how geometric evidence can constrain this process so that its outputs become more faithful spatial references for downstream agents.</p><p>We reconstruct World Lobby, a simulated scene in NVIDIA Isaac Sim, through four complete engineering routes, from RGB-only modeling to ground-truth-pose-conditioned modeling. Each route produces a frozen Blender scene, not merely a point cloud or a novel-view renderer. The experiment asks what additional geometric evidence buys, where it fails to help, and which errors survive object-centric reconstruction.</p><div class="insight-strip"><div><strong>0.376 → 0.072 m</strong><span>bidirectional surface error</span><small class="metric-reduction">≈81% relative reduction · M1 → M4</small></div><div><strong>16.44% → 7.60%</strong><span>model-depth AbsRel · 180 evaluation views</span><small class="metric-reduction">≈54% relative reduction · M1 → M4</small></div></div><p class="metric-caveat">Single-scene M1 → M4 diagnostic comparison: M1 uses GT-assisted Sim(3) alignment; M4 uses GT camera poses. Relative reductions compare complete pipelines, not IMU alone.</p></section>
|
| 5 |
+
<section id="motivation"><p class="section-tag">02 / MOTIVATION</p><h2>From plausible reconstruction to a usable spatial reference</h2><p>A reconstruction agent can assemble a plausible room while getting a corner, distance, or passage wrong. For an embodied agent, those are not merely visual defects: they change where a destination lies and which route a body can follow. Geometry grounding means constraining the modeling process with pose, depth, and metric evidence where available, rather than relying on visual plausibility alone. The question is how those constraints survive the conversion from observations into editable objects.</p><p>The reception-desk task makes this connection concrete: mark a destination in the reconstructed map, specify routes, and execute them with robot controllers. We use ‘scene representation’ for the editable objects and geometry, ‘map’ for their navigation role, and ‘simulation assets’ for their integration into a simulator. The ‘world’ in AWSM refers to this reusable spatial environment, not a learned dynamics predictor. A persistent spatial foundation connecting navigation, memory, interaction, and simulation is the longer-term goal; the experiments and demo examine its geometric basis and one downstream use.</p><aside class="claim"><strong>Research question</strong><p>How does progressively stronger geometric evidence change the fidelity—and the remaining failure modes—of an editable object-centric world?</p></aside><h3>Contributions</h3><ol class="contributions"><li>A four-route study of geometry-grounded agentic reconstruction, keeping the scene, 180 RGB identities, modeling objective, and editable output format fixed while comparing complete pipelines with different geometric evidence.</li><li>An evaluation protocol that separates trajectory error, native depth, final-scene depth, surface geometry, and rendered appearance, with frozen Blend/GLB assets, reproducible evaluation subsets, public hashes, and interactive comparisons.</li><li>A map-based multi-robot simulation example connecting a reconstructed scene to destination marking, predefined routes, and controller execution. It illustrates downstream use rather than a controlled navigation comparison across reconstruction routes.</li></ol><div id="scale-and-sensors" class="analysis-block grounding-block"><h3>Geometry grounding: scale is necessary, but not sufficient</h3>
|
| 6 |
+
<p>Monocular projection geometry leaves a global scale ambiguity; learned metric depth adds a useful prior, not an independent measurement of every real-world dimension. Calibrated RGB-D, a known baseline or length, and visual-inertial estimation can supply metric constraints. IMU fusion can recover metric motion under sufficient excitation and reliable initialization, bias estimation, synchronization, and calibration. An IMU is not a direct distance sensor, and its presence alone does not guarantee accurate scale.</p>
|
| 7 |
+
<p>Scale, local shape, camera pose, and navigable connectivity must be checked separately. A curved corner simplified into a square cannot be repaired by rescaling alone. Pose-conditioned depth can improve reconstruction, but neither the DA3 ablation nor our M2/M3 results imply that every depth metric improves monotonically. The four routes below are system comparisons, not an isolated IMU ablation.</p>
|
| 8 |
+
<p class="inline-sources"><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">VINS-Mono</a> · <a href="https://arxiv.org/html/2511.10647v1#S7.SS2.SSS3" target="_blank" rel="noopener">DA3 pose-conditioning ablation</a></p></div></section>
|
| 9 |
+
<section id="workflow"><p class="section-tag">03 / WORKFLOW</p><h2>One agentic workflow, four reconstruction routes</h2><p>The reconstruction agent follows a shared observe–build–verify loop: inspect the available evidence, write Blender Python to construct objects, render review views, and revise the scene before freezing it for evaluation. This tool-using modeling process is what ‘agentic’ describes here; the downstream robot controllers have a separate role.</p><p>All routes receive the same 180 RGB identities and the same Astra–Blender modeling objective. M1 tests how far visual priors can go without metric measurements. M2 adds RGB-only ViPE poses and pose-conditioned DA3 depth. M3 uses monocular-inertial ORB-SLAM3 poses with the same class of DA3 observations. M4 supplies ground-truth camera poses to diagnose the remaining modeling error; it does not receive the GT mesh or GT depth as modeling input.</p><figure class="table-figure" id="table-1" data-table-key="table1"><figcaption><span>Table 1.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 1"></div></figure><h3>Agentic reconstruction loop</h3><div class="workflow-strip"><div><strong>01 · Observe</strong><span>Inspect all 180 RGB frames and, where allowed, pose-conditioned DA3 geometry.</span></div><div><strong>02 · Build</strong><span>Write Blender Python that decomposes the room into named objects, materials, cameras, and collision proxies.</span></div><div><strong>03 · Verify</strong><span>Compare paired RGB and optical-Z renders at fixed review cameras; revise within a fixed version budget.</span></div><div><strong>04 · Freeze</strong><span>Export Blend/GLB, manifests, semantic IDs, and hashes before any GT score is visible to the author.</span></div><div><strong>05 · Evaluate</strong><span>Measure pose, native depth, model depth, surface distance, and appearance under one frozen protocol.</span></div></div><p>Ground truth is introduced only after the scenes are frozen. M2 and M3 are evaluated under one global SE(3) alignment with scale fixed to one; no mesh ICP or per-view fitting is used. M1 has no native metric trajectory, so its model-space numbers use one frozen GT-assisted Sim(3) from five manual camera associations and remain diagnostic rather than evidence of metric recovery.</p><aside class="notice"><strong>M1 diagnostic limitation.</strong> Its Sim(3)-aligned geometry and depth numbers describe shape after GT-assisted display alignment, not native metric recovery.</aside></section>
|
| 10 |
+
<section id="more-results"><p class="section-tag">04 / RESULTS AND ANALYSIS</p><h2>Three findings matter more than a leaderboard</h2><article class="finding"><p class="finding-kicker">FINDING 01</p><h3>1. Better pose does not mechanically imply better native depth</h3><p>M3 improves trajectory accuracy over M2—ATE falls from 0.167 m to 0.121 m and rotation error from 0.31° to 0.19°. Yet its native DA3 AbsRel is slightly worse (20.38% versus 19.06%). After modeling, the ordering reverses: M3 reaches 8.37% model-depth AbsRel versus 9.29% for M2. Upstream metrics and downstream scene fidelity are related, but they are not interchangeable.</p></article><figure class="table-figure" id="table-2" data-table-key="table2"><figcaption><span>Table 2.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 2"></div></figure><figure id="figure-1"><img loading="lazy" src="assets/figure14_abc.png" alt="Trajectory, native depth, and model depth"><figcaption><span>Figure 1.</span> The upstream trajectory and native-depth ranking does not map one-to-one onto frozen-scene depth.</figcaption></figure><article class="finding"><p class="finding-kicker">FINDING 02</p><h3>2. Geometric evidence turns a plausible layout into a more faithful space</h3><p>Under the declared alignment and without mesh ICP, bidirectional surface error falls from 0.376 m for the RGB-only diagnostic baseline to 0.118 m with ViPE, 0.082 m with ORB-SLAM3, and 0.072 m with GT poses. M4 is strongest on geometry in this case, while M3 closes most of the gap using an estimated trajectory.</p></article><figure class="table-figure" id="table-3" data-table-key="table3"><figcaption><span>Table 3.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 3"></div></figure><article class="finding finding-comparison"><p class="finding-kicker">FINDING 03</p><h3>3. Qualitative comparison</h3></article><div class="analysis-block"><h3>Inspect the reconstructed scenes, not just aggregate scores</h3><p>Use the shared camera to compare each reconstruction with GT. Start with M1 to see how a semantically plausible room can drift in metric layout; compare M2 and M3 to find regions where geometry improves without a matching gain in RGB similarity; then inspect M4 to isolate errors that remain even when camera pose is no longer the bottleneck.</p><figure id="figure-2"><img loading="lazy" src="assets/fixed_five_view_comparison_m1_m4.jpg" alt="M1 to M4 and input GT across five fixed views"><figcaption><span>Figure 2.</span> M1–M4 and input GT across five fixed views.</figcaption></figure><figure class="scene-comparison" id="figure-3" data-state="idle"><h3>Rotate, zoom, and inspect the frozen scenes</h3>
|
| 11 |
+
<div class="scene-toolbar"><label class="method-control">Reconstruction / GT<select id="model-select"><option value="M1">M1</option><option value="M2">M2</option><option value="M3">M3</option><option value="M4" selected>M4</option><option value="GT">GT</option></select></label><label>Display<select id="scene-mode"><option value="compare">Split comparison with GT</option><option value="single">View selected scene alone</option></select></label><button id="scene-reset" type="button">Reset view</button></div>
|
| 12 |
+
<div class="scene-stage"><span class="scene-label scene-label-left">M4</span><span class="scene-label scene-label-right">GT</span><button class="scene-divider" type="button" role="slider" aria-label="Comparison divider" aria-valuemin="2" aria-valuemax="98" aria-valuenow="50"></button><input id="scene-split" class="scene-split" type="range" min="2" max="98" value="50" aria-label="Comparison split"><p class="scene-status">Scroll here to load the 3D comparison.</p></div><button id="scene-retry" class="scene-retry" type="button">Retry</button>
|
| 13 |
+
<figcaption><span>Figure 3.</span> One camera and one full viewport compare the selected frozen model with GT. Ceilings and surrounding walls are hidden at runtime for the same cutaway-style inspection; source files remain unchanged.</figcaption></figure><figure class="fixed-comparison" id="figure-4"><div class="controlrow"><label>Method<select id="compare-method" disabled><option value="M1">M1</option><option value="M2">M2</option><option value="M3">M3</option><option value="M4">M4</option></select></label><label>Fixed view<select id="compare-frame" disabled><option value="0">0</option><option value="36">36</option><option value="72">72</option><option value="108">108</option><option value="144">144</option></select></label></div><div class="compare-pair"><div><img id="compare-pred" src="assets/fixed_views/M1/000.png" alt="Selected frozen model rendering"><p id="compare-label" class="compare-subcaption">M1 / VIEW 0</p></div><div><img id="compare-gt" src="assets/fixed_views/GT/000.png" alt="Input GT RGB"><p class="compare-subcaption">INPUT / GT RGB</p></div></div><figcaption><span>Figure 4.</span> Frozen-model rendering and input GT RGB from exactly the same view.</figcaption></figure><p>The browser hides ceilings and surrounding walls only for cutaway inspection. Runtime registration and display choices do not modify the downloadable frozen GLB or Blend files.</p></div><div class="analysis-block"><h3>What geometric grounding changes—and what it does not</h3><h4>Modeling behaves like a structured—and lossy—regularizer</h4><p>For M2–M4, the final scene depth is substantially closer to GT than native DA3 depth on the shared 180-view protocol: AbsRel falls by roughly 51–60%. One plausible interpretation is that object-level aggregation suppresses inconsistent local predictions. This is a hypothesis, not a controlled causal result: the same abstraction can also erase real surfaces and fine geometry.</p><h4>Measurement constrains generation; it does not solve appearance</h4><p>The strongest geometric route does not dominate PSNR or SSIM. Pose removes one source of uncertainty, but appearance still depends on material estimation, lighting, object detail, and renderer mismatch. Evaluating only RGB would miss spatial progress; evaluating only geometry would miss perceptual failure.</p><h4>The 100-view check measures consistency, not unseen-view generalization</h4><p>Table 7 uses a seeded set of 100 cameras drawn from the 175 modeling frames outside the fixed-five check. These are additional evaluation views relative to that check, but their RGB images were available during modeling. On this set, M4 has the lowest depth AbsRel (7.47%), while M3 has the lowest RMSE (1.090 m).</p><figure id="figure-5"><img loading="lazy" src="assets/model_depth_error_five_views_m1_m4.png" alt="Model-depth error at five fixed evaluation views"><figcaption><span>Figure 5.</span> Model-depth error at the fixed-five check; teal marks missing or invalid predictions.</figcaption></figure><figure class="table-figure" id="table-6" data-table-key="table6"><figcaption><span>Table 6.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 6"></div></figure><figure class="table-figure" id="table-7" data-table-key="table7"><figcaption><span>Table 7.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 7"></div></figure></div><div id="office-cafe" class="analysis-block external-case"><h3>Beyond the lobby: what survives in a phone-captured space?</h3><p>Office Café is not a second run of the World Lobby benchmark and is not quantitative validation under the same protocol. It is an external, real-capture case study showing how an object-centric scene, a solved source-camera trajectory, video-to-model comparison, and physics replays can coexist in one inspectable artifact. An author-observed failure—a curved real-world corner simplified into a square one—motivates separating local shape from global scale. A correct scale alone cannot repair that shape error; this is a qualitative observation, not another measured benchmark.</p><p class="office-links"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener">Open full-screen model ↗</a><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener">Open shake experiment ↗</a></p><div class="office-external"><h4>Explore the original interactive apps</h4><div class="office-external-grid"><figure class="office-external-card"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener noreferrer"><img loading="lazy" src="assets/office-cafe/office-pmodel-poster.jpg" alt="Interactive model: Local preview from the published model-render video."></a><figcaption><strong>Interactive model</strong><p>Local preview from the published model-render video.</p><button type="button" data-office-external="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" aria-controls="office-external-slot">Load external app · English requested</button></figcaption></figure><figure class="office-external-card"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener noreferrer"><img loading="lazy" src="assets/office-cafe/office-shake-heavy-poster.jpg" alt="Shake experiment: Local preview from the published strong-shake replay."></a><figcaption><strong>Shake experiment</strong><p>Local preview from the published strong-shake replay.</p><button type="button" data-office-external="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" aria-controls="office-external-slot">Load external app · English requested</button></figcaption></figure></div><p class="office-external-note">Links request English with lang=en; the external host controls language and availability. These local content previews are not screenshots of the external website. If embedding is unavailable, use the full-screen links or the local models and videos below.</p><div id="office-external-slot" class="office-external-slot" hidden></div></div><div class="office-model-grid"><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/scene.glb" aria-label="Interactive Office Café ViPE model"></div><figcaption><strong>Current model</strong><span>Video plus estimated depth as input; drag to orbit, right-drag to pan, and scroll to zoom.</span></figcaption></figure><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/atlas-scene.glb" aria-label="Interactive legacy Office Café model"></div><figcaption><strong>Legacy model</strong><span>Video-only input; this legacy layout was not recalibrated against the ViPE scan.</span></figcaption></figure></div><p class="office-model-note">Both models open in an elevated cutaway view: upper geometry is clipped only for display to expose the interior. Toggle Cutaway to inspect the complete model; Reset view restores the overview. Authored coordinates, materials, and model files are unchanged. Linked orbit controls compare layouts, not registered geometry.</p><div class="office-video-grid office-video-sync"><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-input-poster.jpg" src="assets/office-cafe/office-input-web.mp4?v=4915b934b5f9" aria-label="Input video"></video><figcaption><strong>Input video</strong><span>Original phone walkthrough.</span></figcaption></figure><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-pmodel-poster.jpg" src="assets/office-cafe/office-pmodel-web.mp4?v=3b03fe58a192" aria-label="Procedural model"></video><figcaption><strong>Procedural model</strong><span>Model rendered along the source-camera trajectory.</span></figcaption></figure><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-scan-poster.jpg" src="assets/office-cafe/office-scan-web.mp4?v=861a074637b4" aria-label="Point cloud"></video><figcaption><strong>Point cloud</strong><span>Scan rendered along the same trajectory.</span></figcaption></figure></div>
|
| 14 |
+
<div class="office-video-controls"><button class="office-video-play" type="button" aria-label="Play all three videos" aria-pressed="false">▶</button><input class="office-video-progress" type="range" min="0" max="1000" value="0" aria-label="Shared video progress"><output class="office-video-time">00:00 / 01:10</output><p class="office-video-status" role="status" aria-live="polite">Shared playback · 70.1 seconds · 30 fps</p></div><div class="office-video-grid"><figure class="office-video-card office-video-card-wide"><video controls preload="metadata" playsinline poster="assets/office-cafe/office-shake-heavy-poster.jpg" src="assets/office-cafe/office-shake-heavy.mp4"></video><figcaption><strong>Strong earthquake effect</strong><span>Every object in the scene is interactable, and cabinet doors can open; this replay shows the physical response under strong shaking.</span></figcaption></figure></div><script type="module" src="office-models.js?v=8752a7cc4f64"></script></div></section>
|
| 15 |
+
<section id="embodied-demo" class="embodied-demo">
|
| 16 |
+
<p class="section-tag">DEMO / MAP-BASED EMBODIED EXECUTION</p><h2>A reconstructed map. A destination. Robots in motion.</h2><p>The demo connects reconstruction to downstream use in NVIDIA Isaac Sim. The reception desk is marked in the navigation map, routes are specified, and a drone, humanoid, quadruped, and wheeled robot execute the task. The same spatial reference connects a destination, route constraints, and motion control: a scene to inspect becomes a map to act with.</p>
|
| 17 |
+
<blockquote class="mission-command"><span>Task intent: </span>Send the robots to the reception desk and have them line up there.</blockquote>
|
| 18 |
+
<ol class="mission-flow" aria-label="Task workflow"><li><span>01</span>Task instruction</li><li><span>02</span>Locate the reception desk</li><li><span>03</span>Set routes on the map</li><li><span>04</span>Execute with controllers</li></ol>
|
| 19 |
+
<figure class="demo-film"><video controls playsinline preload="none" poster="assets/embodied-demo/navigation-214924-poster.png" width="1280" height="720" aria-label="Four-robot map-based navigation demonstration"><source src="assets/embodied-demo/four-robots-214924-156s-phone.mp4" type="video/mp4">Your browser cannot play this video. Use the download link below.</video><figcaption>Map-based navigation in simulation · predefined routes · simulator-pose feedback. The authors confirm that the demonstration has been manually reviewed.</figcaption></figure>
|
| 20 |
+
<div class="demo-links"><a href="assets/embodied-demo/four-robots-214924-156s-phone.mp4" download>Download mobile edition · 11.65 MB · 2:36</a><a href="assets/embodied-demo/four-robots-214924-156s-hd.mp4" download>Download HD edition · 49.69 MB · 2:36</a><a href="data/embodied_demo.json">Run & media record ↗</a></div>
|
| 21 |
+
<figure class="demo-map" id="demo-route-map"><a href="assets/embodied-demo/planned-route-156s.png" target="_blank" rel="noopener"><img loading="lazy" src="assets/embodied-demo/planned-route-156s.png" width="1920" height="1080" alt="Planned routes for four robots, with the reception desk and waypoints marked; static design, not execution trajectories"></a><figcaption><span>Navigation map.</span> The reception desk and planned routes share the reconstructed scene. This is a static design preview, not a recorded trajectory. Open the image to inspect the full-resolution map.</figcaption></figure>
|
| 22 |
+
<details class="demo-protocol"><summary>Demo protocol and scope</summary><p>The instruction above describes the intended task, not a demonstrated language-to-plan parser. Routes were manually specified and screened against both the M4 reconstructed map and original geometry. This is not a reconstruction-only planning benchmark.</p><p>The 156-second presentation edit plays at 1×: Scene (0–6s), Reconstruction (6–12s), Planned route (12–18s), and Navigation (18–156s). Navigation uses the new run <code>20260930-214924</code>; the opening 12.32 seconds of waiting are omitted, and the later terminal hold is outside this cut. The map is a static route design, not a measured execution trace.</p><p>This demo does not evaluate online visual localization, learned instruction understanding, memory retrieval, or real-robot transfer. Those are separate capabilities; the map-based execution shown here remains the intended demonstration.</p><p>Manual presentation review is separate from the historical automated checks retained below; it does not revise their recorded verdicts.</p><p><a href="evidence/embodied-demo-audit.json">Historical automated check record ↗</a></p></details>
|
| 23 |
+
</section>
|
| 24 |
+
<section id="related-work"><p class="section-tag">05 / RELATED WORK</p><h2>From geometric measurement to editable Real2Sim</h2><p>AWSM connects two roles: an agent that constructs an editable scene, and downstream agents that use it as a spatial reference. SLAM and visual-inertial estimation supply pose and metric constraints; ViPE and Depth Anything 3 contribute geometric observations. Concurrent work AHa-3D explores video-driven, tool-based Real2Sim, including camera and 3D-reference estimation from video. Our emphasis is geometric grounding: bringing additional physical measurements, especially IMU-informed visual-inertial pose and metric constraints, into agentic scene construction rather than relying on video-derived evidence alone. The four-route comparison tests reconstruction systems, not the isolated effect of IMU; the demo illustrates a map-based application, not a complete autonomous embodied system.</p><p>Our evaluation therefore spans both sides of the interface: upstream systems are judged as measurement pipelines, while the Blender outputs are judged as persistent spatial artifacts. This differs from evaluating pose, depth, or novel-view synthesis in isolation.</p><span class="inline-sources"><a href="https://research.nvidia.com/labs/toronto-ai/vipe/" target="_blank" rel="noopener">ViPE</a> · <a href="https://arxiv.org/abs/2007.11898" target="_blank" rel="noopener">ORB-SLAM3</a> · <a href="https://arxiv.org/abs/2511.10647" target="_blank" rel="noopener">Depth Anything 3</a> · <a href="https://kevinxu02.github.io/real2sim-indoor-site/" target="_blank" rel="noopener">AHa-3D</a></span><div id="spatial-foundation" class="analysis-block spatial-foundation"><p class="section-tag">RESEARCH DIRECTION</p><h3>Toward persistent spaces for phygital agents</h3><p>The current outputs are editable scene snapshots, and the demo shows a scene-specific simulation integration. The longer-term goal is to make geometry-grounded agentic reconstruction a reusable process for building and maintaining spaces that phygital agents can use. Saving an editable asset is a starting point, not a demonstration of lifelong map maintenance. The directions below extend the present evidence.</p><div class="capability-grid"><div><h4>Navigate</h4><p>Use destinations, free space, and body-specific clearance in a shared geometric frame. Better reconstruction can reduce map mismatch; reliable navigation also needs localization and current observations.</p></div><div><h4>Remember & retrieve</h4><p>Link object identities and locations to source views so language, images, and past observations can refer to the same place. Retrieval and safe arrival should be evaluated separately.</p></div><div><h4>Interact & maintain</h4><p>Edit object properties and relationships, revisit changed areas, and preserve evidence and versions. Persistent memory must distinguish observed geometry, inferred completion, and unknown space.</p></div><div><h4>Simulate & learn</h4><p>Move from the current scene-specific integration to reusable simulation-ready exports with checked scale, collision geometry, and physical parameters. These can support task rehearsal, scenario variation, and training; reduced policy sim-to-real gap remains a separate question to test.</p></div></div><p>A full mesh is not required for every retrieval task: Memory Over Maps uses posed RGB-D keyframes for on-demand localization, while 3D-Mem and task-oriented scene graphs explore complementary memory and representation choices. Our proposed direction is hybrid: preserve visual evidence, refine task-relevant geometry, and build editable simulation assets where they add value. The next question is when an agent has enough evidence to act—and when it should observe again and update its map.</p><p>The immediate agenda is higher reconstruction efficiency and accuracy, reusable simulation-ready scene generation, and deeper integration with phygital agents. Together, these steps connect the reconstruction agent’s modeling and revision loop to the downstream agent’s navigation, memory, and interaction needs.</p><p class="inline-sources"><a href="https://arxiv.org/abs/2603.20530" target="_blank" rel="noopener">Memory Over Maps</a> · <a href="https://arxiv.org/abs/2411.17735" target="_blank" rel="noopener">3D-Mem</a> · <a href="https://arxiv.org/abs/2404.13696" target="_blank" rel="noopener">Clio</a> · <a href="https://arxiv.org/abs/2404.06609" target="_blank" rel="noopener">GOAT-Bench</a></p></div></section>
|
| 25 |
+
<section id="limitations"><p class="section-tag">06 / LIMITATIONS</p><h2>The boundaries are part of the result</h2><ul class="limits-list"><li>One synthetic scene and one engineering run per route do not establish general superiority or statistical significance.</li><li>The four routes are complete systems, not a strict single-variable ablation; M2 versus M3 cannot be attributed to IMU alone.</li><li>M4 uses GT camera poses and is a diagnostic route, not a deployable baseline or a theoretical upper bound.</li><li>M1 model-space metrics rely on GT-assisted Sim(3) and must not be ranked as native metric recovery.</li><li>The 100-view appearance and depth sets contain modeling RGB inputs; they are not a held-out novel-view benchmark.</li><li>Appearance metrics mix geometry, material, illumination, and rendering error. M4 revision 4 has not received a complete independent visual re-review.</li><li>The reception-desk demo is map-based simulation execution, not a controlled comparison of navigation across M1–M4. Routes are predefined and localization uses simulator pose; see the demo protocol for scope.</li><li>Multimodal memory, long-term map maintenance, and reduced policy sim-to-real gap are research goals, not measured outcomes of the four-robot demo. The Office Café corner observation has no matched-view quantitative GT measurement here.</li><li>Historical downstream documentation describes the same M4 Blend hash using a different depth frontend. The frozen tables and assets are retained unchanged; their upstream naming needs reconciliation before attributing historical task outcomes to DA3. See the provenance note.</li></ul><p>Every table is generated from frozen assets. The public manifests expose model hashes, registrations, fixed views, and the exact seeded evaluation indices.</p><div class="asset-downloads"><p><strong>M1</strong> <a href="models/M1/scene.blend" download>scene.blend ↓</a> · <a href="models/M1/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M1/manifest.json">manifest ↗</a></p><p><strong>M2</strong> <a href="models/M2/scene.blend" download>scene.blend ↓</a> · <a href="models/M2/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M2/manifest.json">manifest ↗</a></p><p><strong>M3</strong> <a href="models/M3/scene.blend" download>scene.blend ↓</a> · <a href="models/M3/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M3/manifest.json">manifest ↗</a></p><p><strong>M4</strong> <a href="models/M4/scene.blend" download>scene.blend ↓</a> · <a href="models/M4/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M4/manifest.json">manifest ↗</a></p></div><p class="evidence-links"><a href="data/tables_1_7.json">Tables JSON</a> · <a href="data/scene_comparison.json">Scene manifest</a> · <a href="data/fixed_views.json">Fixed views</a> · <a href="evidence/publication_manifest.json">Publication manifest</a> · <a href="evidence/SHA256SUMS">SHA256</a></p><p><a href="evidence/provenance-note.md">Version and provenance note ↗</a></p></section>
|
| 26 |
+
<section id="citation"><p class="section-tag">07 / CITATION</p><h2>Cite this work</h2><p>If this controlled study, its frozen assets, or its evaluation protocol supports your work, please cite the interactive article below.</p><pre class="citation-block"><code>@misc{awsm_2026,
|
| 27 |
+
title = {{AWSM}: Agentic World Simulation and Mapping},
|
| 28 |
+
author = {{Phygital AI}},
|
| 29 |
+
year = {2026},
|
| 30 |
+
howpublished = {Interactive research article},
|
| 31 |
+
url = {https://phygital-ai.github.io/agentic-world-simulation-and-mapping/},
|
| 32 |
+
note = {Reconstruction benchmarks, editable scene assets, and map-based embodied demonstration}
|
| 33 |
+
}</code></pre><a class="citation-download" href="data/awsm.bib" download="awsm.bib">Download BibTeX <span aria-hidden="true">↓</span></a></section>
|
| 34 |
+
<section id="references"><p class="section-tag">08 / REFERENCES</p><h2>References</h2><ol class="references-list"><li><a href="https://kevinxu02.github.io/real2sim-indoor-site/" target="_blank" rel="noopener">AHa-3D: Agentic Tool Use for Real2Sim with GPT-6 Astra.</a></li><li><a href="https://arxiv.org/abs/2508.10934" target="_blank" rel="noopener">ViPE: Video Pose Engine for camera motion and near-metric geometry.</a></li><li><a href="https://arxiv.org/abs/2007.11898" target="_blank" rel="noopener">Campos et al. ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual–Inertial, and Multimap SLAM. IEEE Transactions on Robotics, 2021.</a></li><li><a href="https://arxiv.org/abs/2511.10647" target="_blank" rel="noopener">Depth Anything 3: Recovering the Visual Space from Any Views.</a></li><li><a href="https://doi.org/10.1109/TIP.2003.819861" target="_blank" rel="noopener">Wang et al. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE Transactions on Image Processing, 2004.</a></li><li><a href="https://arxiv.org/abs/1801.03924" target="_blank" rel="noopener">Zhang et al. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. CVPR, 2018.</a></li><li><a href="https://www.blender.org/" target="_blank" rel="noopener">Blender Foundation. Blender: Free and Open Source 3D Creation Suite.</a></li><li><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">Qin et al. VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator. TRO, 2018.</a></li><li><a href="https://arxiv.org/abs/2509.13414" target="_blank" rel="noopener">Keetha et al. MapAnything: Universal Feed-Forward Metric 3D Reconstruction. 2025.</a></li><li><a href="https://arxiv.org/abs/2603.20530" target="_blank" rel="noopener">Zhou et al. Memory Over Maps: 3D Object Localization Without Reconstruction. 2026.</a></li><li><a href="https://arxiv.org/abs/2411.17735" target="_blank" rel="noopener">Yang et al. 3D-Mem: 3D Scene Memory for Embodied Exploration and Reasoning. 2024.</a></li><li><a href="https://arxiv.org/abs/2404.06609" target="_blank" rel="noopener">Khanna et al. GOAT-Bench: A Benchmark for Multi-Modal Lifelong Navigation. CVPR, 2024.</a></li><li><a href="https://arxiv.org/abs/2309.16650" target="_blank" rel="noopener">ConceptGraphs: Open-Vocabulary 3D Scene Graphs for Perception and Planning. ICRA, 2024.</a></li><li><a href="https://arxiv.org/abs/2404.13696" target="_blank" rel="noopener">Clio: Real-time Task-Driven Open-Set 3D Scene Graphs. RA-L, 2024.</a></li></ol></section><noscript>JavaScript is required for tables and interactive figures.</noscript></main></div><footer>Phygital AI · AWSM · frozen evidence, editable outputs · <a href="zh.html">中文</a></footer></body></html>
|
evidence/M1/manifest.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"method": "M1",
|
| 4 |
+
"files": {
|
| 5 |
+
"glb": {
|
| 6 |
+
"source": "astra_blender/models/M1/scene.glb",
|
| 7 |
+
"published": "models/M1/scene.glb",
|
| 8 |
+
"sha256": "21a605be65d58dbe01606b8326bfe6f07fa418c67e133c9b2181729b68bc2832",
|
| 9 |
+
"bytes": 15104860
|
| 10 |
+
},
|
| 11 |
+
"blend": {
|
| 12 |
+
"source": "astra_blender/models/M1/scene.blend",
|
| 13 |
+
"published": "models/M1/scene.blend",
|
| 14 |
+
"sha256": "80f985ad09591bdb227e99e71f6bacaa0b9e8c8b565c27da64ad4ac4ceb8910e",
|
| 15 |
+
"bytes": 2691023
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"table_rows": {
|
| 19 |
+
"table1": {
|
| 20 |
+
"method": "M1",
|
| 21 |
+
"allowed_inputs": "180 张采样 RGB",
|
| 22 |
+
"geometry_source": "视觉推断,无测量尺度",
|
| 23 |
+
"modeling_role": "推断布局,编写对象与材质"
|
| 24 |
+
},
|
| 25 |
+
"table2": {
|
| 26 |
+
"method": "M1",
|
| 27 |
+
"ate_m": null,
|
| 28 |
+
"rotation_deg": null,
|
| 29 |
+
"native_depth_absrel": null,
|
| 30 |
+
"model_depth_absrel": 0.16439823806285858,
|
| 31 |
+
"alignment": "GT-assisted Sim(3), diagnostic only"
|
| 32 |
+
},
|
| 33 |
+
"table3": {
|
| 34 |
+
"method": "M1",
|
| 35 |
+
"model_to_gt_mean_m": 0.34486243741226075,
|
| 36 |
+
"observed_gt_to_model_mean_m": 0.40664686199496186,
|
| 37 |
+
"model_sha256": "80f985ad09591bdb227e99e71f6bacaa0b9e8c8b565c27da64ad4ac4ceb8910e",
|
| 38 |
+
"alignment": "GT-assisted Sim3 from frozen manual-view camera associations; shape/display diagnostic only; not metric recovery; no mesh ICP",
|
| 39 |
+
"bidirectional_mean_m": 0.3757546497036113
|
| 40 |
+
},
|
| 41 |
+
"table4": {
|
| 42 |
+
"method": "M1",
|
| 43 |
+
"psnr_db": 10.260909193969148,
|
| 44 |
+
"ssim": 0.3091735512018204,
|
| 45 |
+
"lpips_alex_v01": 0.6575803160667419
|
| 46 |
+
},
|
| 47 |
+
"table5": {
|
| 48 |
+
"method": "M1",
|
| 49 |
+
"psnr_db": 11.691789500467046,
|
| 50 |
+
"ssim": 0.31951158225536347,
|
| 51 |
+
"lpips_alex_v01": 0.6073989069461823
|
| 52 |
+
},
|
| 53 |
+
"table6": {
|
| 54 |
+
"method": "M1",
|
| 55 |
+
"absrel": 0.2901068925857544,
|
| 56 |
+
"rmse_m": 3.049535036087036,
|
| 57 |
+
"coverage": 0.9996145833333333,
|
| 58 |
+
"penalized_mae_m": 1.88661527633667
|
| 59 |
+
},
|
| 60 |
+
"table7": {
|
| 61 |
+
"method": "M1",
|
| 62 |
+
"absrel": 0.164479598402977,
|
| 63 |
+
"rmse_m": 1.7184345722198486,
|
| 64 |
+
"coverage": 0.9924354166666667,
|
| 65 |
+
"penalized_mae_m": 1.2859067916870117
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
}
|
evidence/M2/manifest.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"method": "M2",
|
| 4 |
+
"files": {
|
| 5 |
+
"glb": {
|
| 6 |
+
"source": "astra_blender/models/M2/scene.glb",
|
| 7 |
+
"published": "models/M2/scene.glb",
|
| 8 |
+
"sha256": "0ee9123f38099d1df63ab593dd7082d5f1cf1b136e63833ec5afa0e072cf4c2e",
|
| 9 |
+
"bytes": 14523124
|
| 10 |
+
},
|
| 11 |
+
"blend": {
|
| 12 |
+
"source": "astra_blender/models/M2/scene.blend",
|
| 13 |
+
"published": "models/M2/scene.blend",
|
| 14 |
+
"sha256": "c19f33ec434bbcf89137e67d81c283b9adfd48f42e993d8b29d63e08318f79a6",
|
| 15 |
+
"bytes": 3886116
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"table_rows": {
|
| 19 |
+
"table1": {
|
| 20 |
+
"method": "M2",
|
| 21 |
+
"allowed_inputs": "完整 RGB 视频;选取 180 帧建模",
|
| 22 |
+
"geometry_source": "ViPE RGB-only 位姿 → pose-conditioned DA3 深度",
|
| 23 |
+
"modeling_role": "将位姿与深度测量组织为对象化场景"
|
| 24 |
+
},
|
| 25 |
+
"table2": {
|
| 26 |
+
"method": "M2",
|
| 27 |
+
"ate_m": 0.1668,
|
| 28 |
+
"rotation_deg": 0.3065,
|
| 29 |
+
"native_depth_absrel": 0.19056472003176061,
|
| 30 |
+
"model_depth_absrel": 0.09286404401063919,
|
| 31 |
+
"alignment": "one global SE(3), scale=1"
|
| 32 |
+
},
|
| 33 |
+
"table3": {
|
| 34 |
+
"method": "M2",
|
| 35 |
+
"model_to_gt_mean_m": 0.13236121125603983,
|
| 36 |
+
"observed_gt_to_model_mean_m": 0.10298419313248852,
|
| 37 |
+
"model_sha256": "c19f33ec434bbcf89137e67d81c283b9adfd48f42e993d8b29d63e08318f79a6",
|
| 38 |
+
"alignment": "one SE3 from 180 input camera correspondences; no scale fit",
|
| 39 |
+
"bidirectional_mean_m": 0.11767270219426418
|
| 40 |
+
},
|
| 41 |
+
"table4": {
|
| 42 |
+
"method": "M2",
|
| 43 |
+
"psnr_db": 12.95293150317823,
|
| 44 |
+
"ssim": 0.3896766543388367,
|
| 45 |
+
"lpips_alex_v01": 0.5310081720352173
|
| 46 |
+
},
|
| 47 |
+
"table5": {
|
| 48 |
+
"method": "M2",
|
| 49 |
+
"psnr_db": 13.207560508419194,
|
| 50 |
+
"ssim": 0.3776748192310333,
|
| 51 |
+
"lpips_alex_v01": 0.5329300162196159
|
| 52 |
+
},
|
| 53 |
+
"table6": {
|
| 54 |
+
"method": "M2",
|
| 55 |
+
"absrel": 0.09218113869428635,
|
| 56 |
+
"rmse_m": 1.116154432296753,
|
| 57 |
+
"coverage": 0.9978125,
|
| 58 |
+
"penalized_mae_m": 0.577746570110321
|
| 59 |
+
},
|
| 60 |
+
"table7": {
|
| 61 |
+
"method": "M2",
|
| 62 |
+
"absrel": 0.09284797310829163,
|
| 63 |
+
"rmse_m": 1.1448776721954346,
|
| 64 |
+
"coverage": 0.9977067708333334,
|
| 65 |
+
"penalized_mae_m": 0.6155765056610107
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
}
|
evidence/M3/manifest.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"method": "M3",
|
| 4 |
+
"files": {
|
| 5 |
+
"glb": {
|
| 6 |
+
"source": "astra_blender/models/M3/scene.glb",
|
| 7 |
+
"published": "models/M3/scene.glb",
|
| 8 |
+
"sha256": "22699f8225a5f90166cdea2e6e2bdad7977fda4a1fe1086da209f0c9afe97a6c",
|
| 9 |
+
"bytes": 7701488
|
| 10 |
+
},
|
| 11 |
+
"blend": {
|
| 12 |
+
"source": "astra_blender/models/M3/scene.blend",
|
| 13 |
+
"published": "models/M3/scene.blend",
|
| 14 |
+
"sha256": "00cd43eef3b4a6b2b2b169e8a7eda787dc57222dc501a3a9be09f39af5f46a9b",
|
| 15 |
+
"bytes": 2319452
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"table_rows": {
|
| 19 |
+
"table1": {
|
| 20 |
+
"method": "M3",
|
| 21 |
+
"allowed_inputs": "视频、IMU、相机–IMU 标定",
|
| 22 |
+
"geometry_source": "ORB-SLAM3 单目惯性位姿 → pose-conditioned DA3 深度",
|
| 23 |
+
"modeling_role": "结合图像、位姿、深度建模"
|
| 24 |
+
},
|
| 25 |
+
"table2": {
|
| 26 |
+
"method": "M3",
|
| 27 |
+
"ate_m": 0.1205,
|
| 28 |
+
"rotation_deg": 0.1943,
|
| 29 |
+
"native_depth_absrel": 0.20379653842953233,
|
| 30 |
+
"model_depth_absrel": 0.08371810615062714,
|
| 31 |
+
"alignment": "one global SE(3), scale=1"
|
| 32 |
+
},
|
| 33 |
+
"table3": {
|
| 34 |
+
"method": "M3",
|
| 35 |
+
"model_to_gt_mean_m": 0.06935983382743138,
|
| 36 |
+
"observed_gt_to_model_mean_m": 0.09502824761255278,
|
| 37 |
+
"model_sha256": "00cd43eef3b4a6b2b2b169e8a7eda787dc57222dc501a3a9be09f39af5f46a9b",
|
| 38 |
+
"alignment": "one SE3 from 180 input camera correspondences; no scale fit",
|
| 39 |
+
"bidirectional_mean_m": 0.08219404071999209
|
| 40 |
+
},
|
| 41 |
+
"table4": {
|
| 42 |
+
"method": "M3",
|
| 43 |
+
"psnr_db": 12.052547333787004,
|
| 44 |
+
"ssim": 0.3958937466144562,
|
| 45 |
+
"lpips_alex_v01": 0.5791207671165466
|
| 46 |
+
},
|
| 47 |
+
"table5": {
|
| 48 |
+
"method": "M3",
|
| 49 |
+
"psnr_db": 12.252687193116532,
|
| 50 |
+
"ssim": 0.3972503730654717,
|
| 51 |
+
"lpips_alex_v01": 0.5683315402269363
|
| 52 |
+
},
|
| 53 |
+
"table6": {
|
| 54 |
+
"method": "M3",
|
| 55 |
+
"absrel": 0.09866034984588623,
|
| 56 |
+
"rmse_m": 1.1816775798797607,
|
| 57 |
+
"coverage": 0.9984166666666666,
|
| 58 |
+
"penalized_mae_m": 0.5551674365997314
|
| 59 |
+
},
|
| 60 |
+
"table7": {
|
| 61 |
+
"method": "M3",
|
| 62 |
+
"absrel": 0.08247262239456177,
|
| 63 |
+
"rmse_m": 1.0896246433258057,
|
| 64 |
+
"coverage": 0.9991479166666667,
|
| 65 |
+
"penalized_mae_m": 0.4945947229862213
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
}
|
evidence/M4/manifest.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"method": "M4",
|
| 4 |
+
"files": {
|
| 5 |
+
"glb": {
|
| 6 |
+
"source": "astra_blender/models/M4/scene.glb",
|
| 7 |
+
"published": "models/M4/scene.glb",
|
| 8 |
+
"sha256": "716e4b89b7b11ad8a0cb0e238b366b4f5dc80e3a2c3cddb5eedc469ef4e63774",
|
| 9 |
+
"bytes": 17202608
|
| 10 |
+
},
|
| 11 |
+
"blend": {
|
| 12 |
+
"source": "astra_blender/models/M4/scene.blend",
|
| 13 |
+
"published": "models/M4/scene.blend",
|
| 14 |
+
"sha256": "cc6cb605246a255d94e36b9dc3f8b91d5a292b047470bc0ff75b8a5c404b0cfe",
|
| 15 |
+
"bytes": 2268620
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"table_rows": {
|
| 19 |
+
"table1": {
|
| 20 |
+
"method": "M4",
|
| 21 |
+
"allowed_inputs": "视频及 GT camera pose",
|
| 22 |
+
"geometry_source": "GT 位姿 → pose-conditioned DA3 深度",
|
| 23 |
+
"modeling_role": "与 M3 相同类型的建模流程"
|
| 24 |
+
},
|
| 25 |
+
"table2": {
|
| 26 |
+
"method": "M4",
|
| 27 |
+
"ate_m": "-",
|
| 28 |
+
"rotation_deg": "-",
|
| 29 |
+
"native_depth_absrel": 0.1886706026379072,
|
| 30 |
+
"model_depth_absrel": 0.07600006461143494,
|
| 31 |
+
"alignment": "GT coordinates"
|
| 32 |
+
},
|
| 33 |
+
"table3": {
|
| 34 |
+
"method": "M4",
|
| 35 |
+
"model_to_gt_mean_m": 0.06866006729939131,
|
| 36 |
+
"observed_gt_to_model_mean_m": 0.07449522976921306,
|
| 37 |
+
"model_sha256": "cc6cb605246a255d94e36b9dc3f8b91d5a292b047470bc0ff75b8a5c404b0cfe",
|
| 38 |
+
"alignment": "permitted GT input coordinate frame; astra_blender/models/M4 T_input_model is identity",
|
| 39 |
+
"bidirectional_mean_m": 0.07157764853430218
|
| 40 |
+
},
|
| 41 |
+
"table4": {
|
| 42 |
+
"method": "M4",
|
| 43 |
+
"psnr_db": 12.294263798590851,
|
| 44 |
+
"ssim": 0.34136943221092225,
|
| 45 |
+
"lpips_alex_v01": 0.531274390220642
|
| 46 |
+
},
|
| 47 |
+
"table5": {
|
| 48 |
+
"method": "M4",
|
| 49 |
+
"psnr_db": 12.513978931521383,
|
| 50 |
+
"ssim": 0.33674563601613045,
|
| 51 |
+
"lpips_alex_v01": 0.5237806642055511
|
| 52 |
+
},
|
| 53 |
+
"table6": {
|
| 54 |
+
"method": "M4",
|
| 55 |
+
"absrel": 0.08832013607025146,
|
| 56 |
+
"rmse_m": 1.1883933544158936,
|
| 57 |
+
"coverage": 0.9985833333333334,
|
| 58 |
+
"penalized_mae_m": 0.5010335445404053
|
| 59 |
+
},
|
| 60 |
+
"table7": {
|
| 61 |
+
"method": "M4",
|
| 62 |
+
"absrel": 0.07466284930706024,
|
| 63 |
+
"rmse_m": 1.1474982500076294,
|
| 64 |
+
"coverage": 0.998678125,
|
| 65 |
+
"penalized_mae_m": 0.47199496626853943
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
}
|
evidence/embodied-demo-audit.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"run_id": "sceneweft-walljourney-20260930-214924",
|
| 4 |
+
"source": "wall-journey-audit.json from the recorded run; summarized without changing the verdict",
|
| 5 |
+
"status": "FAILED",
|
| 6 |
+
"passed": false,
|
| 7 |
+
"ground_final_formation_reached": true,
|
| 8 |
+
"full_flight_mission_completed": true,
|
| 9 |
+
"end_formation_hold_s": 7.994999821297824,
|
| 10 |
+
"passed_checks": ["computed_current_body_stream_map_clearance", "computed_current_body_stream_inter_robot_clearance", "measured_ground_path_length_and_waypoint_traversal", "fresh_current_run_closure_receipt"],
|
| 11 |
+
"failed_checks": [
|
| 12 |
+
{
|
| 13 |
+
"check": "measured_terminal_health_and_formation_hold",
|
| 14 |
+
"required_hold_seconds": 8.0,
|
| 15 |
+
"measured_hold_seconds": 7.994999821297824,
|
| 16 |
+
"interpretation": "Measured hold falls short of the unchanged 8.0-second criterion. The later terminal hold is outside the 156-second presentation edit."
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"publication_role": "execution illustration, not an accepted navigation benchmark"
|
| 20 |
+
}
|
evidence/embodied-demo-delivery.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"delivery": "20260930-four-robot-demo-final-156s",
|
| 4 |
+
"run_id": "sceneweft-walljourney-20260930-214924",
|
| 5 |
+
"exported_at": "2026-09-30T23:37:26.372334+08:00",
|
| 6 |
+
"media_copied_without_reencoding": true,
|
| 7 |
+
"original_records_retained_in_local_delivery": true,
|
| 8 |
+
"independent_film_accepted": false,
|
| 9 |
+
"source_records": [
|
| 10 |
+
{
|
| 11 |
+
"path": "README.md",
|
| 12 |
+
"sha256": "3eeb1197ae05a623f5a4f0241cd118a961534acd357cca215ab0a562a475a3cb",
|
| 13 |
+
"bytes": 2070
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"path": "SHA256SUMS",
|
| 17 |
+
"sha256": "0cfd060f13facd03d376fae3b48da26350a511283868e56f8b13b1708fc54465",
|
| 18 |
+
"bytes": 235373
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"path": "05_records/final-export-receipt.json",
|
| 22 |
+
"sha256": "325a667714c568d7ed7c252e9b72839eb143e1487f13168fe4f932917f7c74f9",
|
| 23 |
+
"bytes": 43265
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"path": "05_records/wall-journey-audit.json",
|
| 27 |
+
"sha256": "5b15f5af8ebf031337f5c514af3054acf03a25176f1312a07b7defbf056b2755",
|
| 28 |
+
"bytes": 22408
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"path": "05_records/flight-report.json",
|
| 32 |
+
"sha256": "f8324dd461588b90fb9e128d58f83b6eef9e18a696debaaca6b63822ca96a39b",
|
| 33 |
+
"bytes": 11779
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"path": "05_records/navigation-completed-status.json",
|
| 37 |
+
"sha256": "8141b0142cebdfc39c6b07fff44ea813bd3bfcb5ade4a1e7d72c0950e3ad0da8",
|
| 38 |
+
"bytes": 20662
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"path": "05_records/segment-validation.json",
|
| 42 |
+
"sha256": "d3719eed6bb02c70385c50b2a836f17e211a7e4f9a52a5ce3fea59dbd338251b",
|
| 43 |
+
"bytes": 814
|
| 44 |
+
}
|
| 45 |
+
],
|
| 46 |
+
"asset_bindings": [
|
| 47 |
+
{
|
| 48 |
+
"source": "00_final/sceneweft-four-robots-final-156s-phone.mp4",
|
| 49 |
+
"published": "assets/embodied-demo/four-robots-214924-156s-phone.mp4",
|
| 50 |
+
"sha256": "b9008c7b754f994d30a740a632b70ea0f693f3917fcf11820e64902ddbd13596"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source": "00_final/sceneweft-four-robots-final-156s.mp4",
|
| 54 |
+
"published": "assets/embodied-demo/four-robots-214924-156s-hd.mp4",
|
| 55 |
+
"sha256": "f83dbb49e3aa97fd3f5f9c54ed79ed8624bac75dbd7e4cdddc4dc414b76ed222"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"source": "03_planned_route/planned-route-original.png",
|
| 59 |
+
"published": "assets/embodied-demo/planned-route-156s.png",
|
| 60 |
+
"sha256": "e3c8e766f40a975a0aceca185fa60867375153fc8ddb6db451788eb935cb9b8b"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"source": "04_navigation/middle.png",
|
| 64 |
+
"published": "assets/embodied-demo/navigation-214924-poster.png",
|
| 65 |
+
"sha256": "fe1dfcc8d014fc47f93a6e4e343598c146373c2d3dc7b41613123bb6caafec8f"
|
| 66 |
+
}
|
| 67 |
+
]
|
| 68 |
+
}
|
evidence/provenance-note.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Publication scope and provenance — 30 September 2026
|
| 2 |
+
|
| 3 |
+
## This revision
|
| 4 |
+
|
| 5 |
+
The Phygital AI edition changes the bilingual narrative and adds the reception-desk embodied demo. It retains the seven frozen experiment tables, six original figures, model files, registration transforms, and fixed-view images from upstream commit `3c5f27ca16fffca03f9e071f70bcc234e34739ee` of `wentingw/agentic-world-blog`.
|
| 6 |
+
|
| 7 |
+
The demo expresses map-based navigation: the destination is marked on the reconstructed map, routes are specified, and robot controllers execute them. It is not presented as an online visual-localization experiment. The task wording describes the intent, not a demonstrated language-to-plan parser.
|
| 8 |
+
|
| 9 |
+
The demo now uses the supplied `20260930-four-robot-demo-final-156s` delivery, copied without re-encoding. The mobile edition is 11,648,571 bytes (SHA-256 `b9008c7b754f994d30a740a632b70ea0f693f3917fcf11820e64902ddbd13596`); the HD edition is 49,687,378 bytes (SHA-256 `f83dbb49e3aa97fd3f5f9c54ed79ed8624bac75dbd7e4cdddc4dc414b76ed222`). Both are 156 seconds, 1280×720, 30 fps, at 1× playback speed. The package's original planned-route PNG and navigation screenshot are copied unchanged as the standalone map and video poster.
|
| 10 |
+
|
| 11 |
+
The first 18 seconds present Scene, Reconstruction, and Planned route; the remaining 138 seconds show native RGB execution from run `sceneweft-walljourney-20260930-214924`. The package omits 12.32 seconds of opening waiting and truncates later footage, including terminal formation hold. The static map is a planned-route design, not a measured execution trace. These are presentation edits, not additional experiments.
|
| 12 |
+
|
| 13 |
+
The new source run reports completed flight and formation. Unlike the superseded `144825` run, its independent audit passes map and inter-robot clearance, waypoint traversal, and closure checks. The total verdict remains FAILED because measured terminal health/formation hold is 7.994999821297824 seconds against an unchanged 8.0-second requirement. Media export checks do not establish physical or film acceptance. The old run's clearance, waypoint, and flight-closure failures are not attributed to this new run. Current conditions and audit details are recorded in `data/embodied_demo.json` and `evidence/embodied-demo-audit.json`; source-receipt hashes are in `evidence/embodied-demo-delivery.json`. Full production records and raw frames remain in the local delivery, rather than uploading the 2.61 GB package to the blog.
|
| 14 |
+
|
| 15 |
+
## Display and positioning update — 1 October 2026
|
| 16 |
+
|
| 17 |
+
The masthead carries the publication date 1 October 2026. This is the article's publication date, not a claim about the earliest public disclosure of the method.
|
| 18 |
+
|
| 19 |
+
Figure 3 now opens at a higher shared camera angle, with aspect-aware framing. Mirror-wall shells are no longer exempted from its existing runtime wall cutaway. Office Café opens in an elevated section view; its Cutaway button restores or disables the display-only horizontal clipping plane, and Reset view restores the overview. Linked Office controls are a viewing aid, not a geometric registration. Model bytes, evaluation values, registration transforms, and demo media are unchanged.
|
| 20 |
+
|
| 21 |
+
AHa-3D is described as concurrent work rather than an antecedent to AWSM. Its primary project sections `sections/workflow.html` and `sections/reference.html` at `https://kevinxu02.github.io/real2sim-indoor-site/` (checked 1 October 2026) describe video input, camera/depth estimation with Pi3X, segmentation with SAM3, and a TSDF reference. Thus, “video-driven” does not mean “without estimated geometry.” AWSM's emphasized distinction is additional physical evidence, especially IMU-informed visual-inertial constraints. No dated Twitter source has been attached here, so this update makes no public-priority claim. The frozen four-route experiment is not an isolated IMU ablation.
|
| 22 |
+
|
| 23 |
+
## Upstream naming discrepancy
|
| 24 |
+
|
| 25 |
+
The frozen M4 Blend SHA-256 is `cc6cb605246a255d94e36b9dc3f8b91d5a292b047470bc0ff75b8a5c404b0cfe`.
|
| 26 |
+
|
| 27 |
+
- The current upstream table describes M4 as GT camera poses with pose-conditioned DA3 depth.
|
| 28 |
+
- Historical downstream documentation dated 24 September 2026 describes that same Blend hash as GT camera poses with pose-conditioned MapAnything depth.
|
| 29 |
+
- Historical M3 documentation also names OpenVINS, whereas the current frozen table names ORB-SLAM3.
|
| 30 |
+
|
| 31 |
+
This may reflect documentation or pipeline-version drift. The asset hash establishes identical output, not which upstream description is correct. This publication does not silently change the frozen data or infer a causal result from that discrepancy. Resolving it requires the original input packets and modeling-run records. Historical retrieval/navigation outcomes are not combined with this demo or attributed to DA3.
|
| 32 |
+
|
| 33 |
+
## Scope
|
| 34 |
+
|
| 35 |
+
The reconstruction measurements, map-based execution demonstration, and longer-term spatial-memory/simulation research agenda are separate evidence levels. More faithful geometry can reduce geometric mismatch; dependable real-world navigation and policy transfer also depend on localization, physical properties, dynamics, sensing, and change handling. No real-robot transfer or reduction in training sim-to-real gap is measured here.
|
| 36 |
+
|
| 37 |
+
## 中文说明
|
| 38 |
+
|
| 39 |
+
本轮仅调整叙事并加入前台导航 demo,保留上游七张实验表、六张原图、模型和配准。Demo 表达“目标在重建地图中标出—路线在地图上设定—机器人执行”,并非在线视觉定位或语言自动规划实验。
|
| 40 |
+
|
| 41 |
+
新旧文档对同一 M4 模型的深度前端,以及 M3 的位姿前端,存在命名差异;需要用原始输入包和运行记录核对。本页不更改冻结结果,也不把旧检索任务收益直接归因于新版方法名称。多模态记忆、长期维护及降低 sim-to-real 差距作为研究方向呈现。
|
evidence/publication_manifest.json
ADDED
|
@@ -0,0 +1,456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 2,
|
| 3 |
+
"source_contract": "data/source_contract.json",
|
| 4 |
+
"files": [
|
| 5 |
+
{
|
| 6 |
+
"path": ".nojekyll",
|
| 7 |
+
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 8 |
+
"bytes": 0
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"path": "app.js",
|
| 12 |
+
"sha256": "d70db3a6816b9e91abbd6f9711fbcf006113e913fa0800334ccb4af986c83012",
|
| 13 |
+
"bytes": 7499
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"path": "assets/awsm-promo-v5-poster.jpg",
|
| 17 |
+
"sha256": "3c9d54318ae7cc4fd580cfd97569933645f49e7348a9052eec5c33c9856840c3",
|
| 18 |
+
"bytes": 130204
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"path": "assets/awsm-promo-v5.mp4",
|
| 22 |
+
"sha256": "41d40c2cabcd34d3e8760b927e6f3ae05dce21237b6ba6d25205103d0e055f2f",
|
| 23 |
+
"bytes": 39621539
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"path": "assets/comparison/GT.glb",
|
| 27 |
+
"sha256": "6c28ab067c63c5b1fce19c6a972f3d66c7ac4d9bd9ce3b5a57e2e18f5641fe8f",
|
| 28 |
+
"bytes": 24816108
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"path": "assets/embodied-demo/four-robots-214924-156s-hd.mp4",
|
| 32 |
+
"sha256": "f83dbb49e3aa97fd3f5f9c54ed79ed8624bac75dbd7e4cdddc4dc414b76ed222",
|
| 33 |
+
"bytes": 49687378
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"path": "assets/embodied-demo/four-robots-214924-156s-phone.mp4",
|
| 37 |
+
"sha256": "b9008c7b754f994d30a740a632b70ea0f693f3917fcf11820e64902ddbd13596",
|
| 38 |
+
"bytes": 11648571
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"path": "assets/embodied-demo/navigation-214924-poster.png",
|
| 42 |
+
"sha256": "fe1dfcc8d014fc47f93a6e4e343598c146373c2d3dc7b41613123bb6caafec8f",
|
| 43 |
+
"bytes": 1227190
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"path": "assets/embodied-demo/planned-route-156s.png",
|
| 47 |
+
"sha256": "e3c8e766f40a975a0aceca185fa60867375153fc8ddb6db451788eb935cb9b8b",
|
| 48 |
+
"bytes": 1125683
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"path": "assets/figure14_abc.png",
|
| 52 |
+
"sha256": "6ce74542f6ce9d45a985e1916a42ef2e1205b29bbcb03959e4b1ea08380dfa39",
|
| 53 |
+
"bytes": 344653
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"path": "assets/fixed_five_view_comparison_m1_m4.jpg",
|
| 57 |
+
"sha256": "501a674252a492deb209a9cfd847e8f0c83103c49d5f250964ee451d233481a9",
|
| 58 |
+
"bytes": 1755470
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"path": "assets/fixed_views/GT/000.png",
|
| 62 |
+
"sha256": "0c95e2288b7d864133952d0ce6f552abea743a7d4ea4622103047bd794a07d04",
|
| 63 |
+
"bytes": 3688630
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"path": "assets/fixed_views/GT/036.png",
|
| 67 |
+
"sha256": "449c88399a68cd88397306fbe42c5293e6684d9a9cfb749ea9e3f5ff78eef04d",
|
| 68 |
+
"bytes": 3688630
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"path": "assets/fixed_views/GT/072.png",
|
| 72 |
+
"sha256": "222246adc897e2c42232a2b10231c614601dcd71580186647522ff1881a9b71f",
|
| 73 |
+
"bytes": 3688630
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"path": "assets/fixed_views/GT/108.png",
|
| 77 |
+
"sha256": "5e5d07ef9ee0c166c24160b228dfc802ab244ac6002e8cfa76e450ee4a385565",
|
| 78 |
+
"bytes": 3688630
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"path": "assets/fixed_views/GT/144.png",
|
| 82 |
+
"sha256": "cb8c1a4ade400f935ef4e1e3bfe93245fe77d8beb239040bf43baea840996444",
|
| 83 |
+
"bytes": 3688630
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"path": "assets/fixed_views/M1/000.png",
|
| 87 |
+
"sha256": "33b9f0d09f34871564d86bde23d61d82d48133b3f9ac2f6c251b8435f4bce5c4",
|
| 88 |
+
"bytes": 460982
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"path": "assets/fixed_views/M1/036.png",
|
| 92 |
+
"sha256": "d1ccc4bf1da6c2b9e90bfc38bd37d8598a0a0068b374d05a4138bac2b37a904c",
|
| 93 |
+
"bytes": 490712
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"path": "assets/fixed_views/M1/072.png",
|
| 97 |
+
"sha256": "30b78883e701ef411d4cc04a44dffaba6df13631f6ab4c643edc42e2aa4b2415",
|
| 98 |
+
"bytes": 431098
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"path": "assets/fixed_views/M1/108.png",
|
| 102 |
+
"sha256": "9c98270c0e013225d168ee7714afbd2a80f5dfa764c0b158437d1985c26f4745",
|
| 103 |
+
"bytes": 309546
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"path": "assets/fixed_views/M1/144.png",
|
| 107 |
+
"sha256": "cf7e5355a33a83fd148daf6a648936757e8be6d09639ace537cdb2ed37a8ed98",
|
| 108 |
+
"bytes": 486611
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"path": "assets/fixed_views/M2/000.png",
|
| 112 |
+
"sha256": "dff45b5cd9bc4c5d757f36c8b8eaff015684c6681b40ad0d6b936940e7c9f316",
|
| 113 |
+
"bytes": 465709
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"path": "assets/fixed_views/M2/036.png",
|
| 117 |
+
"sha256": "2f8cb5397a7800f0229867ba94b0ee8e8c453600176531da65f27f96e7f4f147",
|
| 118 |
+
"bytes": 478265
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"path": "assets/fixed_views/M2/072.png",
|
| 122 |
+
"sha256": "899b65b8c0487f9987f38d09b246c9f97b0b94217d11ebbe29b990f48f19b003",
|
| 123 |
+
"bytes": 424182
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"path": "assets/fixed_views/M2/108.png",
|
| 127 |
+
"sha256": "291733823717146fa1e474187aafdca49d6e06b8900985dde6c48fef55684926",
|
| 128 |
+
"bytes": 464925
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"path": "assets/fixed_views/M2/144.png",
|
| 132 |
+
"sha256": "6c4f51435f109f71a35a09c0757e8995dd4de3ebec16c43ee32c25c94303e165",
|
| 133 |
+
"bytes": 481190
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"path": "assets/fixed_views/M3/000.png",
|
| 137 |
+
"sha256": "a2ca215a65c82b7361c072694c6a1201464bc2ad80c18ba7c59a963927d89b44",
|
| 138 |
+
"bytes": 418136
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"path": "assets/fixed_views/M3/036.png",
|
| 142 |
+
"sha256": "6c117fef7d146ae81baab7453cb88a2df7f75b080d8e9c672e2163a9fbf00f79",
|
| 143 |
+
"bytes": 433089
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"path": "assets/fixed_views/M3/072.png",
|
| 147 |
+
"sha256": "7d40497cf6c2c3c20403a4c3e1f9b0abe478fbb8602e1f259e51c48dd535d4f3",
|
| 148 |
+
"bytes": 390554
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"path": "assets/fixed_views/M3/108.png",
|
| 152 |
+
"sha256": "12b289c7af68a32b1a00817685ed79ede039b3624af9896a57e90b1d5b99d864",
|
| 153 |
+
"bytes": 433108
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"path": "assets/fixed_views/M3/144.png",
|
| 157 |
+
"sha256": "cc546f9d355fd3d8ac4f48a08b4e4a1158c112585922bb34e8715229482a3542",
|
| 158 |
+
"bytes": 474768
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"path": "assets/fixed_views/M4/000.png",
|
| 162 |
+
"sha256": "a4e82854e7ce3e3870959f008a6d590f9c65925e4b33ca0e96f6cf7ffdd6ab43",
|
| 163 |
+
"bytes": 536558
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"path": "assets/fixed_views/M4/036.png",
|
| 167 |
+
"sha256": "a0a7a8afcd3ebc4e56c79a45aa41740f28ca08186b00a67af19161f23f773c2d",
|
| 168 |
+
"bytes": 547041
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"path": "assets/fixed_views/M4/072.png",
|
| 172 |
+
"sha256": "a934d91a6f6b9e130322f526e212dc9f279e1c787398e0181da3e9dd4f60127c",
|
| 173 |
+
"bytes": 491159
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"path": "assets/fixed_views/M4/108.png",
|
| 177 |
+
"sha256": "4046e5e362ab8a81404aabd59da159a192f206bf7a80b694aca130c698fe2c7e",
|
| 178 |
+
"bytes": 531759
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"path": "assets/fixed_views/M4/144.png",
|
| 182 |
+
"sha256": "1d6080b2ce9f2ae95c6a6d9fc47a620365a4439df89267ab166122287d8b61be",
|
| 183 |
+
"bytes": 529379
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"path": "assets/icons/LICENSE.octicons.txt",
|
| 187 |
+
"sha256": "da259c8bd0de62713ccdcf88910aebca810644f98c2c912bad814fc79ea778df",
|
| 188 |
+
"bytes": 1068
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"path": "assets/icons/README.md",
|
| 192 |
+
"sha256": "7460123d09d83ab450e8b4012f1f2af3ff87daf6f63ac84426faacbb9e28a342",
|
| 193 |
+
"bytes": 460
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"path": "assets/icons/github.svg",
|
| 197 |
+
"sha256": "7421820090b50ac79d7c2bf7c951a433d7098a8a9c474809207bdd45f62d9d46",
|
| 198 |
+
"bytes": 822
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"path": "assets/icons/huggingface.svg",
|
| 202 |
+
"sha256": "9cb9d71c1513fd2c57181cede84cbf552fbd8da3e3e32da514b30412a37c93a6",
|
| 203 |
+
"bytes": 4654
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"path": "assets/model_depth_error_five_views_m1_m4.png",
|
| 207 |
+
"sha256": "448bc111da467461ae84941bc6ea5f5601ca5f9746d292dc1b8b279bbfa153ce",
|
| 208 |
+
"bytes": 469515
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"path": "assets/office-cafe/atlas-scene.glb",
|
| 212 |
+
"sha256": "2f966df63078306062d0d68e3246d19a8f1179857a2fcc936835b33de1fcf87b",
|
| 213 |
+
"bytes": 10011388
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"path": "assets/office-cafe/office-input-poster.jpg",
|
| 217 |
+
"sha256": "09ee086ae0eca08afecbafb5fe5849600d0837349ae1b14e72dbdbaae9c2f237",
|
| 218 |
+
"bytes": 94250
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"path": "assets/office-cafe/office-input-web.mp4",
|
| 222 |
+
"sha256": "4915b934b5f9971c77d60f88d91ed110c5e164bb0932f89ac7cf8915964e9d2c",
|
| 223 |
+
"bytes": 27902821
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"path": "assets/office-cafe/office-pmodel-poster.jpg",
|
| 227 |
+
"sha256": "61ea36de0e40a955879b3b0195961ad137c738373726efda760b50232b7041b8",
|
| 228 |
+
"bytes": 80038
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"path": "assets/office-cafe/office-pmodel-web.mp4",
|
| 232 |
+
"sha256": "3b03fe58a1922cdd1ca935f6ad52c69e672f1e391cdec1543e60db99e93a4d71",
|
| 233 |
+
"bytes": 21650736
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"path": "assets/office-cafe/office-scan-poster.jpg",
|
| 237 |
+
"sha256": "59f64e13f254ef3c9dbf511277cd9782ac0267f25b54e99cba938269be30d4e3",
|
| 238 |
+
"bytes": 218866
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"path": "assets/office-cafe/office-scan-web.mp4",
|
| 242 |
+
"sha256": "861a074637b4b756f1c6ca115b50f20c9d03b46303caa6eb0503e812c4194b92",
|
| 243 |
+
"bytes": 35449707
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"path": "assets/office-cafe/office-scan2model.mp4",
|
| 247 |
+
"sha256": "11a2db99879d1e9e4b681f5ce3f8e2bb68ea2d66116013c17036b1b0a0231b7a",
|
| 248 |
+
"bytes": 36167269
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"path": "assets/office-cafe/office-shake-heavy-poster.jpg",
|
| 252 |
+
"sha256": "e4574f22938288bf76f5d123cbba7f871643a4889c519fab176484738438be6b",
|
| 253 |
+
"bytes": 104096
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"path": "assets/office-cafe/office-shake-heavy.mp4",
|
| 257 |
+
"sha256": "7a5a3e79a0060c8658703208daf0c1a4c76c039f1165a9841193dc3ca64e517b",
|
| 258 |
+
"bytes": 3229810
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"path": "assets/office-cafe/office-video2model.mp4",
|
| 262 |
+
"sha256": "4f0f2d4f243bf97e1ace0c874a111d7f743223109a53e84a47d036ccd0e51f2e",
|
| 263 |
+
"bytes": 10769208
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"path": "assets/office-cafe/scene.glb",
|
| 267 |
+
"sha256": "cc2e2afcfd9426335f83cd6152f90d582f3a0e15dd4dfe5cf58d85e65c5b72ac",
|
| 268 |
+
"bytes": 9703664
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"path": "assets/teaser_originals.png",
|
| 272 |
+
"sha256": "6099f12bdaea83fb2ce4f8e1ed282ac864d6f4ffb96911efb5a9101845656dae",
|
| 273 |
+
"bytes": 4000665
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"path": "data/awsm.bib",
|
| 277 |
+
"sha256": "89ef6c3e8ad37bb83e9ed34be4a5348fea7d03f4f36c7019d4ab65ca2726b578",
|
| 278 |
+
"bytes": 386
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"path": "data/embodied_demo.json",
|
| 282 |
+
"sha256": "716cf0950b01d09546799ae3caeda019a6c672ba3e979714ccd2c6dca41eea59",
|
| 283 |
+
"bytes": 3306
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"path": "data/fixed_views.json",
|
| 287 |
+
"sha256": "67611f8ecc63b44187d494984c9fea6cfe6ab1fb2e99cbe9196ec9ba1e3fb911",
|
| 288 |
+
"bytes": 8773
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"path": "data/office_video_media.json",
|
| 292 |
+
"sha256": "2a8329b175a06592b61153eb1f05450d6b40e899ddca7f348fb583a2eb4bac43",
|
| 293 |
+
"bytes": 3823
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"path": "data/scene_comparison.json",
|
| 297 |
+
"sha256": "567d50e99a789db24b4e9c31bebd6d134502a748e78dc3d0ed96e757acf0a5e8",
|
| 298 |
+
"bytes": 11113
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"path": "data/source_contract.json",
|
| 302 |
+
"sha256": "a0055850dab53d209b508a63939c21e5daf0dca73d518c4ce890542c63893af6",
|
| 303 |
+
"bytes": 14011
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"path": "data/tables_1_7.json",
|
| 307 |
+
"sha256": "01faed4be8948d16fbdc081bda859554f3bfc3f20c55746fba0ca70369179287",
|
| 308 |
+
"bytes": 12692
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"path": "editorial.css",
|
| 312 |
+
"sha256": "462f0ffc2b51cbfa93bd7187c16541ce3e28046440a5ce7d893775f16f727247",
|
| 313 |
+
"bytes": 7130
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"path": "en.html",
|
| 317 |
+
"sha256": "a207a87659c1b12ac4b468f50ff230910a166b5b597fe9d22a7403a300049908",
|
| 318 |
+
"bytes": 41112
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"path": "evidence/M1/manifest.json",
|
| 322 |
+
"sha256": "1035edb2af53edc907402472fa01b749100f01e4186b8437c4a26209fc64b952",
|
| 323 |
+
"bytes": 2132
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"path": "evidence/M2/manifest.json",
|
| 327 |
+
"sha256": "1d702281c98bfd1995f5dc073b0d91dd548f639bb813d4d8023bd6cc236ffcbd",
|
| 328 |
+
"bytes": 2126
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"path": "evidence/M3/manifest.json",
|
| 332 |
+
"sha256": "ab0f7a5542843ed7db656306f983051c9e16e7655a120e3bf8a9db16625b486e",
|
| 333 |
+
"bytes": 2127
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"path": "evidence/M4/manifest.json",
|
| 337 |
+
"sha256": "9bbe33317f64a670eed12a689a0291a4cdda422719c3d62111c53a42d638347a",
|
| 338 |
+
"bytes": 2101
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"path": "evidence/embodied-demo-audit.json",
|
| 342 |
+
"sha256": "4ea81e875634a2565aa50ac653a190a1544c154b516507345f8119e0ab2fc3f8",
|
| 343 |
+
"bytes": 994
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"path": "evidence/embodied-demo-delivery.json",
|
| 347 |
+
"sha256": "fc2ec44f10a04f7b1c162e3071bf96e1e3a5249cdf4df25b4b5f47b84a675cca",
|
| 348 |
+
"bytes": 2434
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"path": "evidence/provenance-note.md",
|
| 352 |
+
"sha256": "a6091e2335d01e5201b03df418e51e3cca50992945af1856fc4630bcdcb7bfed",
|
| 353 |
+
"bytes": 5842
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"path": "index.html",
|
| 357 |
+
"sha256": "a207a87659c1b12ac4b468f50ff230910a166b5b597fe9d22a7403a300049908",
|
| 358 |
+
"bytes": 41112
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"path": "models/M1/scene.blend",
|
| 362 |
+
"sha256": "80f985ad09591bdb227e99e71f6bacaa0b9e8c8b565c27da64ad4ac4ceb8910e",
|
| 363 |
+
"bytes": 2691023
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"path": "models/M1/scene.glb",
|
| 367 |
+
"sha256": "21a605be65d58dbe01606b8326bfe6f07fa418c67e133c9b2181729b68bc2832",
|
| 368 |
+
"bytes": 15104860
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"path": "models/M2/scene.blend",
|
| 372 |
+
"sha256": "c19f33ec434bbcf89137e67d81c283b9adfd48f42e993d8b29d63e08318f79a6",
|
| 373 |
+
"bytes": 3886116
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"path": "models/M2/scene.glb",
|
| 377 |
+
"sha256": "0ee9123f38099d1df63ab593dd7082d5f1cf1b136e63833ec5afa0e072cf4c2e",
|
| 378 |
+
"bytes": 14523124
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"path": "models/M3/scene.blend",
|
| 382 |
+
"sha256": "00cd43eef3b4a6b2b2b169e8a7eda787dc57222dc501a3a9be09f39af5f46a9b",
|
| 383 |
+
"bytes": 2319452
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"path": "models/M3/scene.glb",
|
| 387 |
+
"sha256": "22699f8225a5f90166cdea2e6e2bdad7977fda4a1fe1086da209f0c9afe97a6c",
|
| 388 |
+
"bytes": 7701488
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"path": "models/M4/scene.blend",
|
| 392 |
+
"sha256": "cc6cb605246a255d94e36b9dc3f8b91d5a292b047470bc0ff75b8a5c404b0cfe",
|
| 393 |
+
"bytes": 2268620
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"path": "models/M4/scene.glb",
|
| 397 |
+
"sha256": "716e4b89b7b11ad8a0cb0e238b366b4f5dc80e3a2c3cddb5eedc469ef4e63774",
|
| 398 |
+
"bytes": 17202608
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"path": "office-models.js",
|
| 402 |
+
"sha256": "8752a7cc4f64dfac992029d218e8ed1ee747f12e6ead0ea9fcbefc9293a8ea17",
|
| 403 |
+
"bytes": 15700
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"path": "office.css",
|
| 407 |
+
"sha256": "2e8c4a2f0718520449a9a4534241290e387af74d2133e5db41f91c0682353f6f",
|
| 408 |
+
"bytes": 3447
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"path": "scene-compare.js",
|
| 412 |
+
"sha256": "bd749465e05d4d19a746945f6914ff55bb06da743e5f5cd25e5630dd0cc0e732",
|
| 413 |
+
"bytes": 7483
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"path": "style.css",
|
| 417 |
+
"sha256": "cbba47743ba27dea797754d7061d00aa7440649d472e35824537cc04cb49365f",
|
| 418 |
+
"bytes": 8962
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"path": "vendor/three/controls/OrbitControls.js",
|
| 422 |
+
"sha256": "b97879c748170baadeb3fb84cea1ffdf4674e283dc06042f34e2acb95a76042c",
|
| 423 |
+
"bytes": 38703
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"path": "vendor/three/environments/RoomEnvironment.js",
|
| 427 |
+
"sha256": "c20f0b4677f6128a138d7152b85cbef9091f4f45cdfa05adca04d40c1697c7ae",
|
| 428 |
+
"bytes": 4899
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"path": "vendor/three/loaders/GLTFLoader.js",
|
| 432 |
+
"sha256": "67ac5551fdafa6e349bd80c8f8e5e39c136d6b2fb1ad647db9abb21dc86f9e4a",
|
| 433 |
+
"bytes": 114739
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"path": "vendor/three/three.core.js",
|
| 437 |
+
"sha256": "eb077d2417f61d3e6d9264c317cabc4ea35769ed6b0ab533067292a550784c20",
|
| 438 |
+
"bytes": 1403455
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"path": "vendor/three/three.module.js",
|
| 442 |
+
"sha256": "c8211c69345d2e9949dc7a8ac969380497aa0600a5a8ac6a459c8cd02dd9cb8a",
|
| 443 |
+
"bytes": 603113
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"path": "vendor/three/utils/BufferGeometryUtils.js",
|
| 447 |
+
"sha256": "fda7e946b8e0b5ab39b779206589e7a1079a22eb24efb89d7223e03fdfb1f751",
|
| 448 |
+
"bytes": 35539
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"path": "zh.html",
|
| 452 |
+
"sha256": "99c4919e62bd89da3c4ba6a8a98f948a597d005518ce234d07bbcdf06df6780a",
|
| 453 |
+
"bytes": 38832
|
| 454 |
+
}
|
| 455 |
+
]
|
| 456 |
+
}
|
index.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>AWSM: Agentic World Simulation and Mapping — Phygital AI</title><meta name="description" content="From real spaces to worlds phygital agents can use."><meta property="og:type" content="article"><meta property="og:locale" content="en_US"><meta property="og:title" content="AWSM: Agentic World Simulation and Mapping"><meta property="og:description" content="From real spaces to worlds phygital agents can use."><meta property="og:image" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/assets/teaser_originals.png"><meta property="og:url" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/index.html"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="AWSM: Agentic World Simulation and Mapping"><meta name="twitter:description" content="From real spaces to worlds phygital agents can use."><meta name="twitter:image" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/assets/teaser_originals.png"><link rel="canonical" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><link rel="alternate" hreflang="zh-CN" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/zh.html"><link rel="alternate" hreflang="en" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><link rel="stylesheet" href="style.css?v=cbba47743ba2"><link rel="stylesheet" href="editorial.css?v=462f0ffc2b51"><script type="importmap">{"imports":{"three":"./vendor/three/three.module.js"}}</script><script src="app.js?v=d70db3a6816b" defer></script><script type="module" src="scene-compare.js?v=bd749465e05d"></script><link rel="stylesheet" href="office.css?v=2e8c4a2f0718"><link rel="alternate" hreflang="x-default" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><meta property="article:published_time" content="2026-10-01"></head>
|
| 2 |
+
<body data-lang="en"><a class="skip" href="#main">Skip to article</a><nav><a class="brand" href="index.html">PHYGITAL AI / AWSM</a><div><a href="zh.html" >中文</a><a href="index.html" aria-current='page'>EN</a><a href="https://github.com/wentingw/AWSM" target="_blank" rel="noopener noreferrer">GitHub ↗</a></div></nav><header><p class="title-name">Agentic World Simulation and Mapping</p><div class="title-lockup"><h1 aria-label="AWSM: Agentic World Simulation and Mapping">AWSM</h1><p class="pronunciation">pronounced “awesome”</p></div><p class="lead">From real spaces to <strong class="tagline-emphasis">worlds phygital agents can use.</strong></p><p class="brand-note">Phygital = physical + digital.</p><p class="publication-date">Published <time datetime="2026-10-01">October 1, 2026</time></p></header>
|
| 3 |
+
<div class="hero" id="overview-video"><video controls playsinline preload="metadata" poster="assets/awsm-promo-v5-poster.jpg" aria-label="AWSM introduction video"><source src="assets/awsm-promo-v5.mp4" type="video/mp4"><a href="assets/awsm-promo-v5.mp4">AWSM introduction video</a></video><div class="project-links" role="group" aria-label="AWSM project resources"><a class="project-resource" href="https://github.com/wentingw/AWSM" target="_blank" rel="noopener noreferrer" aria-label="GitHub (opens in a new window)" title="GitHub (opens in a new window)"><img src="assets/icons/github.svg" width="24" height="24" alt="">GitHub<svg class="project-external-arrow" viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 12 12 4M4 4h8v8"/></svg></a><span class="project-resource"><img src="assets/icons/huggingface.svg" width="24" height="24" alt="">Hugging Face (Coming soon)</span></div></div><div class="layout"><aside class="toc"><p>ON THIS PAGE</p><a href="#results">Overview</a><a href="#motivation">Motivation</a><a href="#workflow">Workflow</a><a href="#more-results">Results & analysis</a><a href="#embodied-demo">Embodied demo</a><a href="#related-work">Related work</a><a href="#limitations">Limitations</a><a href="#citation">Citation</a><a href="#references">References</a></aside><main id="main">
|
| 4 |
+
<section id="results"><p class="section-tag">01 / OVERVIEW</p><aside class="tldr"><strong>TL;DR</strong><p>AWSM uses large-model agents to turn visual observations into editable 3D scenes, grounded in camera-pose and depth estimates—including IMU-informed visual–inertial constraints that tie geometry to physical scale. In one controlled Isaac Sim scene, four reconstruction routes test spatial fidelity, not just visual plausibility. The aligned comparison from RGB-only M1 to GT-pose-conditioned M4 shows ≈81% lower bidirectional surface error and ≈54% lower model-depth AbsRel across 180 evaluation views. A multi-robot demo then illustrates goal-directed navigation and task execution on the reconstructed map: follow predefined routes to a marked reception desk and line up there. Next steps are higher efficiency and accuracy, reusable simulation-ready assets, and deeper integration with phygital agents for persistent spatial memory, object search, and interaction.</p></aside><h2>A scene can look plausible and still be spatially wrong.</h2><p class="standfirst">Agentic reconstruction uses a large model to inspect observations, call modeling tools, and iteratively build and check an editable scene. The challenge is not only to produce a convincing room, but to preserve the scale, shape, and spatial relationships that make it useful beyond rendering. AWSM asks how geometric evidence can constrain this process so that its outputs become more faithful spatial references for downstream agents.</p><p>We reconstruct World Lobby, a simulated scene in NVIDIA Isaac Sim, through four complete engineering routes, from RGB-only modeling to ground-truth-pose-conditioned modeling. Each route produces a frozen Blender scene, not merely a point cloud or a novel-view renderer. The experiment asks what additional geometric evidence buys, where it fails to help, and which errors survive object-centric reconstruction.</p><div class="insight-strip"><div><strong>0.376 → 0.072 m</strong><span>bidirectional surface error</span><small class="metric-reduction">≈81% relative reduction · M1 → M4</small></div><div><strong>16.44% → 7.60%</strong><span>model-depth AbsRel · 180 evaluation views</span><small class="metric-reduction">≈54% relative reduction · M1 → M4</small></div></div><p class="metric-caveat">Single-scene M1 → M4 diagnostic comparison: M1 uses GT-assisted Sim(3) alignment; M4 uses GT camera poses. Relative reductions compare complete pipelines, not IMU alone.</p></section>
|
| 5 |
+
<section id="motivation"><p class="section-tag">02 / MOTIVATION</p><h2>From plausible reconstruction to a usable spatial reference</h2><p>A reconstruction agent can assemble a plausible room while getting a corner, distance, or passage wrong. For an embodied agent, those are not merely visual defects: they change where a destination lies and which route a body can follow. Geometry grounding means constraining the modeling process with pose, depth, and metric evidence where available, rather than relying on visual plausibility alone. The question is how those constraints survive the conversion from observations into editable objects.</p><p>The reception-desk task makes this connection concrete: mark a destination in the reconstructed map, specify routes, and execute them with robot controllers. We use ‘scene representation’ for the editable objects and geometry, ‘map’ for their navigation role, and ‘simulation assets’ for their integration into a simulator. The ‘world’ in AWSM refers to this reusable spatial environment, not a learned dynamics predictor. A persistent spatial foundation connecting navigation, memory, interaction, and simulation is the longer-term goal; the experiments and demo examine its geometric basis and one downstream use.</p><aside class="claim"><strong>Research question</strong><p>How does progressively stronger geometric evidence change the fidelity—and the remaining failure modes—of an editable object-centric world?</p></aside><h3>Contributions</h3><ol class="contributions"><li>A four-route study of geometry-grounded agentic reconstruction, keeping the scene, 180 RGB identities, modeling objective, and editable output format fixed while comparing complete pipelines with different geometric evidence.</li><li>An evaluation protocol that separates trajectory error, native depth, final-scene depth, surface geometry, and rendered appearance, with frozen Blend/GLB assets, reproducible evaluation subsets, public hashes, and interactive comparisons.</li><li>A map-based multi-robot simulation example connecting a reconstructed scene to destination marking, predefined routes, and controller execution. It illustrates downstream use rather than a controlled navigation comparison across reconstruction routes.</li></ol><div id="scale-and-sensors" class="analysis-block grounding-block"><h3>Geometry grounding: scale is necessary, but not sufficient</h3>
|
| 6 |
+
<p>Monocular projection geometry leaves a global scale ambiguity; learned metric depth adds a useful prior, not an independent measurement of every real-world dimension. Calibrated RGB-D, a known baseline or length, and visual-inertial estimation can supply metric constraints. IMU fusion can recover metric motion under sufficient excitation and reliable initialization, bias estimation, synchronization, and calibration. An IMU is not a direct distance sensor, and its presence alone does not guarantee accurate scale.</p>
|
| 7 |
+
<p>Scale, local shape, camera pose, and navigable connectivity must be checked separately. A curved corner simplified into a square cannot be repaired by rescaling alone. Pose-conditioned depth can improve reconstruction, but neither the DA3 ablation nor our M2/M3 results imply that every depth metric improves monotonically. The four routes below are system comparisons, not an isolated IMU ablation.</p>
|
| 8 |
+
<p class="inline-sources"><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">VINS-Mono</a> · <a href="https://arxiv.org/html/2511.10647v1#S7.SS2.SSS3" target="_blank" rel="noopener">DA3 pose-conditioning ablation</a></p></div></section>
|
| 9 |
+
<section id="workflow"><p class="section-tag">03 / WORKFLOW</p><h2>One agentic workflow, four reconstruction routes</h2><p>The reconstruction agent follows a shared observe–build–verify loop: inspect the available evidence, write Blender Python to construct objects, render review views, and revise the scene before freezing it for evaluation. This tool-using modeling process is what ‘agentic’ describes here; the downstream robot controllers have a separate role.</p><p>All routes receive the same 180 RGB identities and the same Astra–Blender modeling objective. M1 tests how far visual priors can go without metric measurements. M2 adds RGB-only ViPE poses and pose-conditioned DA3 depth. M3 uses monocular-inertial ORB-SLAM3 poses with the same class of DA3 observations. M4 supplies ground-truth camera poses to diagnose the remaining modeling error; it does not receive the GT mesh or GT depth as modeling input.</p><figure class="table-figure" id="table-1" data-table-key="table1"><figcaption><span>Table 1.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 1"></div></figure><h3>Agentic reconstruction loop</h3><div class="workflow-strip"><div><strong>01 · Observe</strong><span>Inspect all 180 RGB frames and, where allowed, pose-conditioned DA3 geometry.</span></div><div><strong>02 · Build</strong><span>Write Blender Python that decomposes the room into named objects, materials, cameras, and collision proxies.</span></div><div><strong>03 · Verify</strong><span>Compare paired RGB and optical-Z renders at fixed review cameras; revise within a fixed version budget.</span></div><div><strong>04 · Freeze</strong><span>Export Blend/GLB, manifests, semantic IDs, and hashes before any GT score is visible to the author.</span></div><div><strong>05 · Evaluate</strong><span>Measure pose, native depth, model depth, surface distance, and appearance under one frozen protocol.</span></div></div><p>Ground truth is introduced only after the scenes are frozen. M2 and M3 are evaluated under one global SE(3) alignment with scale fixed to one; no mesh ICP or per-view fitting is used. M1 has no native metric trajectory, so its model-space numbers use one frozen GT-assisted Sim(3) from five manual camera associations and remain diagnostic rather than evidence of metric recovery.</p><aside class="notice"><strong>M1 diagnostic limitation.</strong> Its Sim(3)-aligned geometry and depth numbers describe shape after GT-assisted display alignment, not native metric recovery.</aside></section>
|
| 10 |
+
<section id="more-results"><p class="section-tag">04 / RESULTS AND ANALYSIS</p><h2>Three findings matter more than a leaderboard</h2><article class="finding"><p class="finding-kicker">FINDING 01</p><h3>1. Better pose does not mechanically imply better native depth</h3><p>M3 improves trajectory accuracy over M2—ATE falls from 0.167 m to 0.121 m and rotation error from 0.31° to 0.19°. Yet its native DA3 AbsRel is slightly worse (20.38% versus 19.06%). After modeling, the ordering reverses: M3 reaches 8.37% model-depth AbsRel versus 9.29% for M2. Upstream metrics and downstream scene fidelity are related, but they are not interchangeable.</p></article><figure class="table-figure" id="table-2" data-table-key="table2"><figcaption><span>Table 2.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 2"></div></figure><figure id="figure-1"><img loading="lazy" src="assets/figure14_abc.png" alt="Trajectory, native depth, and model depth"><figcaption><span>Figure 1.</span> The upstream trajectory and native-depth ranking does not map one-to-one onto frozen-scene depth.</figcaption></figure><article class="finding"><p class="finding-kicker">FINDING 02</p><h3>2. Geometric evidence turns a plausible layout into a more faithful space</h3><p>Under the declared alignment and without mesh ICP, bidirectional surface error falls from 0.376 m for the RGB-only diagnostic baseline to 0.118 m with ViPE, 0.082 m with ORB-SLAM3, and 0.072 m with GT poses. M4 is strongest on geometry in this case, while M3 closes most of the gap using an estimated trajectory.</p></article><figure class="table-figure" id="table-3" data-table-key="table3"><figcaption><span>Table 3.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 3"></div></figure><article class="finding finding-comparison"><p class="finding-kicker">FINDING 03</p><h3>3. Qualitative comparison</h3></article><div class="analysis-block"><h3>Inspect the reconstructed scenes, not just aggregate scores</h3><p>Use the shared camera to compare each reconstruction with GT. Start with M1 to see how a semantically plausible room can drift in metric layout; compare M2 and M3 to find regions where geometry improves without a matching gain in RGB similarity; then inspect M4 to isolate errors that remain even when camera pose is no longer the bottleneck.</p><figure id="figure-2"><img loading="lazy" src="assets/fixed_five_view_comparison_m1_m4.jpg" alt="M1 to M4 and input GT across five fixed views"><figcaption><span>Figure 2.</span> M1–M4 and input GT across five fixed views.</figcaption></figure><figure class="scene-comparison" id="figure-3" data-state="idle"><h3>Rotate, zoom, and inspect the frozen scenes</h3>
|
| 11 |
+
<div class="scene-toolbar"><label class="method-control">Reconstruction / GT<select id="model-select"><option value="M1">M1</option><option value="M2">M2</option><option value="M3">M3</option><option value="M4" selected>M4</option><option value="GT">GT</option></select></label><label>Display<select id="scene-mode"><option value="compare">Split comparison with GT</option><option value="single">View selected scene alone</option></select></label><button id="scene-reset" type="button">Reset view</button></div>
|
| 12 |
+
<div class="scene-stage"><span class="scene-label scene-label-left">M4</span><span class="scene-label scene-label-right">GT</span><button class="scene-divider" type="button" role="slider" aria-label="Comparison divider" aria-valuemin="2" aria-valuemax="98" aria-valuenow="50"></button><input id="scene-split" class="scene-split" type="range" min="2" max="98" value="50" aria-label="Comparison split"><p class="scene-status">Scroll here to load the 3D comparison.</p></div><button id="scene-retry" class="scene-retry" type="button">Retry</button>
|
| 13 |
+
<figcaption><span>Figure 3.</span> One camera and one full viewport compare the selected frozen model with GT. Ceilings and surrounding walls are hidden at runtime for the same cutaway-style inspection; source files remain unchanged.</figcaption></figure><figure class="fixed-comparison" id="figure-4"><div class="controlrow"><label>Method<select id="compare-method" disabled><option value="M1">M1</option><option value="M2">M2</option><option value="M3">M3</option><option value="M4">M4</option></select></label><label>Fixed view<select id="compare-frame" disabled><option value="0">0</option><option value="36">36</option><option value="72">72</option><option value="108">108</option><option value="144">144</option></select></label></div><div class="compare-pair"><div><img id="compare-pred" src="assets/fixed_views/M1/000.png" alt="Selected frozen model rendering"><p id="compare-label" class="compare-subcaption">M1 / VIEW 0</p></div><div><img id="compare-gt" src="assets/fixed_views/GT/000.png" alt="Input GT RGB"><p class="compare-subcaption">INPUT / GT RGB</p></div></div><figcaption><span>Figure 4.</span> Frozen-model rendering and input GT RGB from exactly the same view.</figcaption></figure><p>The browser hides ceilings and surrounding walls only for cutaway inspection. Runtime registration and display choices do not modify the downloadable frozen GLB or Blend files.</p></div><div class="analysis-block"><h3>What geometric grounding changes—and what it does not</h3><h4>Modeling behaves like a structured—and lossy—regularizer</h4><p>For M2–M4, the final scene depth is substantially closer to GT than native DA3 depth on the shared 180-view protocol: AbsRel falls by roughly 51–60%. One plausible interpretation is that object-level aggregation suppresses inconsistent local predictions. This is a hypothesis, not a controlled causal result: the same abstraction can also erase real surfaces and fine geometry.</p><h4>Measurement constrains generation; it does not solve appearance</h4><p>The strongest geometric route does not dominate PSNR or SSIM. Pose removes one source of uncertainty, but appearance still depends on material estimation, lighting, object detail, and renderer mismatch. Evaluating only RGB would miss spatial progress; evaluating only geometry would miss perceptual failure.</p><h4>The 100-view check measures consistency, not unseen-view generalization</h4><p>Table 7 uses a seeded set of 100 cameras drawn from the 175 modeling frames outside the fixed-five check. These are additional evaluation views relative to that check, but their RGB images were available during modeling. On this set, M4 has the lowest depth AbsRel (7.47%), while M3 has the lowest RMSE (1.090 m).</p><figure id="figure-5"><img loading="lazy" src="assets/model_depth_error_five_views_m1_m4.png" alt="Model-depth error at five fixed evaluation views"><figcaption><span>Figure 5.</span> Model-depth error at the fixed-five check; teal marks missing or invalid predictions.</figcaption></figure><figure class="table-figure" id="table-6" data-table-key="table6"><figcaption><span>Table 6.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 6"></div></figure><figure class="table-figure" id="table-7" data-table-key="table7"><figcaption><span>Table 7.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 7"></div></figure></div><div id="office-cafe" class="analysis-block external-case"><h3>Beyond the lobby: what survives in a phone-captured space?</h3><p>Office Café is not a second run of the World Lobby benchmark and is not quantitative validation under the same protocol. It is an external, real-capture case study showing how an object-centric scene, a solved source-camera trajectory, video-to-model comparison, and physics replays can coexist in one inspectable artifact. An author-observed failure—a curved real-world corner simplified into a square one—motivates separating local shape from global scale. A correct scale alone cannot repair that shape error; this is a qualitative observation, not another measured benchmark.</p><p class="office-links"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener">Open full-screen model ↗</a><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener">Open shake experiment ↗</a></p><div class="office-external"><h4>Explore the original interactive apps</h4><div class="office-external-grid"><figure class="office-external-card"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener noreferrer"><img loading="lazy" src="assets/office-cafe/office-pmodel-poster.jpg" alt="Interactive model: Local preview from the published model-render video."></a><figcaption><strong>Interactive model</strong><p>Local preview from the published model-render video.</p><button type="button" data-office-external="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" aria-controls="office-external-slot">Load external app · English requested</button></figcaption></figure><figure class="office-external-card"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener noreferrer"><img loading="lazy" src="assets/office-cafe/office-shake-heavy-poster.jpg" alt="Shake experiment: Local preview from the published strong-shake replay."></a><figcaption><strong>Shake experiment</strong><p>Local preview from the published strong-shake replay.</p><button type="button" data-office-external="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" aria-controls="office-external-slot">Load external app · English requested</button></figcaption></figure></div><p class="office-external-note">Links request English with lang=en; the external host controls language and availability. These local content previews are not screenshots of the external website. If embedding is unavailable, use the full-screen links or the local models and videos below.</p><div id="office-external-slot" class="office-external-slot" hidden></div></div><div class="office-model-grid"><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/scene.glb" aria-label="Interactive Office Café ViPE model"></div><figcaption><strong>Current model</strong><span>Video plus estimated depth as input; drag to orbit, right-drag to pan, and scroll to zoom.</span></figcaption></figure><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/atlas-scene.glb" aria-label="Interactive legacy Office Café model"></div><figcaption><strong>Legacy model</strong><span>Video-only input; this legacy layout was not recalibrated against the ViPE scan.</span></figcaption></figure></div><p class="office-model-note">Both models open in an elevated cutaway view: upper geometry is clipped only for display to expose the interior. Toggle Cutaway to inspect the complete model; Reset view restores the overview. Authored coordinates, materials, and model files are unchanged. Linked orbit controls compare layouts, not registered geometry.</p><div class="office-video-grid office-video-sync"><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-input-poster.jpg" src="assets/office-cafe/office-input-web.mp4?v=4915b934b5f9" aria-label="Input video"></video><figcaption><strong>Input video</strong><span>Original phone walkthrough.</span></figcaption></figure><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-pmodel-poster.jpg" src="assets/office-cafe/office-pmodel-web.mp4?v=3b03fe58a192" aria-label="Procedural model"></video><figcaption><strong>Procedural model</strong><span>Model rendered along the source-camera trajectory.</span></figcaption></figure><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-scan-poster.jpg" src="assets/office-cafe/office-scan-web.mp4?v=861a074637b4" aria-label="Point cloud"></video><figcaption><strong>Point cloud</strong><span>Scan rendered along the same trajectory.</span></figcaption></figure></div>
|
| 14 |
+
<div class="office-video-controls"><button class="office-video-play" type="button" aria-label="Play all three videos" aria-pressed="false">▶</button><input class="office-video-progress" type="range" min="0" max="1000" value="0" aria-label="Shared video progress"><output class="office-video-time">00:00 / 01:10</output><p class="office-video-status" role="status" aria-live="polite">Shared playback · 70.1 seconds · 30 fps</p></div><div class="office-video-grid"><figure class="office-video-card office-video-card-wide"><video controls preload="metadata" playsinline poster="assets/office-cafe/office-shake-heavy-poster.jpg" src="assets/office-cafe/office-shake-heavy.mp4"></video><figcaption><strong>Strong earthquake effect</strong><span>Every object in the scene is interactable, and cabinet doors can open; this replay shows the physical response under strong shaking.</span></figcaption></figure></div><script type="module" src="office-models.js?v=8752a7cc4f64"></script></div></section>
|
| 15 |
+
<section id="embodied-demo" class="embodied-demo">
|
| 16 |
+
<p class="section-tag">DEMO / MAP-BASED EMBODIED EXECUTION</p><h2>A reconstructed map. A destination. Robots in motion.</h2><p>The demo connects reconstruction to downstream use in NVIDIA Isaac Sim. The reception desk is marked in the navigation map, routes are specified, and a drone, humanoid, quadruped, and wheeled robot execute the task. The same spatial reference connects a destination, route constraints, and motion control: a scene to inspect becomes a map to act with.</p>
|
| 17 |
+
<blockquote class="mission-command"><span>Task intent: </span>Send the robots to the reception desk and have them line up there.</blockquote>
|
| 18 |
+
<ol class="mission-flow" aria-label="Task workflow"><li><span>01</span>Task instruction</li><li><span>02</span>Locate the reception desk</li><li><span>03</span>Set routes on the map</li><li><span>04</span>Execute with controllers</li></ol>
|
| 19 |
+
<figure class="demo-film"><video controls playsinline preload="none" poster="assets/embodied-demo/navigation-214924-poster.png" width="1280" height="720" aria-label="Four-robot map-based navigation demonstration"><source src="assets/embodied-demo/four-robots-214924-156s-phone.mp4" type="video/mp4">Your browser cannot play this video. Use the download link below.</video><figcaption>Map-based navigation in simulation · predefined routes · simulator-pose feedback. The authors confirm that the demonstration has been manually reviewed.</figcaption></figure>
|
| 20 |
+
<div class="demo-links"><a href="assets/embodied-demo/four-robots-214924-156s-phone.mp4" download>Download mobile edition · 11.65 MB · 2:36</a><a href="assets/embodied-demo/four-robots-214924-156s-hd.mp4" download>Download HD edition · 49.69 MB · 2:36</a><a href="data/embodied_demo.json">Run & media record ↗</a></div>
|
| 21 |
+
<figure class="demo-map" id="demo-route-map"><a href="assets/embodied-demo/planned-route-156s.png" target="_blank" rel="noopener"><img loading="lazy" src="assets/embodied-demo/planned-route-156s.png" width="1920" height="1080" alt="Planned routes for four robots, with the reception desk and waypoints marked; static design, not execution trajectories"></a><figcaption><span>Navigation map.</span> The reception desk and planned routes share the reconstructed scene. This is a static design preview, not a recorded trajectory. Open the image to inspect the full-resolution map.</figcaption></figure>
|
| 22 |
+
<details class="demo-protocol"><summary>Demo protocol and scope</summary><p>The instruction above describes the intended task, not a demonstrated language-to-plan parser. Routes were manually specified and screened against both the M4 reconstructed map and original geometry. This is not a reconstruction-only planning benchmark.</p><p>The 156-second presentation edit plays at 1×: Scene (0–6s), Reconstruction (6–12s), Planned route (12–18s), and Navigation (18–156s). Navigation uses the new run <code>20260930-214924</code>; the opening 12.32 seconds of waiting are omitted, and the later terminal hold is outside this cut. The map is a static route design, not a measured execution trace.</p><p>This demo does not evaluate online visual localization, learned instruction understanding, memory retrieval, or real-robot transfer. Those are separate capabilities; the map-based execution shown here remains the intended demonstration.</p><p>Manual presentation review is separate from the historical automated checks retained below; it does not revise their recorded verdicts.</p><p><a href="evidence/embodied-demo-audit.json">Historical automated check record ↗</a></p></details>
|
| 23 |
+
</section>
|
| 24 |
+
<section id="related-work"><p class="section-tag">05 / RELATED WORK</p><h2>From geometric measurement to editable Real2Sim</h2><p>AWSM connects two roles: an agent that constructs an editable scene, and downstream agents that use it as a spatial reference. SLAM and visual-inertial estimation supply pose and metric constraints; ViPE and Depth Anything 3 contribute geometric observations. Concurrent work AHa-3D explores video-driven, tool-based Real2Sim, including camera and 3D-reference estimation from video. Our emphasis is geometric grounding: bringing additional physical measurements, especially IMU-informed visual-inertial pose and metric constraints, into agentic scene construction rather than relying on video-derived evidence alone. The four-route comparison tests reconstruction systems, not the isolated effect of IMU; the demo illustrates a map-based application, not a complete autonomous embodied system.</p><p>Our evaluation therefore spans both sides of the interface: upstream systems are judged as measurement pipelines, while the Blender outputs are judged as persistent spatial artifacts. This differs from evaluating pose, depth, or novel-view synthesis in isolation.</p><span class="inline-sources"><a href="https://research.nvidia.com/labs/toronto-ai/vipe/" target="_blank" rel="noopener">ViPE</a> · <a href="https://arxiv.org/abs/2007.11898" target="_blank" rel="noopener">ORB-SLAM3</a> · <a href="https://arxiv.org/abs/2511.10647" target="_blank" rel="noopener">Depth Anything 3</a> · <a href="https://kevinxu02.github.io/real2sim-indoor-site/" target="_blank" rel="noopener">AHa-3D</a></span><div id="spatial-foundation" class="analysis-block spatial-foundation"><p class="section-tag">RESEARCH DIRECTION</p><h3>Toward persistent spaces for phygital agents</h3><p>The current outputs are editable scene snapshots, and the demo shows a scene-specific simulation integration. The longer-term goal is to make geometry-grounded agentic reconstruction a reusable process for building and maintaining spaces that phygital agents can use. Saving an editable asset is a starting point, not a demonstration of lifelong map maintenance. The directions below extend the present evidence.</p><div class="capability-grid"><div><h4>Navigate</h4><p>Use destinations, free space, and body-specific clearance in a shared geometric frame. Better reconstruction can reduce map mismatch; reliable navigation also needs localization and current observations.</p></div><div><h4>Remember & retrieve</h4><p>Link object identities and locations to source views so language, images, and past observations can refer to the same place. Retrieval and safe arrival should be evaluated separately.</p></div><div><h4>Interact & maintain</h4><p>Edit object properties and relationships, revisit changed areas, and preserve evidence and versions. Persistent memory must distinguish observed geometry, inferred completion, and unknown space.</p></div><div><h4>Simulate & learn</h4><p>Move from the current scene-specific integration to reusable simulation-ready exports with checked scale, collision geometry, and physical parameters. These can support task rehearsal, scenario variation, and training; reduced policy sim-to-real gap remains a separate question to test.</p></div></div><p>A full mesh is not required for every retrieval task: Memory Over Maps uses posed RGB-D keyframes for on-demand localization, while 3D-Mem and task-oriented scene graphs explore complementary memory and representation choices. Our proposed direction is hybrid: preserve visual evidence, refine task-relevant geometry, and build editable simulation assets where they add value. The next question is when an agent has enough evidence to act—and when it should observe again and update its map.</p><p>The immediate agenda is higher reconstruction efficiency and accuracy, reusable simulation-ready scene generation, and deeper integration with phygital agents. Together, these steps connect the reconstruction agent’s modeling and revision loop to the downstream agent’s navigation, memory, and interaction needs.</p><p class="inline-sources"><a href="https://arxiv.org/abs/2603.20530" target="_blank" rel="noopener">Memory Over Maps</a> · <a href="https://arxiv.org/abs/2411.17735" target="_blank" rel="noopener">3D-Mem</a> · <a href="https://arxiv.org/abs/2404.13696" target="_blank" rel="noopener">Clio</a> · <a href="https://arxiv.org/abs/2404.06609" target="_blank" rel="noopener">GOAT-Bench</a></p></div></section>
|
| 25 |
+
<section id="limitations"><p class="section-tag">06 / LIMITATIONS</p><h2>The boundaries are part of the result</h2><ul class="limits-list"><li>One synthetic scene and one engineering run per route do not establish general superiority or statistical significance.</li><li>The four routes are complete systems, not a strict single-variable ablation; M2 versus M3 cannot be attributed to IMU alone.</li><li>M4 uses GT camera poses and is a diagnostic route, not a deployable baseline or a theoretical upper bound.</li><li>M1 model-space metrics rely on GT-assisted Sim(3) and must not be ranked as native metric recovery.</li><li>The 100-view appearance and depth sets contain modeling RGB inputs; they are not a held-out novel-view benchmark.</li><li>Appearance metrics mix geometry, material, illumination, and rendering error. M4 revision 4 has not received a complete independent visual re-review.</li><li>The reception-desk demo is map-based simulation execution, not a controlled comparison of navigation across M1–M4. Routes are predefined and localization uses simulator pose; see the demo protocol for scope.</li><li>Multimodal memory, long-term map maintenance, and reduced policy sim-to-real gap are research goals, not measured outcomes of the four-robot demo. The Office Café corner observation has no matched-view quantitative GT measurement here.</li><li>Historical downstream documentation describes the same M4 Blend hash using a different depth frontend. The frozen tables and assets are retained unchanged; their upstream naming needs reconciliation before attributing historical task outcomes to DA3. See the provenance note.</li></ul><p>Every table is generated from frozen assets. The public manifests expose model hashes, registrations, fixed views, and the exact seeded evaluation indices.</p><div class="asset-downloads"><p><strong>M1</strong> <a href="models/M1/scene.blend" download>scene.blend ↓</a> · <a href="models/M1/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M1/manifest.json">manifest ↗</a></p><p><strong>M2</strong> <a href="models/M2/scene.blend" download>scene.blend ↓</a> · <a href="models/M2/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M2/manifest.json">manifest ↗</a></p><p><strong>M3</strong> <a href="models/M3/scene.blend" download>scene.blend ↓</a> · <a href="models/M3/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M3/manifest.json">manifest ↗</a></p><p><strong>M4</strong> <a href="models/M4/scene.blend" download>scene.blend ↓</a> · <a href="models/M4/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M4/manifest.json">manifest ↗</a></p></div><p class="evidence-links"><a href="data/tables_1_7.json">Tables JSON</a> · <a href="data/scene_comparison.json">Scene manifest</a> · <a href="data/fixed_views.json">Fixed views</a> · <a href="evidence/publication_manifest.json">Publication manifest</a> · <a href="evidence/SHA256SUMS">SHA256</a></p><p><a href="evidence/provenance-note.md">Version and provenance note ↗</a></p></section>
|
| 26 |
+
<section id="citation"><p class="section-tag">07 / CITATION</p><h2>Cite this work</h2><p>If this controlled study, its frozen assets, or its evaluation protocol supports your work, please cite the interactive article below.</p><pre class="citation-block"><code>@misc{awsm_2026,
|
| 27 |
+
title = {{AWSM}: Agentic World Simulation and Mapping},
|
| 28 |
+
author = {{Phygital AI}},
|
| 29 |
+
year = {2026},
|
| 30 |
+
howpublished = {Interactive research article},
|
| 31 |
+
url = {https://phygital-ai.github.io/agentic-world-simulation-and-mapping/},
|
| 32 |
+
note = {Reconstruction benchmarks, editable scene assets, and map-based embodied demonstration}
|
| 33 |
+
}</code></pre><a class="citation-download" href="data/awsm.bib" download="awsm.bib">Download BibTeX <span aria-hidden="true">↓</span></a></section>
|
| 34 |
+
<section id="references"><p class="section-tag">08 / REFERENCES</p><h2>References</h2><ol class="references-list"><li><a href="https://kevinxu02.github.io/real2sim-indoor-site/" target="_blank" rel="noopener">AHa-3D: Agentic Tool Use for Real2Sim with GPT-6 Astra.</a></li><li><a href="https://arxiv.org/abs/2508.10934" target="_blank" rel="noopener">ViPE: Video Pose Engine for camera motion and near-metric geometry.</a></li><li><a href="https://arxiv.org/abs/2007.11898" target="_blank" rel="noopener">Campos et al. ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual–Inertial, and Multimap SLAM. IEEE Transactions on Robotics, 2021.</a></li><li><a href="https://arxiv.org/abs/2511.10647" target="_blank" rel="noopener">Depth Anything 3: Recovering the Visual Space from Any Views.</a></li><li><a href="https://doi.org/10.1109/TIP.2003.819861" target="_blank" rel="noopener">Wang et al. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE Transactions on Image Processing, 2004.</a></li><li><a href="https://arxiv.org/abs/1801.03924" target="_blank" rel="noopener">Zhang et al. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. CVPR, 2018.</a></li><li><a href="https://www.blender.org/" target="_blank" rel="noopener">Blender Foundation. Blender: Free and Open Source 3D Creation Suite.</a></li><li><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">Qin et al. VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator. TRO, 2018.</a></li><li><a href="https://arxiv.org/abs/2509.13414" target="_blank" rel="noopener">Keetha et al. MapAnything: Universal Feed-Forward Metric 3D Reconstruction. 2025.</a></li><li><a href="https://arxiv.org/abs/2603.20530" target="_blank" rel="noopener">Zhou et al. Memory Over Maps: 3D Object Localization Without Reconstruction. 2026.</a></li><li><a href="https://arxiv.org/abs/2411.17735" target="_blank" rel="noopener">Yang et al. 3D-Mem: 3D Scene Memory for Embodied Exploration and Reasoning. 2024.</a></li><li><a href="https://arxiv.org/abs/2404.06609" target="_blank" rel="noopener">Khanna et al. GOAT-Bench: A Benchmark for Multi-Modal Lifelong Navigation. CVPR, 2024.</a></li><li><a href="https://arxiv.org/abs/2309.16650" target="_blank" rel="noopener">ConceptGraphs: Open-Vocabulary 3D Scene Graphs for Perception and Planning. ICRA, 2024.</a></li><li><a href="https://arxiv.org/abs/2404.13696" target="_blank" rel="noopener">Clio: Real-time Task-Driven Open-Set 3D Scene Graphs. RA-L, 2024.</a></li></ol></section><noscript>JavaScript is required for tables and interactive figures.</noscript></main></div><footer>Phygital AI · AWSM · frozen evidence, editable outputs · <a href="zh.html">中文</a></footer></body></html>
|
office-models.js
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import * as THREE from "three";
|
| 2 |
+
import { GLTFLoader } from "./vendor/three/loaders/GLTFLoader.js";
|
| 3 |
+
import { OrbitControls } from "./vendor/three/controls/OrbitControls.js";
|
| 4 |
+
|
| 5 |
+
const stages = [...document.querySelectorAll(".office-model-stage")];
|
| 6 |
+
const loader = new GLTFLoader();
|
| 7 |
+
const viewers = [];
|
| 8 |
+
let syncingView = false;
|
| 9 |
+
|
| 10 |
+
function syncView(source) {
|
| 11 |
+
if (syncingView || !source.ready) return;
|
| 12 |
+
syncingView = true;
|
| 13 |
+
const sourceTargetOffset = source.controls.target.clone().sub(source.center);
|
| 14 |
+
const sourceCameraOffset = source.camera.position.clone().sub(source.controls.target);
|
| 15 |
+
for (const viewer of viewers) {
|
| 16 |
+
if (viewer === source || !viewer.ready) continue;
|
| 17 |
+
const scale = viewer.radius / source.radius;
|
| 18 |
+
viewer.controls.target.copy(viewer.center).addScaledVector(sourceTargetOffset, scale);
|
| 19 |
+
viewer.camera.position.copy(viewer.controls.target).addScaledVector(sourceCameraOffset, scale);
|
| 20 |
+
viewer.controls.update();
|
| 21 |
+
}
|
| 22 |
+
syncingView = false;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
function mount(stage) {
|
| 26 |
+
if (stage.dataset.loaded) return;
|
| 27 |
+
stage.dataset.loaded = "true";
|
| 28 |
+
|
| 29 |
+
const scene = new THREE.Scene();
|
| 30 |
+
scene.background = new THREE.Color(0xe9ede5);
|
| 31 |
+
|
| 32 |
+
const camera = new THREE.PerspectiveCamera(38, 1, 0.01, 500);
|
| 33 |
+
const renderer = new THREE.WebGLRenderer({ antialias: true, powerPreference: "high-performance" });
|
| 34 |
+
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 1.5));
|
| 35 |
+
renderer.outputColorSpace = THREE.SRGBColorSpace;
|
| 36 |
+
renderer.toneMapping = THREE.ACESFilmicToneMapping;
|
| 37 |
+
renderer.toneMappingExposure = 1.05;
|
| 38 |
+
stage.replaceChildren(renderer.domElement);
|
| 39 |
+
|
| 40 |
+
scene.add(new THREE.HemisphereLight(0xffffff, 0x8b948c, 2.2));
|
| 41 |
+
const sun = new THREE.DirectionalLight(0xfff4dc, 2.8);
|
| 42 |
+
sun.position.set(8, 14, 10);
|
| 43 |
+
scene.add(sun);
|
| 44 |
+
|
| 45 |
+
const controls = new OrbitControls(camera, renderer.domElement);
|
| 46 |
+
controls.enableDamping = true;
|
| 47 |
+
controls.dampingFactor = 0.08;
|
| 48 |
+
controls.screenSpacePanning = true;
|
| 49 |
+
const viewer = {
|
| 50 |
+
stage,
|
| 51 |
+
camera,
|
| 52 |
+
controls,
|
| 53 |
+
center: new THREE.Vector3(),
|
| 54 |
+
radius: 1,
|
| 55 |
+
ready: false,
|
| 56 |
+
};
|
| 57 |
+
const zh = document.documentElement.lang.startsWith("zh");
|
| 58 |
+
const toolbar = document.createElement("div");
|
| 59 |
+
toolbar.style.cssText = "position:absolute;top:10px;left:10px;display:flex;gap:8px;z-index:1";
|
| 60 |
+
const reset = document.createElement("button");
|
| 61 |
+
reset.type = "button";
|
| 62 |
+
reset.textContent = zh ? "重置视角" : "Reset view";
|
| 63 |
+
const cutaway = document.createElement("button");
|
| 64 |
+
cutaway.type = "button";
|
| 65 |
+
cutaway.textContent = zh ? "剖切视图" : "Cutaway";
|
| 66 |
+
cutaway.setAttribute("aria-pressed", "true");
|
| 67 |
+
for (const button of [reset, cutaway]) {
|
| 68 |
+
button.style.cssText = "padding:6px 10px;border:1px solid #bdcbbf;border-radius:4px;background:#fffffff0;color:#196451;font:12px sans-serif;cursor:pointer";
|
| 69 |
+
toolbar.append(button);
|
| 70 |
+
}
|
| 71 |
+
stage.append(toolbar);
|
| 72 |
+
let sectionPlane;
|
| 73 |
+
let initialDistance = 1;
|
| 74 |
+
let previousAspect = 1;
|
| 75 |
+
const direction = new THREE.Vector3(0.45, 1, 0.65).normalize();
|
| 76 |
+
const resetView = () => {
|
| 77 |
+
if (!viewer.ready) return;
|
| 78 |
+
const damping = controls.enableDamping;
|
| 79 |
+
controls.enableDamping = false;
|
| 80 |
+
controls.update();
|
| 81 |
+
controls.target.copy(viewer.center);
|
| 82 |
+
camera.position.copy(viewer.center).addScaledVector(direction, initialDistance);
|
| 83 |
+
controls.update();
|
| 84 |
+
controls.enableDamping = damping;
|
| 85 |
+
syncView(viewer);
|
| 86 |
+
};
|
| 87 |
+
reset.addEventListener("click", resetView);
|
| 88 |
+
cutaway.addEventListener("click", () => {
|
| 89 |
+
const enabled = cutaway.getAttribute("aria-pressed") !== "true";
|
| 90 |
+
cutaway.setAttribute("aria-pressed", String(enabled));
|
| 91 |
+
renderer.clippingPlanes = enabled && sectionPlane ? [sectionPlane] : [];
|
| 92 |
+
});
|
| 93 |
+
viewers.push(viewer);
|
| 94 |
+
controls.addEventListener("change", () => syncView(viewer));
|
| 95 |
+
|
| 96 |
+
const resize = () => {
|
| 97 |
+
const { width, height } = stage.getBoundingClientRect();
|
| 98 |
+
renderer.setSize(width, height, false);
|
| 99 |
+
camera.aspect = width / height;
|
| 100 |
+
if (viewer.ready) {
|
| 101 |
+
const factor = Math.max(1, 1 / camera.aspect) / Math.max(1, 1 / previousAspect);
|
| 102 |
+
initialDistance *= factor;
|
| 103 |
+
camera.position.sub(controls.target).multiplyScalar(factor).add(controls.target);
|
| 104 |
+
}
|
| 105 |
+
previousAspect = camera.aspect;
|
| 106 |
+
camera.updateProjectionMatrix();
|
| 107 |
+
};
|
| 108 |
+
|
| 109 |
+
loader.load(
|
| 110 |
+
stage.dataset.src,
|
| 111 |
+
({ scene: model }) => {
|
| 112 |
+
scene.add(model);
|
| 113 |
+
const fullBox = new THREE.Box3().setFromObject(model);
|
| 114 |
+
const sectionHeight = fullBox.min.y + (fullBox.max.y - fullBox.min.y) * 0.64;
|
| 115 |
+
const box = new THREE.Box3();
|
| 116 |
+
model.traverse((node) => {
|
| 117 |
+
if (!node.isMesh) return;
|
| 118 |
+
const meshBox = new THREE.Box3().setFromObject(node);
|
| 119 |
+
if (meshBox.min.y > sectionHeight) return;
|
| 120 |
+
meshBox.max.y = Math.min(meshBox.max.y, sectionHeight);
|
| 121 |
+
box.union(meshBox);
|
| 122 |
+
});
|
| 123 |
+
const center = box.getCenter(new THREE.Vector3());
|
| 124 |
+
const size = box.getSize(new THREE.Vector3());
|
| 125 |
+
const radius = box.getBoundingSphere(new THREE.Sphere()).radius;
|
| 126 |
+
center.y = box.min.y + size.y * 0.25;
|
| 127 |
+
viewer.center.copy(center);
|
| 128 |
+
viewer.radius = radius;
|
| 129 |
+
sectionPlane = new THREE.Plane(new THREE.Vector3(0, -1, 0), sectionHeight);
|
| 130 |
+
renderer.clippingPlanes = cutaway.getAttribute("aria-pressed") === "true" ? [sectionPlane] : [];
|
| 131 |
+
initialDistance = radius / Math.sin(THREE.MathUtils.degToRad(camera.fov / 2)) * Math.max(1, 1 / camera.aspect);
|
| 132 |
+
viewer.ready = true;
|
| 133 |
+
camera.near = Math.max(radius / 1000, 0.01);
|
| 134 |
+
camera.far = radius * 20;
|
| 135 |
+
camera.updateProjectionMatrix();
|
| 136 |
+
const readySource = viewers.find((candidate) => candidate !== viewer && candidate.ready);
|
| 137 |
+
if (readySource) syncView(readySource);
|
| 138 |
+
else resetView();
|
| 139 |
+
stage.dataset.ready = "true";
|
| 140 |
+
stage.sceneDiagnostics = () => ({
|
| 141 |
+
ready: viewer.ready,
|
| 142 |
+
camera: camera.position.toArray(),
|
| 143 |
+
target: controls.target.toArray(),
|
| 144 |
+
cutaway: renderer.clippingPlanes.length > 0,
|
| 145 |
+
sectionHeight: sectionPlane.constant,
|
| 146 |
+
bounds: { min: box.min.toArray(), max: box.max.toArray() },
|
| 147 |
+
});
|
| 148 |
+
},
|
| 149 |
+
undefined,
|
| 150 |
+
() => {
|
| 151 |
+
stage.classList.add("is-error");
|
| 152 |
+
stage.insertAdjacentHTML("beforeend", "<p>Model failed to load.</p>");
|
| 153 |
+
},
|
| 154 |
+
);
|
| 155 |
+
|
| 156 |
+
new ResizeObserver(resize).observe(stage);
|
| 157 |
+
resize();
|
| 158 |
+
|
| 159 |
+
renderer.setAnimationLoop(() => {
|
| 160 |
+
controls.update();
|
| 161 |
+
renderer.render(scene, camera);
|
| 162 |
+
});
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
if (stages.length) {
|
| 166 |
+
const observer = new IntersectionObserver(
|
| 167 |
+
(entries) => {
|
| 168 |
+
for (const entry of entries) {
|
| 169 |
+
if (entry.isIntersecting) {
|
| 170 |
+
mount(entry.target);
|
| 171 |
+
observer.unobserve(entry.target);
|
| 172 |
+
}
|
| 173 |
+
}
|
| 174 |
+
},
|
| 175 |
+
{ rootMargin: "300px" },
|
| 176 |
+
);
|
| 177 |
+
stages.forEach((stage) => observer.observe(stage));
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
const syncedVideos = [...document.querySelectorAll("[data-synced-video]")];
|
| 181 |
+
const videoPlay = document.querySelector(".office-video-play");
|
| 182 |
+
const videoProgress = document.querySelector(".office-video-progress");
|
| 183 |
+
const videoTime = document.querySelector(".office-video-time");
|
| 184 |
+
const videoStatus = document.querySelector(".office-video-status");
|
| 185 |
+
|
| 186 |
+
if (syncedVideos.length === 3 && videoPlay && videoProgress && videoTime && videoStatus) {
|
| 187 |
+
const primary = syncedVideos[0];
|
| 188 |
+
const zh = document.documentElement.lang.startsWith("zh");
|
| 189 |
+
const copy = zh ? {
|
| 190 |
+
play: "播放全部三个视频", pause: "暂停全部三个视频",
|
| 191 |
+
ready: "同步播放 · 70.1 秒 · 30 fps", waiting: "正在加载,三个视频就绪后将同步播放…",
|
| 192 |
+
interrupted: "播放已中断,请点击播放继续。",
|
| 193 |
+
failedVideo: (name) => `${name}加载失败,请点击播放重试。`,
|
| 194 |
+
} : {
|
| 195 |
+
play: "Play all three videos", pause: "Pause all three videos",
|
| 196 |
+
ready: "Shared playback · 70.1 seconds · 30 fps", waiting: "Loading — all three videos will start together…",
|
| 197 |
+
interrupted: "Playback was interrupted. Press play to continue.",
|
| 198 |
+
failedVideo: (name) => `Unable to load ${name}. Press play to retry.`,
|
| 199 |
+
};
|
| 200 |
+
let wanted = false;
|
| 201 |
+
let waiting = false;
|
| 202 |
+
let starting = false;
|
| 203 |
+
let generation = 0;
|
| 204 |
+
let targetTime = 0;
|
| 205 |
+
let finished = false;
|
| 206 |
+
let startRetries = 0;
|
| 207 |
+
let retryAt = 0;
|
| 208 |
+
const duration = () => Number.isFinite(primary.duration) ? primary.duration : 70.1;
|
| 209 |
+
const formatTime = (seconds) => {
|
| 210 |
+
const safe = Number.isFinite(seconds) ? seconds : 0;
|
| 211 |
+
return `${String(Math.floor(safe / 60)).padStart(2, "0")}:${String(Math.floor(safe % 60)).padStart(2, "0")}`;
|
| 212 |
+
};
|
| 213 |
+
const updateProgress = () => {
|
| 214 |
+
const time = waiting ? targetTime : primary.currentTime;
|
| 215 |
+
if (!videoProgress.matches(":active")) videoProgress.value = String((time / duration()) * 1000);
|
| 216 |
+
videoTime.textContent = `${formatTime(time)} / ${formatTime(duration())}`;
|
| 217 |
+
videoProgress.setAttribute("aria-valuetext", videoTime.textContent);
|
| 218 |
+
};
|
| 219 |
+
const setPlaying = (playing) => {
|
| 220 |
+
videoPlay.textContent = playing ? "❚❚" : "▶";
|
| 221 |
+
videoPlay.setAttribute("aria-label", playing ? copy.pause : copy.play);
|
| 222 |
+
videoPlay.setAttribute("aria-pressed", String(playing));
|
| 223 |
+
};
|
| 224 |
+
const pauseAll = () => syncedVideos.forEach((video) => {
|
| 225 |
+
video.pause();
|
| 226 |
+
video.playbackRate = 1;
|
| 227 |
+
});
|
| 228 |
+
const align = () => syncedVideos.forEach((video) => {
|
| 229 |
+
if (Number.isFinite(video.duration) && Math.abs(video.currentTime - targetTime) > 0.04) {
|
| 230 |
+
video.currentTime = Math.min(targetTime, video.duration);
|
| 231 |
+
}
|
| 232 |
+
});
|
| 233 |
+
const stop = (message = copy.ready) => {
|
| 234 |
+
wanted = waiting = starting = false;
|
| 235 |
+
generation += 1;
|
| 236 |
+
pauseAll();
|
| 237 |
+
setPlaying(false);
|
| 238 |
+
videoStatus.textContent = message;
|
| 239 |
+
updateProgress();
|
| 240 |
+
};
|
| 241 |
+
const ready = () => syncedVideos.every((video) => !video.seeking && video.readyState >= 3);
|
| 242 |
+
const bufferedAhead = (video) => {
|
| 243 |
+
for (let i = 0; i < video.buffered.length; i += 1) {
|
| 244 |
+
if (video.buffered.start(i) <= video.currentTime + 0.05 && video.buffered.end(i) > video.currentTime) {
|
| 245 |
+
return video.buffered.end(i) - video.currentTime;
|
| 246 |
+
}
|
| 247 |
+
}
|
| 248 |
+
return 0;
|
| 249 |
+
};
|
| 250 |
+
// Some browsers stop preloading after a small byte budget. Let an idle
|
| 251 |
+
// decoder start so play() can resume the download; active downloads can
|
| 252 |
+
// build a buffer first. This also avoids a play/pause loop on slow links.
|
| 253 |
+
const buffered = () => syncedVideos.every((video) => {
|
| 254 |
+
// A paused decoder may stay at HAVE_CURRENT_DATA until play() is called,
|
| 255 |
+
// even with future bytes buffered. Requiring canplay here can deadlock.
|
| 256 |
+
if (video.seeking || video.error || video.readyState < HTMLMediaElement.HAVE_CURRENT_DATA) return false;
|
| 257 |
+
if (video.networkState === HTMLMediaElement.NETWORK_IDLE) return true;
|
| 258 |
+
return bufferedAhead(video) >= Math.min(0.5, Math.max(0, video.duration - video.currentTime - 0.05));
|
| 259 |
+
});
|
| 260 |
+
const resume = async () => {
|
| 261 |
+
if (!wanted || !waiting || starting || performance.now() < retryAt || !buffered()) return;
|
| 262 |
+
const attempt = ++generation;
|
| 263 |
+
waiting = false;
|
| 264 |
+
starting = true;
|
| 265 |
+
const results = await Promise.allSettled(syncedVideos.map((video) => video.play()));
|
| 266 |
+
if (attempt !== generation) return;
|
| 267 |
+
starting = false;
|
| 268 |
+
const rejected = results.find((result) => result.status === "rejected");
|
| 269 |
+
if (rejected) {
|
| 270 |
+
// pause(), seeking and load() can cancel play() without a media failure.
|
| 271 |
+
const mediaFailure = syncedVideos.find((video) => video.error);
|
| 272 |
+
if (!mediaFailure && rejected.reason?.name === "AbortError" && startRetries < 2) {
|
| 273 |
+
startRetries += 1;
|
| 274 |
+
targetTime = Math.min(...syncedVideos.map((video) => video.currentTime));
|
| 275 |
+
pauseAll();
|
| 276 |
+
align();
|
| 277 |
+
waiting = true;
|
| 278 |
+
retryAt = performance.now() + 250;
|
| 279 |
+
videoStatus.textContent = copy.waiting;
|
| 280 |
+
return;
|
| 281 |
+
}
|
| 282 |
+
stop(mediaFailure ? copy.failedVideo(mediaFailure.getAttribute("aria-label")) : copy.interrupted);
|
| 283 |
+
return;
|
| 284 |
+
}
|
| 285 |
+
startRetries = 0;
|
| 286 |
+
videoStatus.textContent = copy.ready;
|
| 287 |
+
};
|
| 288 |
+
const hold = (time = primary.currentTime) => {
|
| 289 |
+
generation += 1;
|
| 290 |
+
starting = false;
|
| 291 |
+
waiting = true;
|
| 292 |
+
targetTime = time;
|
| 293 |
+
pauseAll();
|
| 294 |
+
align();
|
| 295 |
+
if (wanted) videoStatus.textContent = copy.waiting;
|
| 296 |
+
updateProgress();
|
| 297 |
+
void resume();
|
| 298 |
+
};
|
| 299 |
+
const waitForBuffer = () => hold(Math.min(...syncedVideos.map((video) => video.currentTime)));
|
| 300 |
+
|
| 301 |
+
syncedVideos.forEach((video) => {
|
| 302 |
+
video.muted = true;
|
| 303 |
+
video.playsInline = true;
|
| 304 |
+
for (const event of ["loadedmetadata", "loadeddata", "canplay", "seeked", "progress"]) {
|
| 305 |
+
video.addEventListener(event, () => {
|
| 306 |
+
if (waiting) align();
|
| 307 |
+
updateProgress();
|
| 308 |
+
void resume();
|
| 309 |
+
});
|
| 310 |
+
}
|
| 311 |
+
video.addEventListener("waiting", () => {
|
| 312 |
+
if (wanted && !waiting && !ready()) waitForBuffer();
|
| 313 |
+
});
|
| 314 |
+
video.addEventListener("error", () => {
|
| 315 |
+
// Ignore an old queued error after a successful load() retry.
|
| 316 |
+
if (video.error) stop(copy.failedVideo(video.getAttribute("aria-label")));
|
| 317 |
+
});
|
| 318 |
+
video.addEventListener("ended", () => {
|
| 319 |
+
if (!wanted) return;
|
| 320 |
+
finished = true;
|
| 321 |
+
const end = duration();
|
| 322 |
+
stop();
|
| 323 |
+
// Seeking exactly to duration may wrap a WebKit decoder back to zero.
|
| 324 |
+
syncedVideos.forEach((peer) => {
|
| 325 |
+
if (Math.abs(peer.currentTime - end) > 0.08) peer.currentTime = Math.max(0, end - 1 / 30);
|
| 326 |
+
});
|
| 327 |
+
updateProgress();
|
| 328 |
+
});
|
| 329 |
+
});
|
| 330 |
+
videoProgress.addEventListener("input", () => {
|
| 331 |
+
finished = false;
|
| 332 |
+
hold((Number(videoProgress.value) / 1000) * duration());
|
| 333 |
+
});
|
| 334 |
+
videoPlay.addEventListener("click", () => {
|
| 335 |
+
if (wanted) {
|
| 336 |
+
stop();
|
| 337 |
+
return;
|
| 338 |
+
}
|
| 339 |
+
wanted = true;
|
| 340 |
+
startRetries = 0;
|
| 341 |
+
retryAt = 0;
|
| 342 |
+
setPlaying(true);
|
| 343 |
+
syncedVideos.forEach((video) => {
|
| 344 |
+
video.preload = "auto";
|
| 345 |
+
if (video.error || video.networkState === HTMLMediaElement.NETWORK_NO_SOURCE) video.load();
|
| 346 |
+
});
|
| 347 |
+
const time = waiting ? targetTime : primary.currentTime;
|
| 348 |
+
const replay = finished || syncedVideos.some((video) => video.ended) || time >= duration() - 0.08;
|
| 349 |
+
finished = false;
|
| 350 |
+
hold(replay ? 0 : time);
|
| 351 |
+
});
|
| 352 |
+
document.addEventListener("visibilitychange", () => {
|
| 353 |
+
if (document.hidden) stop();
|
| 354 |
+
});
|
| 355 |
+
const tick = () => {
|
| 356 |
+
if (wanted && waiting) void resume();
|
| 357 |
+
if (wanted && !waiting && !starting) {
|
| 358 |
+
if (!ready()) {
|
| 359 |
+
waitForBuffer();
|
| 360 |
+
} else {
|
| 361 |
+
for (const video of syncedVideos.slice(1)) {
|
| 362 |
+
const drift = video.currentTime - primary.currentTime;
|
| 363 |
+
if (Math.abs(drift) > 0.12) {
|
| 364 |
+
hold();
|
| 365 |
+
break;
|
| 366 |
+
}
|
| 367 |
+
// Small rate adjustments avoid repeated seeks for sub-frame drift.
|
| 368 |
+
video.playbackRate = Math.abs(drift) > 0.025 ? (drift > 0 ? 0.96 : 1.04) : 1;
|
| 369 |
+
}
|
| 370 |
+
}
|
| 371 |
+
}
|
| 372 |
+
updateProgress();
|
| 373 |
+
requestAnimationFrame(tick);
|
| 374 |
+
};
|
| 375 |
+
requestAnimationFrame(tick);
|
| 376 |
+
updateProgress();
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
const officeExternalSlot = document.querySelector('#office-external-slot');
|
| 380 |
+
for (const button of document.querySelectorAll('[data-office-external]')) {
|
| 381 |
+
button.addEventListener('click', () => {
|
| 382 |
+
const source = button.dataset.officeExternal;
|
| 383 |
+
if (!['https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en', 'https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en'].includes(source)) return;
|
| 384 |
+
const frame = document.createElement('iframe');
|
| 385 |
+
frame.src = source;
|
| 386 |
+
frame.lang = 'en';
|
| 387 |
+
frame.title = source.includes('/shake') ? 'Office Café shake experiment — English requested' : 'Office Café interactive model — English requested';
|
| 388 |
+
frame.allow = 'fullscreen';
|
| 389 |
+
frame.allowFullscreen = true;
|
| 390 |
+
frame.referrerPolicy = 'no-referrer';
|
| 391 |
+
frame.setAttribute('sandbox', 'allow-scripts allow-same-origin allow-pointer-lock');
|
| 392 |
+
officeExternalSlot.replaceChildren(frame);
|
| 393 |
+
officeExternalSlot.hidden = false;
|
| 394 |
+
});
|
| 395 |
+
}
|
office.css
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.office-model-grid,
|
| 2 |
+
.office-video-grid {
|
| 3 |
+
display: grid;
|
| 4 |
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
| 5 |
+
gap: 20px;
|
| 6 |
+
margin: 28px 0;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
.office-external-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
|
| 10 |
+
.office-external-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
|
| 11 |
+
.office-external-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
|
| 12 |
+
.office-external-card figcaption { padding: 14px; margin: 0; }
|
| 13 |
+
.office-external-card button { max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--green); font: inherit; cursor: pointer; }
|
| 14 |
+
.office-external-note { font-size: 12px; color: var(--muted); }
|
| 15 |
+
.office-external-slot iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
|
| 16 |
+
@media (max-width: 700px) { .office-external-grid { grid-template-columns: 1fr; } .office-external-slot iframe { height: 460px; } }
|
| 17 |
+
|
| 18 |
+
.office-model-card,
|
| 19 |
+
.office-video-card {
|
| 20 |
+
margin: 0;
|
| 21 |
+
overflow: hidden;
|
| 22 |
+
border: 1px solid var(--line);
|
| 23 |
+
border-radius: 6px;
|
| 24 |
+
background: var(--white);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.office-model-stage {
|
| 28 |
+
position: relative;
|
| 29 |
+
width: 100%;
|
| 30 |
+
aspect-ratio: 4 / 3;
|
| 31 |
+
overflow: hidden;
|
| 32 |
+
background: #e9ede5;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.office-model-stage canvas {
|
| 36 |
+
display: block;
|
| 37 |
+
width: 100%;
|
| 38 |
+
height: 100%;
|
| 39 |
+
touch-action: none;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.office-model-card figcaption,
|
| 43 |
+
.office-video-card figcaption {
|
| 44 |
+
margin: 0;
|
| 45 |
+
padding: 14px 16px 16px;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.office-model-card figcaption strong,
|
| 49 |
+
.office-video-card figcaption strong {
|
| 50 |
+
display: block;
|
| 51 |
+
margin-bottom: 4px;
|
| 52 |
+
color: var(--ink);
|
| 53 |
+
font-size: 14px;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.office-model-card figcaption span,
|
| 57 |
+
.office-video-card figcaption span {
|
| 58 |
+
display: block;
|
| 59 |
+
line-height: 1.55;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.office-video-card video {
|
| 63 |
+
display: block;
|
| 64 |
+
width: 100%;
|
| 65 |
+
aspect-ratio: 16 / 9;
|
| 66 |
+
background: #111;
|
| 67 |
+
object-fit: cover;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.office-video-card-wide {
|
| 71 |
+
grid-column: 1 / -1;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.office-video-sync {
|
| 75 |
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 76 |
+
margin-bottom: 0;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.office-video-status {
|
| 80 |
+
grid-column: 1 / -1;
|
| 81 |
+
margin: 0;
|
| 82 |
+
color: var(--muted);
|
| 83 |
+
font-size: 12px;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.office-video-controls {
|
| 87 |
+
display: grid;
|
| 88 |
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
| 89 |
+
gap: 12px;
|
| 90 |
+
align-items: center;
|
| 91 |
+
margin: 0 0 28px;
|
| 92 |
+
padding: 12px 14px;
|
| 93 |
+
border: 1px solid var(--line);
|
| 94 |
+
border-top: 0;
|
| 95 |
+
border-radius: 0 0 6px 6px;
|
| 96 |
+
background: var(--white);
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
.office-video-play {
|
| 100 |
+
width: 38px;
|
| 101 |
+
height: 34px;
|
| 102 |
+
padding: 0;
|
| 103 |
+
color: var(--green);
|
| 104 |
+
border: 1px solid var(--line);
|
| 105 |
+
border-radius: 3px;
|
| 106 |
+
background: var(--paper);
|
| 107 |
+
cursor: pointer;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.office-video-progress {
|
| 111 |
+
width: 100%;
|
| 112 |
+
accent-color: var(--green);
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
.office-video-time {
|
| 116 |
+
color: var(--muted);
|
| 117 |
+
font: 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
|
| 118 |
+
white-space: nowrap;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.office-model-note {
|
| 122 |
+
color: var(--muted);
|
| 123 |
+
font-size: 12px;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
@media (max-width: 700px) {
|
| 127 |
+
.office-model-grid,
|
| 128 |
+
.office-video-grid {
|
| 129 |
+
grid-template-columns: 1fr;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
.office-video-card-wide {
|
| 133 |
+
grid-column: auto;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.office-video-sync {
|
| 137 |
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 138 |
+
gap: 6px;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
.office-video-sync figcaption {
|
| 142 |
+
padding: 8px 6px;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.office-video-sync figcaption strong {
|
| 146 |
+
font-size: 11px;
|
| 147 |
+
overflow-wrap: anywhere;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.office-video-sync figcaption span {
|
| 151 |
+
display: none;
|
| 152 |
+
}
|
| 153 |
+
}
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
playwright>=1.40,<2
|
scene-compare.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import * as THREE from 'three';import {GLTFLoader} from './vendor/three/loaders/GLTFLoader.js';import {OrbitControls} from './vendor/three/controls/OrbitControls.js';import {RoomEnvironment} from './vendor/three/environments/RoomEnvironment.js';
|
| 2 |
+
const panel=document.querySelector('#figure-3');if(panel){const stage=panel.querySelector('.scene-stage'),select=panel.querySelector('#model-select'),mode=panel.querySelector('#scene-mode'),slider=panel.querySelector('#scene-split'),divider=panel.querySelector('.scene-divider'),status=panel.querySelector('.scene-status'),left=panel.querySelector('.scene-label-left'),right=panel.querySelector('.scene-label-right'),zh=document.documentElement.lang.startsWith('zh');let started=false,active=false,renderer,camera,controls,environment,manifest,selectedScene,truthScene,resizeObserver,split=.5,version=0;const cache=new Map();const setStatus=(text,error=false)=>{status.textContent=text;status.hidden=!text;status.classList.toggle('error',error);panel.dataset.state=error?'error':text?'loading':'ready'};
|
| 3 |
+
function render(){if(!renderer||!selectedScene)return;const w=stage.clientWidth,h=stage.clientHeight;renderer.setScissorTest(false);renderer.setViewport(0,0,w,h);renderer.clear();if(mode.value==='single'||select.value==='GT'||!truthScene){renderer.render(selectedScene,camera);return}const x=Math.round(w*split);renderer.setScissorTest(true);renderer.setScissor(0,0,x,h);renderer.render(selectedScene,camera);renderer.setScissor(x,0,w-x,h);renderer.render(truthScene,camera);renderer.setScissorTest(false)}
|
| 4 |
+
function updateMode(){const comparing=mode.value==='compare'&&select.value!=='GT';panel.classList.toggle('is-comparing',comparing);slider.disabled=!comparing;divider.hidden=!comparing;right.hidden=!comparing;left.textContent=select.value;render()}function updateSplit(value){split=Math.max(.02,Math.min(.98,Number(value)/100));slider.value=String(Math.round(split*100));stage.style.setProperty('--split',`${split*100}%`);divider.setAttribute('aria-valuenow',slider.value);render()}
|
| 5 |
+
function resetCamera(){if(!camera||!manifest)return;const v=manifest.camera;controls.target.fromArray(v.target);camera.position.fromArray(v.position).sub(controls.target).multiplyScalar(Math.max(1,1.5/(stage.clientWidth/stage.clientHeight))).add(controls.target);camera.near=v.near;camera.far=v.far;camera.fov=v.fov;camera.updateProjectionMatrix();controls.update();render()}function resize(){if(!renderer)return;const w=stage.clientWidth,h=stage.clientHeight;renderer.setSize(w,h,false);const oldFit=Math.max(1,1.5/camera.aspect);camera.aspect=w/h;if(controls)camera.position.sub(controls.target).multiplyScalar(Math.max(1,1.5/camera.aspect)/oldFit).add(controls.target);camera.updateProjectionMatrix();render()}
|
| 6 |
+
function loadScene(id){if(!cache.has(id)){const promise=new GLTFLoader().loadAsync(manifest.models[id].url).then(gltf=>{const scene=new THREE.Scene();scene.background=new THREE.Color('#e9ede5');scene.environment=environment;scene.add(new THREE.HemisphereLight(0xffffff,0x68746b,2));const sun=new THREE.DirectionalLight(0xffffff,2.3);sun.position.set(12,25,18);scene.add(sun);let hiddenCutaway=0;if(id!=='GT'){const rows=manifest.models[id].runtime_matrix_gltf_y_up;gltf.scene.applyMatrix4(new THREE.Matrix4().set(...rows.flat()));gltf.scene.traverse(node=>{const name=node.name||'',isShell=/(ceiling|roof|wall|facade)/i.test(name),isDetail=/(emblem|art|grass|metal)/i.test(name);if(isShell&&!isDetail){node.visible=false;hiddenCutaway++}})}scene.add(gltf.scene);const bounds=new THREE.Box3().setFromObject(gltf.scene);scene.userData.method=id;scene.userData.hiddenCutaway=hiddenCutaway;scene.userData.bounds={min:bounds.min.toArray(),max:bounds.max.toArray()};return scene}).catch(e=>{cache.delete(id);throw e});cache.set(id,promise)}return cache.get(id)}
|
| 7 |
+
async function selectScene(){if(!manifest)return;const request=++version,id=select.value;setStatus(zh?`正在加载 ${id}…`:`Loading ${id}…`);try{const [model,gt]=await Promise.all([loadScene(id),loadScene('GT')]);if(request!==version)return;selectedScene=model;truthScene=gt;setStatus('');updateMode();panel.dataset.loadedModel=id;panel.dataset.gtLoaded='true'}catch(e){if(request!==version)return;console.error('Scene asset load failed',e);setStatus(zh?'场景加载失败,请重试。':'Scene loading failed. Retry.',true)}}
|
| 8 |
+
async function start(){if(started)return;started=true;try{setStatus(zh?'正在加载对比场景…':'Loading comparison scenes…');const response=await fetch('data/scene_comparison.json', {cache:'no-store'});if(!response.ok)throw Error(`manifest HTTP ${response.status}`);manifest=await response.json();renderer=new THREE.WebGLRenderer({antialias:true});renderer.setPixelRatio(Math.min(devicePixelRatio,1.5));renderer.toneMapping=THREE.ACESFilmicToneMapping;renderer.outputColorSpace=THREE.SRGBColorSpace;renderer.domElement.setAttribute('aria-label',zh?'重建与 GT 三维场景':'Reconstruction and GT 3D scene');renderer.domElement.tabIndex=0;stage.prepend(renderer.domElement);camera=new THREE.PerspectiveCamera(42,1,.05,500);controls=new OrbitControls(camera,renderer.domElement);controls.enableDamping=false;controls.minDistance=1;controls.maxDistance=200;controls.addEventListener('change',render);const pmrem=new THREE.PMREMGenerator(renderer),room=new RoomEnvironment();environment=pmrem.fromScene(room,.04).texture;room.dispose();pmrem.dispose();resizeObserver=new ResizeObserver(resize);resizeObserver.observe(stage);resize();resetCamera();panel.sceneDiagnostics=()=>({selected:select.value,loaded:selectedScene?.userData.method,gtLoaded:!!truthScene,hiddenCutaway:selectedScene?.userData.hiddenCutaway||0,bounds:selectedScene?.userData.bounds,camera:camera.position.toArray(),target:controls.target.toArray(),split,mode:mode.value,singleCamera:true,singleViewport:true,coordinateConversion:manifest.coordinate_conversion,cachedModels:[...cache.keys()]});await selectScene()}catch(e){console.error('Scene comparison initialization failed',e);resizeObserver?.disconnect();controls?.dispose();environment?.dispose();renderer?.dispose();renderer?.domElement.remove();renderer=camera=controls=environment=manifest=undefined;selectedScene=truthScene=undefined;cache.clear();started=false;setStatus(zh?'无法启动三维场景,请重试。':'Unable to start 3D viewer. Retry.',true)}}
|
| 9 |
+
select.addEventListener('change',()=>{updateMode();selectScene()});mode.addEventListener('change',updateMode);slider.addEventListener('input',()=>updateSplit(slider.value));panel.querySelector('#scene-reset').addEventListener('click',resetCamera);panel.querySelector('#scene-retry').addEventListener('click',()=>manifest&&renderer?selectScene():start());divider.addEventListener('pointerdown',e=>{e.preventDefault();active=true;divider.setPointerCapture(e.pointerId);if(controls)controls.enabled=false});divider.addEventListener('pointermove',e=>{if(!active)return;const b=stage.getBoundingClientRect();updateSplit((e.clientX-b.left)/b.width*100)});const stop=()=>{active=false;if(controls)controls.enabled=true};divider.addEventListener('pointerup',stop);divider.addEventListener('pointercancel',stop);divider.addEventListener('keydown',e=>{const d={ArrowLeft:-2,ArrowRight:2,PageDown:-10,PageUp:10};if(e.key in d){e.preventDefault();updateSplit(split*100+d[e.key])}});updateSplit(50);updateMode();const lazy=new IntersectionObserver(es=>{if(es.some(e=>e.isIntersecting)){lazy.disconnect();start()}},{rootMargin:'300px'});lazy.observe(panel)}
|
scripts/browser_qa.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Public entry point for optional browser QA."""
|
| 3 |
+
import runpy
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
runpy.run_path(str(Path(__file__).with_name("site_browser_qa.py")), run_name="__main__")
|
scripts/build.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Public entry point for the deterministic site builder."""
|
| 3 |
+
import runpy
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
runpy.run_path(str(Path(__file__).with_name("render.py")), run_name="__main__")
|
scripts/editorial.py
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Bilingual narrative and demo additions around the frozen research article."""
|
| 2 |
+
|
| 3 |
+
from hashlib import sha256
|
| 4 |
+
import json
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
SITE_TITLE = "AWSM: Agentic World Simulation and Mapping"
|
| 8 |
+
BASE_URL = "https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"
|
| 9 |
+
BIBTEX = r"""@misc{awsm_2026,
|
| 10 |
+
title = {{AWSM}: Agentic World Simulation and Mapping},
|
| 11 |
+
author = {{Phygital AI}},
|
| 12 |
+
year = {2026},
|
| 13 |
+
howpublished = {Interactive research article},
|
| 14 |
+
url = {https://phygital-ai.github.io/agentic-world-simulation-and-mapping/},
|
| 15 |
+
note = {Reconstruction benchmarks, editable scene assets, and map-based embodied demonstration}
|
| 16 |
+
}
|
| 17 |
+
"""
|
| 18 |
+
|
| 19 |
+
REFERENCES = [
|
| 20 |
+
("Qin et al. VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator. TRO, 2018.", "https://arxiv.org/abs/1708.03852"),
|
| 21 |
+
("Keetha et al. MapAnything: Universal Feed-Forward Metric 3D Reconstruction. 2025.", "https://arxiv.org/abs/2509.13414"),
|
| 22 |
+
("Zhou et al. Memory Over Maps: 3D Object Localization Without Reconstruction. 2026.", "https://arxiv.org/abs/2603.20530"),
|
| 23 |
+
("Yang et al. 3D-Mem: 3D Scene Memory for Embodied Exploration and Reasoning. 2024.", "https://arxiv.org/abs/2411.17735"),
|
| 24 |
+
("Khanna et al. GOAT-Bench: A Benchmark for Multi-Modal Lifelong Navigation. CVPR, 2024.", "https://arxiv.org/abs/2404.06609"),
|
| 25 |
+
("ConceptGraphs: Open-Vocabulary 3D Scene Graphs for Perception and Planning. ICRA, 2024.", "https://arxiv.org/abs/2309.16650"),
|
| 26 |
+
("Clio: Real-time Task-Driven Open-Set 3D Scene Graphs. RA-L, 2024.", "https://arxiv.org/abs/2404.13696"),
|
| 27 |
+
]
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def reconstruction_reductions():
|
| 31 |
+
tables = json.loads((Path(__file__).resolve().parents[1] / "data/tables_1_7.json").read_text())["tables"]
|
| 32 |
+
reductions = []
|
| 33 |
+
for table, field in (("table3", "bidirectional_mean_m"), ("table2", "model_depth_absrel")):
|
| 34 |
+
methods = {row["method"]: row[field] for row in tables[table]}
|
| 35 |
+
reductions.append(100 * (methods["M1"] - methods["M4"]) / methods["M1"])
|
| 36 |
+
return tuple(reductions)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def narrative_copy(copy, en):
|
| 40 |
+
surface_reduction, depth_reduction = reconstruction_reductions()
|
| 41 |
+
copy["metric1_reduction"] = f"≈{surface_reduction:.0f}% relative reduction · M1 → M4" if en else f"相对降低约 {surface_reduction:.0f}% · M1 → M4"
|
| 42 |
+
copy["metric2_reduction"] = f"≈{depth_reduction:.0f}% relative reduction · M1 → M4" if en else f"相对降低约 {depth_reduction:.0f}% · M1 → M4"
|
| 43 |
+
copy["metric_scope"] = "Single-scene M1 → M4 diagnostic comparison: M1 uses GT-assisted Sim(3) alignment; M4 uses GT camera poses. Relative reductions compare complete pipelines, not IMU alone." if en else "单场景 M1 → M4 诊断性对比:M1 使用真值辅助的 Sim(3) 配准,M4 使用真值相机位姿。相对降幅比较的是完整管线,而非 IMU 的独立贡献。"
|
| 44 |
+
if en:
|
| 45 |
+
copy.update({
|
| 46 |
+
"tldr": f"AWSM uses large-model agents to turn visual observations into editable 3D scenes, grounded in camera-pose and depth estimates—including IMU-informed visual–inertial constraints that tie geometry to physical scale. In one controlled Isaac Sim scene, four reconstruction routes test spatial fidelity, not just visual plausibility. The aligned comparison from RGB-only M1 to GT-pose-conditioned M4 shows ≈{surface_reduction:.0f}% lower bidirectional surface error and ≈{depth_reduction:.0f}% lower model-depth AbsRel across 180 evaluation views. A multi-robot demo then illustrates goal-directed navigation and task execution on the reconstructed map: follow predefined routes to a marked reception desk and line up there. Next steps are higher efficiency and accuracy, reusable simulation-ready assets, and deeper integration with phygital agents for persistent spatial memory, object search, and interaction.",
|
| 47 |
+
"intro1": "Agentic reconstruction uses a large model to inspect observations, call modeling tools, and iteratively build and check an editable scene. The challenge is not only to produce a convincing room, but to preserve the scale, shape, and spatial relationships that make it useful beyond rendering. AWSM asks how geometric evidence can constrain this process so that its outputs become more faithful spatial references for downstream agents.",
|
| 48 |
+
"motivation_title": "From plausible reconstruction to a usable spatial reference",
|
| 49 |
+
"motivation1": "A reconstruction agent can assemble a plausible room while getting a corner, distance, or passage wrong. For an embodied agent, those are not merely visual defects: they change where a destination lies and which route a body can follow. Geometry grounding means constraining the modeling process with pose, depth, and metric evidence where available, rather than relying on visual plausibility alone. The question is how those constraints survive the conversion from observations into editable objects.",
|
| 50 |
+
"motivation2": "The reception-desk task makes this connection concrete: mark a destination in the reconstructed map, specify routes, and execute them with robot controllers. We use ‘scene representation’ for the editable objects and geometry, ‘map’ for their navigation role, and ‘simulation assets’ for their integration into a simulator. The ‘world’ in AWSM refers to this reusable spatial environment, not a learned dynamics predictor. A persistent spatial foundation connecting navigation, memory, interaction, and simulation is the longer-term goal; the experiments and demo examine its geometric basis and one downstream use.",
|
| 51 |
+
"contributions": [
|
| 52 |
+
"A four-route study of geometry-grounded agentic reconstruction, keeping the scene, 180 RGB identities, modeling objective, and editable output format fixed while comparing complete pipelines with different geometric evidence.",
|
| 53 |
+
"An evaluation protocol that separates trajectory error, native depth, final-scene depth, surface geometry, and rendered appearance, with frozen Blend/GLB assets, reproducible evaluation subsets, public hashes, and interactive comparisons.",
|
| 54 |
+
"A map-based multi-robot simulation example connecting a reconstructed scene to destination marking, predefined routes, and controller execution. It illustrates downstream use rather than a controlled navigation comparison across reconstruction routes.",
|
| 55 |
+
],
|
| 56 |
+
"method_title": "One agentic workflow, four reconstruction routes",
|
| 57 |
+
"interactive_title": "Inspect the reconstructed scenes, not just aggregate scores",
|
| 58 |
+
"discussion_title": "What geometric grounding changes—and what it does not",
|
| 59 |
+
"positioning": "AWSM connects two roles: an agent that constructs an editable scene, and downstream agents that use it as a spatial reference. SLAM and visual-inertial estimation supply pose and metric constraints; ViPE and Depth Anything 3 contribute geometric observations. Concurrent work AHa-3D explores video-driven, tool-based Real2Sim, including camera and 3D-reference estimation from video. Our emphasis is geometric grounding: bringing additional physical measurements, especially IMU-informed visual-inertial pose and metric constraints, into agentic scene construction rather than relying on video-derived evidence alone. The four-route comparison tests reconstruction systems, not the isolated effect of IMU; the demo illustrates a map-based application, not a complete autonomous embodied system.",
|
| 60 |
+
})
|
| 61 |
+
copy["method_intro"] = "The reconstruction agent follows a shared observe–build–verify loop: inspect the available evidence, write Blender Python to construct objects, render review views, and revise the scene before freezing it for evaluation. This tool-using modeling process is what ‘agentic’ describes here; the downstream robot controllers have a separate role."
|
| 62 |
+
copy["limits"].extend([
|
| 63 |
+
"The reception-desk demo is map-based simulation execution, not a controlled comparison of navigation across M1–M4. Routes are predefined and localization uses simulator pose; see the demo protocol for scope.",
|
| 64 |
+
"Multimodal memory, long-term map maintenance, and reduced policy sim-to-real gap are research goals, not measured outcomes of the four-robot demo. The Office Café corner observation has no matched-view quantitative GT measurement here.",
|
| 65 |
+
"Historical downstream documentation describes the same M4 Blend hash using a different depth frontend. The frozen tables and assets are retained unchanged; their upstream naming needs reconciliation before attributing historical task outcomes to DA3. See the provenance note.",
|
| 66 |
+
])
|
| 67 |
+
copy["office1"] += " An author-observed failure—a curved real-world corner simplified into a square one—motivates separating local shape from global scale. A correct scale alone cannot repair that shape error; this is a qualitative observation, not another measured benchmark."
|
| 68 |
+
else:
|
| 69 |
+
copy.update({
|
| 70 |
+
"tldr": f"AWSM 让大模型智能体将视觉观测转化为可编辑的 3D 场景,并以估计的相机位姿与深度进行几何锚定,其中包括融合 IMU 的视觉惯性约束,将几何与真实物理尺度绑定。在一个受控的 Isaac Sim 场景中,四条重建路线检验的不只是视觉合理性,更是空间忠实度:经配准的纯 RGB 路线 M1 与真值位姿条件路线 M4 对比,双向表面误差降低约 {surface_reduction:.0f}%,180 个评估视角上的模型深度绝对相对误差(AbsRel)降低约 {depth_reduction:.0f}%。多机器人 demo 进一步展示基于重建地图的目标导航与任务执行:沿预设路线前往地图上已标记的前台,并在那里排队。下一步是提升效率与精度、形成可复用的仿真就绪资产,并进一步与虚实融合智能体(phygital agents)集成,支持持久空间记忆、寻物与交互。",
|
| 71 |
+
"intro1": "Agentic 重建由大模型检查观测、调用建模工具,并迭代构建和验证可编辑场景。挑战不只是生成一个令人信服的房间,还在于保留尺度、形状与空间关系,让结果在渲染之外仍然有用。AWSM 研究如何用几何证据约束这一过程,让输出成为下游智能体更忠实的空间参照。",
|
| 72 |
+
"motivation_title": "从看起来合理的重建,到可以使用的空间参照",
|
| 73 |
+
"motivation1": "负责重建的智能体可以搭建一个看似合理的房间,却重建错转角、距离或通道。对具身智能体而言,这些不只是视觉缺陷,还会改变目标的位置与身体可以通过的路线。几何锚定,是在信息可用时以位姿、深度与米制证据约束建模过程,而非仅依赖视觉合理性。关键问题是:这些约束如何在观测转化为可编辑对象的过程中得到保留?",
|
| 74 |
+
"motivation2": "前台任务让这种联系变得具体:在重建地图中标记目标、设定路线,再由机器人控制器执行。本文用“场景表示”指可编辑的对象与几何,用“地图”描述它在导航中的作用,用“仿真资产”描述它与仿真器的集成。AWSM 中的“世界”指这种可复用的空间环境,而非学习得到的动力学预测模型。连接导航、记忆、交互与仿真的持久空间基础是长期目标;当前实验和 demo 分别研究其几何基础,并展示一种下游用途。",
|
| 75 |
+
"contributions": [
|
| 76 |
+
"对几何锚定的 agentic 重建开展四路线研究:固定场景、同一组 180 帧 RGB 输入、建模目标与可编辑输出格式,比较具有不同几何证据的完整管线。",
|
| 77 |
+
"将轨迹误差、原生深度、最终场景深度、表面几何和渲染外观分开评测,并提供冻结 Blend/GLB 资产、可复现评测子集、公开哈希与交互式对照。",
|
| 78 |
+
"通过基于地图的多机器人仿真示例,将重建场景连接到目标标记、预设路线和控制器执行;它展示下游用途,而非不同重建路线之间的受控导航对比。",
|
| 79 |
+
],
|
| 80 |
+
"method_title": "一个 agentic 工作流,四条重建路线",
|
| 81 |
+
"interactive_title": "不只看汇总指标,也检查重建场景",
|
| 82 |
+
"discussion_title": "几何锚定改变了什么,又没有解决什么",
|
| 83 |
+
"positioning": "AWSM 连接两类角色:负责构建可编辑场景的智能体,以及将它作为空间参照使用的下游智能体。SLAM 与视觉惯性估计提供位姿和米制约束,ViPE 与 Depth Anything 3 提供几何观测。同期工作 AHa-3D 探索视频驱动、工具辅助的 Real2Sim,包括从视频估计相机与三维参照。我们的重点是几何锚定:将额外的物理测量,尤其是融合 IMU 的视觉惯性位姿与米制约束,引入智能体场景构建,而不只依赖视频推断的证据。四路线对比评估的是重建系统,并非 IMU 独立作用的消融实验;demo 展示的是地图应用,而不是完整的自主具身系统。",
|
| 84 |
+
})
|
| 85 |
+
copy["method_intro"] = "负责重建的智能体遵循共同的“观察—构建—验证”循环:检查可用证据,编写 Blender Python 构建对象,渲染检查视图,并在冻结评测前迭代修改。这里的 agentic 指这种工具驱动的建模过程;下游机器人控制器承担另一种角色。"
|
| 86 |
+
copy["limits"].extend([
|
| 87 |
+
"前台 demo 展示基于地图的仿真执行,不是 M1–M4 的受控导航对比。路线预先设定,定位使用仿真器位姿;具体范围见演示条件。",
|
| 88 |
+
"多模态空间记忆、长期地图维护与策略 sim-to-real 差距的降低是研究目标,不是这段四机器人视频已量化的结果。本页也没有 Office Café 拐角的同视角 GT 定量测量。",
|
| 89 |
+
"历史下游文档对同一 M4 Blend 哈希使用了不同的深度前端描述。本页冻结表格与资产保持不变;将旧任务收益归因于 DA3 之前,需要核对上游方法命名,详见来源说明。",
|
| 90 |
+
])
|
| 91 |
+
copy["office1"] += " 作者观察到的一类失败是:真实的弯曲转角被简化成方正结构。它提醒我们区分局部形状与全局尺度——尺度正确并不能自动修复形状错误;这里将其作为定性观察,而非另一组定量结果。"
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def demo_section(en):
|
| 95 |
+
title = "A reconstructed map. A destination. Robots in motion." if en else "一张重建地图,一个目标,一次具身执行。"
|
| 96 |
+
lead = (
|
| 97 |
+
"The demo connects reconstruction to downstream use in NVIDIA Isaac Sim. The reception desk is marked in the navigation map, routes are specified, and a drone, humanoid, quadruped, and wheeled robot execute the task. The same spatial reference connects a destination, route constraints, and motion control: a scene to inspect becomes a map to act with."
|
| 98 |
+
if en else
|
| 99 |
+
"这个 demo 在 NVIDIA Isaac Sim 中将重建连接到下游使用:在导航地图中标出前台,设定路线,再让无人机、人形、四足和轮式机器人执行任务。同一个空间参照连接目标、路径约束与运动控制:从可以查看的重建场景,走向可以用于行动的地图。"
|
| 100 |
+
)
|
| 101 |
+
command = "Send the robots to the reception desk and have them line up there." if en else "让机器人前往前台,并在那里排成一列。"
|
| 102 |
+
labels = ("Task instruction", "Locate the reception desk", "Set routes on the map", "Execute with controllers") if en else ("任务指令", "地图上定位前台", "设定导航路线", "控制器执行")
|
| 103 |
+
steps = "".join(f'<li><span>{index:02d}</span>{label}</li>' for index, label in enumerate(labels, 1))
|
| 104 |
+
caption = (
|
| 105 |
+
"Map-based navigation in simulation · predefined routes · simulator-pose feedback. The authors confirm that the demonstration has been manually reviewed."
|
| 106 |
+
if en else
|
| 107 |
+
"基于重建地图的仿真导航 · 预设路线 · 仿真器位姿反馈。作者确认,本演示已完成人工审阅。"
|
| 108 |
+
)
|
| 109 |
+
details = (
|
| 110 |
+
'<p>The instruction above describes the intended task, not a demonstrated language-to-plan parser. Routes were manually specified and screened against both the M4 reconstructed map and original geometry. This is not a reconstruction-only planning benchmark.</p>'
|
| 111 |
+
'<p>The 156-second presentation edit plays at 1×: Scene (0–6s), Reconstruction (6–12s), Planned route (12–18s), and Navigation (18–156s). Navigation uses the new run <code>20260930-214924</code>; the opening 12.32 seconds of waiting are omitted, and the later terminal hold is outside this cut. The map is a static route design, not a measured execution trace.</p>'
|
| 112 |
+
'<p>This demo does not evaluate online visual localization, learned instruction understanding, memory retrieval, or real-robot transfer. Those are separate capabilities; the map-based execution shown here remains the intended demonstration.</p>'
|
| 113 |
+
if en else
|
| 114 |
+
'<p>上方指令说明任务意图,不代表本次演示实现了语言到计划的自动解析。路线人工设定,并同时参考 M4 重建地图和原始几何筛选;这不是只依赖重建图的规划 benchmark。</p>'
|
| 115 |
+
'<p>成片为 156 秒、1× 原速:场景(0–6秒)、重建(6–12秒)、路线设计(12–18秒)、导航(18–156秒)。导航来自新运行 <code>20260930-214924</code>,略去开头等待的 12.32 秒,后续终点保持过程不在本剪辑中。地图是静态路线设计图,不是实测执行轨迹。</p>'
|
| 116 |
+
'<p>本 demo 不评测在线视觉定位、学习型指令理解、记忆检索或真实机器人迁移。这些是独立能力,不改变本演示所表达的“利用重建地图执行导航任务”。</p>'
|
| 117 |
+
)
|
| 118 |
+
return f'''<section id="embodied-demo" class="embodied-demo">
|
| 119 |
+
<p class="section-tag">DEMO / MAP-BASED EMBODIED EXECUTION</p><h2>{title}</h2><p>{lead}</p>
|
| 120 |
+
<blockquote class="mission-command"><span>{"Task intent: " if en else "任务意图:"}</span>{command}</blockquote>
|
| 121 |
+
<ol class="mission-flow" aria-label="{"Task workflow" if en else "任务流程"}">{steps}</ol>
|
| 122 |
+
<figure class="demo-film"><video controls playsinline preload="none" poster="assets/embodied-demo/navigation-214924-poster.png" width="1280" height="720" aria-label="{"Four-robot map-based navigation demonstration" if en else "四机器人地图导航演示"}"><source src="assets/embodied-demo/four-robots-214924-156s-phone.mp4" type="video/mp4">{"Your browser cannot play this video. Use the download link below." if en else "浏览器无法播放此视频,请使用下方下载链接。"}</video><figcaption>{caption}</figcaption></figure>
|
| 123 |
+
<div class="demo-links"><a href="assets/embodied-demo/four-robots-214924-156s-phone.mp4" download>{"Download mobile edition" if en else "下载手机版"} · 11.65 MB · 2:36</a><a href="assets/embodied-demo/four-robots-214924-156s-hd.mp4" download>{"Download HD edition" if en else "下载高清版"} · 49.69 MB · 2:36</a><a href="data/embodied_demo.json">{"Run & media record" if en else "运行与视频记录"} ↗</a></div>
|
| 124 |
+
<figure class="demo-map" id="demo-route-map"><a href="assets/embodied-demo/planned-route-156s.png" target="_blank" rel="noopener"><img loading="lazy" src="assets/embodied-demo/planned-route-156s.png" width="1920" height="1080" alt="{"Planned routes for four robots, with the reception desk and waypoints marked; static design, not execution trajectories" if en else "标出前台与航点的四机器人路线设计图;静态设计,非执行轨迹"}"></a><figcaption><span>{"Navigation map." if en else "导航地图。"}</span> {"The reception desk and planned routes share the reconstructed scene. This is a static design preview, not a recorded trajectory. Open the image to inspect the full-resolution map." if en else "在重建场景中标出前台与规划路线。这是静态设计图,而非实跑轨迹;点击查看原尺寸地图。"}</figcaption></figure>
|
| 125 |
+
<details class="demo-protocol"><summary>{"Demo protocol and scope" if en else "演示条件与范围"}</summary>{details}<p>{"Manual presentation review is separate from the historical automated checks retained below; it does not revise their recorded verdicts." if en else "人工展示审阅与下方保留的历史自动检查属于不同验证层次,不改变其原始判定。"}</p><p><a href="evidence/embodied-demo-audit.json">{"Historical automated check record" if en else "历史自动检查记录"} ↗</a></p></details>
|
| 126 |
+
</section>'''
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def grounding_section(en):
|
| 130 |
+
if en:
|
| 131 |
+
return '''<div id="scale-and-sensors" class="analysis-block grounding-block"><h3>Geometry grounding: scale is necessary, but not sufficient</h3>
|
| 132 |
+
<p>Monocular projection geometry leaves a global scale ambiguity; learned metric depth adds a useful prior, not an independent measurement of every real-world dimension. Calibrated RGB-D, a known baseline or length, and visual-inertial estimation can supply metric constraints. IMU fusion can recover metric motion under sufficient excitation and reliable initialization, bias estimation, synchronization, and calibration. An IMU is not a direct distance sensor, and its presence alone does not guarantee accurate scale.</p>
|
| 133 |
+
<p>Scale, local shape, camera pose, and navigable connectivity must be checked separately. A curved corner simplified into a square cannot be repaired by rescaling alone. Pose-conditioned depth can improve reconstruction, but neither the DA3 ablation nor our M2/M3 results imply that every depth metric improves monotonically. The four routes below are system comparisons, not an isolated IMU ablation.</p>
|
| 134 |
+
<p class="inline-sources"><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">VINS-Mono</a> · <a href="https://arxiv.org/html/2511.10647v1#S7.SS2.SSS3" target="_blank" rel="noopener">DA3 pose-conditioning ablation</a></p></div>'''
|
| 135 |
+
return '''<div id="scale-and-sensors" class="analysis-block grounding-block"><h3>几何锚定:真实尺度是必要约束,但不是全部答案</h3>
|
| 136 |
+
<p>纯单目投影几何存在全局尺度歧义;学习型米制深度提供有用先验,却不是对每个真实尺寸的独立测量。标定 RGB-D、已知基线或长度,以及视觉惯性估计,都可以提供米制约束。IMU 融合能在运动激励充分、初始化、偏置估计、时间同步与标定可靠时恢复米制运动;IMU 不是直接测距传感器,“带 IMU”不等于“尺度一定准确”。</p>
|
| 137 |
+
<p>尺度、局部形状、相机位姿和可通行连通性需要分别检查。弯曲转角被简化成直角,不能只靠缩放修复。位姿条件可以改善深度重建,但 DA3 消融和本文 M2/M3 的结果都不支持“所有深度指标必然同步改善”;下文四条路线是完整系统比较,而非只切换 IMU 的单变量实验。</p>
|
| 138 |
+
<p class="inline-sources"><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">VINS-Mono</a> · <a href="https://arxiv.org/html/2511.10647v1#S7.SS2.SSS3" target="_blank" rel="noopener">DA3 位姿条件消融</a></p></div>'''
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def outlook_section(en):
|
| 142 |
+
if en:
|
| 143 |
+
title = "Toward persistent spaces for phygital agents"
|
| 144 |
+
intro = "The current outputs are editable scene snapshots, and the demo shows a scene-specific simulation integration. The longer-term goal is to make geometry-grounded agentic reconstruction a reusable process for building and maintaining spaces that phygital agents can use. Saving an editable asset is a starting point, not a demonstration of lifelong map maintenance. The directions below extend the present evidence."
|
| 145 |
+
cards = [
|
| 146 |
+
("Navigate", "Use destinations, free space, and body-specific clearance in a shared geometric frame. Better reconstruction can reduce map mismatch; reliable navigation also needs localization and current observations."),
|
| 147 |
+
("Remember & retrieve", "Link object identities and locations to source views so language, images, and past observations can refer to the same place. Retrieval and safe arrival should be evaluated separately."),
|
| 148 |
+
("Interact & maintain", "Edit object properties and relationships, revisit changed areas, and preserve evidence and versions. Persistent memory must distinguish observed geometry, inferred completion, and unknown space."),
|
| 149 |
+
("Simulate & learn", "Move from the current scene-specific integration to reusable simulation-ready exports with checked scale, collision geometry, and physical parameters. These can support task rehearsal, scenario variation, and training; reduced policy sim-to-real gap remains a separate question to test."),
|
| 150 |
+
]
|
| 151 |
+
closing = "A full mesh is not required for every retrieval task: Memory Over Maps uses posed RGB-D keyframes for on-demand localization, while 3D-Mem and task-oriented scene graphs explore complementary memory and representation choices. Our proposed direction is hybrid: preserve visual evidence, refine task-relevant geometry, and build editable simulation assets where they add value. The next question is when an agent has enough evidence to act—and when it should observe again and update its map."
|
| 152 |
+
next_steps = "The immediate agenda is higher reconstruction efficiency and accuracy, reusable simulation-ready scene generation, and deeper integration with phygital agents. Together, these steps connect the reconstruction agent’s modeling and revision loop to the downstream agent’s navigation, memory, and interaction needs."
|
| 153 |
+
label = "RESEARCH DIRECTION"
|
| 154 |
+
else:
|
| 155 |
+
title = "走向虚实融合智能体可持续使用的空间"
|
| 156 |
+
intro = "当前输出是可编辑的场景快照,demo 展示了针对特定场景的仿真集成。长期目标是把几何锚定的 agentic 重建发展为可复用流程,构建并维护虚实融合智能体能够使用的空间。保存可编辑资产是起点,不等于已经验证长期地图维护;以下方向是在当前证据基础上的延伸。"
|
| 157 |
+
cards = [
|
| 158 |
+
("导航", "在同一几何坐标中表达目标、自由空间与不同机器人的通行净空。更忠实的重建可以减少地图失配,可靠导航还需要定位与实时观测。"),
|
| 159 |
+
("记忆与多模态检索", "将对象身份、位置和源视图关联,让语言、图像与过去的观察指向同一个地点。检索到对象与安全到达对象,需要分别评测。"),
|
| 160 |
+
("交互与长期维护", "编辑对象属性与关系,重访变化区域,保留证据和版本。持久记忆应区分实际观察、推断补全和未知空间,而非把所有生成内容都当作事实。"),
|
| 161 |
+
("仿真与学习", "从当前特定场景的集成,走向可复用的仿真就绪导出流程,检查尺度、碰撞几何与物理参数。它可支持任务预演、场景变体和训练;是否降低策略 sim-to-real 差距,仍需单独检验。"),
|
| 162 |
+
]
|
| 163 |
+
closing = "并非每次寻物都需要完整网格:Memory Over Maps 用带位姿 RGB-D 关键帧按需定位,3D-Mem 与任务相关场景图也探索了不同记忆和表示方式。我们主张混合路线:保留视觉证据,细化任务相关几何,在有价值的地方构建可编辑仿真资产。下一步的关键问题是:什么时候证据已经足够支持行动,什么时候 agent 应重新观察并更新地图?"
|
| 164 |
+
next_steps = "近期重点是提升重建效率与精度、形成可复用的仿真就绪场景生成流程,以及进一步与虚实融合智能体集成,让重建智能体的建模与修正循环连接到下游智能体的导航、记忆和交互需求。"
|
| 165 |
+
label = "研究方向"
|
| 166 |
+
items = "".join(f'<div><h4>{name}</h4><p>{text}</p></div>' for name, text in cards)
|
| 167 |
+
return f'''<div id="spatial-foundation" class="analysis-block spatial-foundation"><p class="section-tag">{label}</p><h3>{title}</h3><p>{intro}</p><div class="capability-grid">{items}</div><p>{closing}</p><p>{next_steps}</p><p class="inline-sources"><a href="https://arxiv.org/abs/2603.20530" target="_blank" rel="noopener">Memory Over Maps</a> · <a href="https://arxiv.org/abs/2411.17735" target="_blank" rel="noopener">3D-Mem</a> · <a href="https://arxiv.org/abs/2404.13696" target="_blank" rel="noopener">Clio</a> · <a href="https://arxiv.org/abs/2404.06609" target="_blank" rel="noopener">GOAT-Bench</a></p></div>'''
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def editorial_page(page, en):
|
| 171 |
+
page = page.replace('01 / RESULTS', '01 / OVERVIEW')
|
| 172 |
+
page = page.replace('04 / MORE RESULTS AND ANALYSIS', '04 / RESULTS AND ANALYSIS')
|
| 173 |
+
style_version = sha256((Path(__file__).resolve().parents[1] / "editorial.css").read_bytes()).hexdigest()[:12]
|
| 174 |
+
page = page.replace('<link rel="stylesheet" href="style.css">', f'<link rel="stylesheet" href="style.css"><link rel="stylesheet" href="editorial.css?v={style_version}">')
|
| 175 |
+
base_style_version = sha256((Path(__file__).resolve().parents[1] / "style.css").read_bytes()).hexdigest()[:12]
|
| 176 |
+
page = page.replace('href="style.css"', f'href="style.css?v={base_style_version}"')
|
| 177 |
+
office_version = sha256((Path(__file__).resolve().parents[1] / "office.css").read_bytes()).hexdigest()[:12]
|
| 178 |
+
page = page.replace('</head>', f'<link rel="stylesheet" href="office.css?v={office_version}"></head>')
|
| 179 |
+
for asset in ("app.js", "scene-compare.js", "office-models.js"):
|
| 180 |
+
version = sha256((Path(__file__).resolve().parents[1] / asset).read_bytes()).hexdigest()[:12]
|
| 181 |
+
page = page.replace(f'src="{asset}"', f'src="{asset}?v={version}"')
|
| 182 |
+
if en:
|
| 183 |
+
page = page.replace(f'<link rel="canonical" href="{BASE_URL}index.html">', f'<link rel="canonical" href="{BASE_URL}">')
|
| 184 |
+
page = page.replace(f'hreflang="zh-CN" href="{BASE_URL}index.html"', f'hreflang="zh-CN" href="{BASE_URL}zh.html"')
|
| 185 |
+
page = page.replace(f'hreflang="en" href="{BASE_URL}en.html"', f'hreflang="en" href="{BASE_URL}"')
|
| 186 |
+
page = page.replace('</head>', f'<link rel="alternate" hreflang="x-default" href="{BASE_URL}"></head>')
|
| 187 |
+
page = page.replace('<a href="index.html" ', '<a href="zh.html" ', 1)
|
| 188 |
+
page = page.replace('<a href="en.html" ', '<a href="index.html" ', 1)
|
| 189 |
+
page = page.replace('<a class="brand" href="index.html">ASTRA / WORLD MODELS</a>', '<a class="brand" href="index.html">PHYGITAL AI / AWSM</a>')
|
| 190 |
+
subtitle = 'From real spaces to <strong class="tagline-emphasis">worlds phygital agents can use.</strong>' if en else '把真实空间,变成<strong class="tagline-emphasis">虚实融合智能体可以使用的世界。</strong>'
|
| 191 |
+
pronunciation = 'pronounced “awesome”' if en else '读作 “awesome”'
|
| 192 |
+
brand_note = 'Phygital = physical + digital.' if en else 'Phygital = physical(物理)+ digital(数字),即虚实融合。'
|
| 193 |
+
before_header, header_start, remainder = page.partition('<header>')
|
| 194 |
+
old_header, header_end, after_header = remainder.partition('</header>')
|
| 195 |
+
title_name = "Agentic World Simulation and Mapping" if en else "智能体世界仿真与建图"
|
| 196 |
+
heading = f'<p class="title-name">{title_name}</p><div class="title-lockup"><h1 aria-label="AWSM: {title_name}">AWSM</h1><p class="pronunciation">{pronunciation}</p></div>'
|
| 197 |
+
publication = 'Published <time datetime="2026-10-01">October 1, 2026</time>' if en else '发布于 <time datetime="2026-10-01">2026年10月1日</time>'
|
| 198 |
+
page = before_header + header_start + heading + f'<p class="lead">{subtitle}</p><p class="brand-note">{brand_note}</p><p class="publication-date">{publication}</p>' + header_end + after_header
|
| 199 |
+
page = page.replace('</head>', '<meta property="article:published_time" content="2026-10-01"></head>')
|
| 200 |
+
download_label = "Download BibTeX" if en else "下载 BibTeX 引用"
|
| 201 |
+
page = page.replace('</code></pre></section>', f'</code></pre><a class="citation-download" href="data/awsm.bib" download="awsm.bib">{download_label} <span aria-hidden="true">↓</span></a></section>', 1)
|
| 202 |
+
page = page.replace('<section id="related-work">', demo_section(en) + '\n<section id="related-work">', 1)
|
| 203 |
+
page = page.replace('</section>\n<section id="workflow">', grounding_section(en) + '</section>\n<section id="workflow">', 1)
|
| 204 |
+
page = page.replace('</section>\n<section id="limitations">', outlook_section(en) + '</section>\n<section id="limitations">', 1)
|
| 205 |
+
page = page.replace('href="#related-work">', 'href="#embodied-demo">' + ('Embodied demo' if en else '具身演示') + '</a><a href="#related-work">', 1)
|
| 206 |
+
evidence_link = '<p><a href="evidence/provenance-note.md">' + ('Version and provenance note' if en else '版本与资产来源说明') + ' ↗</a></p>'
|
| 207 |
+
page = page.replace('</section>\n<section id="citation">', evidence_link + '</section>\n<section id="citation">', 1)
|
| 208 |
+
return page.replace('Agentic World · frozen evidence, editable outputs', 'Phygital AI · AWSM · frozen evidence, editable outputs')
|
scripts/publish.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Publish a validated, committed site to the Phygital AI organization."""
|
| 3 |
+
|
| 4 |
+
import json
|
| 5 |
+
import os
|
| 6 |
+
import subprocess
|
| 7 |
+
import sys
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 12 |
+
OWNER = "Phygital-AI"
|
| 13 |
+
REPO = "agentic-world-simulation-and-mapping"
|
| 14 |
+
REMOTE_NAME = "phygital"
|
| 15 |
+
REMOTE_URL = f"https://github.com/{OWNER}/{REPO}.git"
|
| 16 |
+
SITE_URL = f"https://{OWNER.lower()}.github.io/{REPO}/"
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def git(*args):
|
| 20 |
+
return subprocess.run(["git", "-C", str(ROOT), *args], check=True, capture_output=True, text=True).stdout.strip()
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def api(path, method="GET", body=None):
|
| 24 |
+
command = ["gh", "api", path, "--method", method]
|
| 25 |
+
if body is not None:
|
| 26 |
+
command.extend(["--input", "-"])
|
| 27 |
+
result = subprocess.run(command, input=json.dumps(body) if body is not None else None, capture_output=True, text=True)
|
| 28 |
+
try:
|
| 29 |
+
response = json.loads(result.stdout) if result.stdout.strip() else {}
|
| 30 |
+
except json.JSONDecodeError:
|
| 31 |
+
raise SystemExit(f"GitHub API returned an invalid response for {path}")
|
| 32 |
+
return result.returncode, response
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def require_api(path, method="GET", body=None):
|
| 36 |
+
code, response = api(path, method, body)
|
| 37 |
+
if code:
|
| 38 |
+
raise SystemExit(f"GitHub API failed for {path}: {response.get('message', 'request failed')}")
|
| 39 |
+
return response
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def main():
|
| 43 |
+
subprocess.run([sys.executable, str(ROOT / "scripts/render.py"), "--check"], check=True)
|
| 44 |
+
subprocess.run([sys.executable, str(ROOT / "scripts/validate.py")], check=True)
|
| 45 |
+
if git("status", "--porcelain"):
|
| 46 |
+
raise SystemExit("Commit the validated revision before publishing.")
|
| 47 |
+
user = require_api("user")
|
| 48 |
+
if user.get("login") != "Yaofang-Liu":
|
| 49 |
+
raise SystemExit("Authenticate GitHub CLI as Yaofang-Liu before publishing.")
|
| 50 |
+
path = f"repos/{OWNER}/{REPO}"
|
| 51 |
+
code, repository = api(path)
|
| 52 |
+
if code and str(repository.get("status")) == "404":
|
| 53 |
+
repository = require_api(f"orgs/{OWNER}/repos", "POST", {
|
| 54 |
+
"name": REPO,
|
| 55 |
+
"description": "Geometry-grounded agentic scene reconstruction, map-based embodied execution, and persistent spatial representations for memory, interaction, and simulation.",
|
| 56 |
+
"private": False,
|
| 57 |
+
"auto_init": False,
|
| 58 |
+
"homepage": SITE_URL,
|
| 59 |
+
})
|
| 60 |
+
elif code:
|
| 61 |
+
raise SystemExit("Cannot inspect the intended organization repository.")
|
| 62 |
+
if repository.get("full_name") != f"{OWNER}/{REPO}" or repository.get("private") or not repository.get("permissions", {}).get("push"):
|
| 63 |
+
raise SystemExit("Repository identity, visibility, or push permissions do not match the publication target.")
|
| 64 |
+
if REMOTE_NAME not in git("remote").splitlines():
|
| 65 |
+
git("remote", "add", REMOTE_NAME, REMOTE_URL)
|
| 66 |
+
if git("remote", "get-url", REMOTE_NAME) != REMOTE_URL:
|
| 67 |
+
raise SystemExit("Unexpected publication remote; no push attempted.")
|
| 68 |
+
push = subprocess.run([
|
| 69 |
+
"git", "-C", str(ROOT), "-c", "credential.helper=", "-c", "credential.helper=!gh auth git-credential",
|
| 70 |
+
"push", "-u", REMOTE_NAME, "HEAD:main",
|
| 71 |
+
], capture_output=True, text=True, env={**os.environ, "GIT_TERMINAL_PROMPT": "0"})
|
| 72 |
+
if push.returncode:
|
| 73 |
+
raise SystemExit("Non-force push failed. Inspect branch state and GitHub CLI authentication; no forced overwrite was attempted.")
|
| 74 |
+
require_api(path, "PATCH", {"homepage": SITE_URL, "default_branch": "main"})
|
| 75 |
+
code, pages = api(path + "/pages")
|
| 76 |
+
configuration = {"build_type": "legacy", "source": {"branch": "main", "path": "/"}}
|
| 77 |
+
if code and str(pages.get("status")) == "404":
|
| 78 |
+
require_api(path + "/pages", "POST", configuration)
|
| 79 |
+
elif code:
|
| 80 |
+
raise SystemExit("Code pushed, but GitHub Pages configuration could not be inspected.")
|
| 81 |
+
elif pages.get("build_type") != "legacy" or pages.get("source") != configuration["source"]:
|
| 82 |
+
require_api(path + "/pages", "PUT", configuration)
|
| 83 |
+
build_code, build = api(path + "/pages/builds", "POST", {})
|
| 84 |
+
record = {
|
| 85 |
+
"repository": REMOTE_URL.removesuffix(".git"),
|
| 86 |
+
"commit": git("rev-parse", "HEAD"),
|
| 87 |
+
"url": SITE_URL,
|
| 88 |
+
"pages_build_requested": build_code == 0,
|
| 89 |
+
"pages_build_url": build.get("url"),
|
| 90 |
+
}
|
| 91 |
+
(ROOT / ".publication.json").write_text(json.dumps(record, indent=2) + "\n", encoding="utf-8")
|
| 92 |
+
print(json.dumps(record))
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
if __name__ == "__main__":
|
| 96 |
+
main()
|
scripts/render.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Render narrative-only updates without rebuilding any frozen experiment asset."""
|
| 3 |
+
|
| 4 |
+
import argparse
|
| 5 |
+
import hashlib
|
| 6 |
+
import json
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
from site_builder_interactive import academic_page
|
| 10 |
+
from editorial import BIBTEX
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 14 |
+
PUBLIC_ROOT_FILES = (
|
| 15 |
+
".nojekyll",
|
| 16 |
+
"index.html",
|
| 17 |
+
"en.html",
|
| 18 |
+
"zh.html",
|
| 19 |
+
"style.css",
|
| 20 |
+
"editorial.css",
|
| 21 |
+
"office.css",
|
| 22 |
+
"app.js",
|
| 23 |
+
"scene-compare.js",
|
| 24 |
+
"office-models.js",
|
| 25 |
+
)
|
| 26 |
+
PUBLIC_DIRECTORIES = ("assets", "data", "evidence", "models", "vendor")
|
| 27 |
+
GENERATED_MANIFESTS = ("evidence/publication_manifest.json", "evidence/SHA256SUMS")
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def sha256(path):
|
| 31 |
+
return hashlib.sha256(path.read_bytes()).hexdigest()
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def publication_records():
|
| 35 |
+
paths = [ROOT / name for name in PUBLIC_ROOT_FILES]
|
| 36 |
+
for directory in PUBLIC_DIRECTORIES:
|
| 37 |
+
paths.extend(path for path in (ROOT / directory).rglob("*") if path.is_file())
|
| 38 |
+
return [
|
| 39 |
+
{"path": path.relative_to(ROOT).as_posix(), "sha256": sha256(path), "bytes": path.stat().st_size}
|
| 40 |
+
for path in sorted(paths)
|
| 41 |
+
if path.relative_to(ROOT).as_posix() not in GENERATED_MANIFESTS
|
| 42 |
+
]
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def main():
|
| 46 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 47 |
+
parser.add_argument("--check", action="store_true", help="Verify generated pages and hashes without writing")
|
| 48 |
+
args = parser.parse_args()
|
| 49 |
+
for name, english in (("index.html", True), ("en.html", True), ("zh.html", False)):
|
| 50 |
+
content = academic_page(english) + "\n"
|
| 51 |
+
target = ROOT / name
|
| 52 |
+
if args.check:
|
| 53 |
+
if target.read_text(encoding="utf-8") != content:
|
| 54 |
+
raise SystemExit(f"Stale generated page: {name}")
|
| 55 |
+
else:
|
| 56 |
+
target.write_text(content, encoding="utf-8")
|
| 57 |
+
citation_path = ROOT / "data/awsm.bib"
|
| 58 |
+
if args.check:
|
| 59 |
+
if citation_path.read_text(encoding="utf-8") != BIBTEX:
|
| 60 |
+
raise SystemExit("Stale downloadable citation")
|
| 61 |
+
else:
|
| 62 |
+
citation_path.write_text(BIBTEX, encoding="utf-8")
|
| 63 |
+
records = publication_records()
|
| 64 |
+
manifest = json.dumps({"schema_version": 2, "source_contract": "data/source_contract.json", "files": records}, ensure_ascii=False, indent=2) + "\n"
|
| 65 |
+
manifest_path = ROOT / GENERATED_MANIFESTS[0]
|
| 66 |
+
if args.check:
|
| 67 |
+
if manifest_path.read_text(encoding="utf-8") != manifest:
|
| 68 |
+
raise SystemExit("Stale publication manifest")
|
| 69 |
+
else:
|
| 70 |
+
manifest_path.write_text(manifest, encoding="utf-8")
|
| 71 |
+
sums = "\n".join(f'{record["sha256"]} {record["path"]}' for record in records)
|
| 72 |
+
sums += f"\n{sha256(manifest_path)} {GENERATED_MANIFESTS[0]}\n"
|
| 73 |
+
if args.check:
|
| 74 |
+
if (ROOT / GENERATED_MANIFESTS[1]).read_text(encoding="utf-8") != sums:
|
| 75 |
+
raise SystemExit("Stale SHA256SUMS")
|
| 76 |
+
else:
|
| 77 |
+
(ROOT / GENERATED_MANIFESTS[1]).write_text(sums, encoding="utf-8")
|
| 78 |
+
print(json.dumps({"status": "CHECKED" if args.check else "RENDERED", "pages": 3, "published_files": len(records), "frozen_experiment_assets_rebuilt": False}))
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
if __name__ == "__main__":
|
| 82 |
+
main()
|
scripts/site_browser_qa.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Run desktop/mobile browser QA for both interactive figures."""
|
| 3 |
+
import runpy
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
runpy.run_path(str(Path(__file__).with_name("site_browser_qa_interactive.py")), run_name="__main__")
|
scripts/site_browser_qa_interactive.py
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Exercise both interactive figures on desktop/mobile and zh/en."""
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
import argparse, json, tempfile
|
| 5 |
+
try:
|
| 6 |
+
from playwright.sync_api import sync_playwright
|
| 7 |
+
except ImportError:
|
| 8 |
+
print(json.dumps({"status":"SKIP","reason":"Playwright is not installed; run: pip install playwright && playwright install chromium"}))
|
| 9 |
+
raise SystemExit(0)
|
| 10 |
+
|
| 11 |
+
ap=argparse.ArgumentParser(); ap.add_argument("--url",default="http://127.0.0.1:8765/")
|
| 12 |
+
ap.add_argument("--quick",action="store_true",help="Check representative models and fixed views across all four language/viewport combinations")
|
| 13 |
+
ap.add_argument("--output",type=Path,default=None)
|
| 14 |
+
ap.add_argument("--executable-path",type=Path,default=None); a=ap.parse_args()
|
| 15 |
+
out=a.output or Path(tempfile.mkdtemp(prefix="agentic-world-blog-qa-")); out.mkdir(parents=True,exist_ok=True)
|
| 16 |
+
root=Path(__file__).resolve().parents[1]
|
| 17 |
+
demo_metadata=json.loads((root/"data/embodied_demo.json").read_text(encoding="utf-8"))
|
| 18 |
+
demo_media=demo_metadata["media"]
|
| 19 |
+
office_origin="https://office-cafe-vipe.hiwtishere.chatgpt.site"
|
| 20 |
+
results=[]
|
| 21 |
+
with sync_playwright() as pw:
|
| 22 |
+
try: browser=pw.chromium.launch(channel="chromium",headless=True,executable_path=a.executable_path)
|
| 23 |
+
except Exception as e:
|
| 24 |
+
print(json.dumps({"status":"SKIP","reason":f"Playwright browser unavailable: {e}"})); raise SystemExit(0)
|
| 25 |
+
for viewport,size in (("desktop",{"width":1440,"height":1000}),("mobile",{"width":390,"height":844})):
|
| 26 |
+
for lang,path in (("zh","zh.html"),("en","index.html")):
|
| 27 |
+
page=browser.new_page(viewport=size); errors=[]; failed=[]
|
| 28 |
+
page.route(office_origin+"/**",lambda route: route.fulfill(
|
| 29 |
+
status=200,
|
| 30 |
+
content_type="text/html",
|
| 31 |
+
body="<!doctype html><title>External not tested</title><p>external-not-tested</p>",
|
| 32 |
+
))
|
| 33 |
+
page.on("console",lambda m: errors.append(f"console {m.type}: {m.text}") if m.type=="error" else None)
|
| 34 |
+
page.on("pageerror",lambda e: errors.append(str(e)))
|
| 35 |
+
def record_failure(request):
|
| 36 |
+
if request.url.startswith(office_origin):
|
| 37 |
+
return
|
| 38 |
+
if request.resource_type=="media" and request.failure=="net::ERR_ABORTED":
|
| 39 |
+
return
|
| 40 |
+
if "/assets/fixed_views/" in request.url and request.failure=="net::ERR_ABORTED":
|
| 41 |
+
return
|
| 42 |
+
failed.append(f"{request.url}: {request.failure}")
|
| 43 |
+
page.on("requestfailed",record_failure)
|
| 44 |
+
page.goto(a.url.rstrip("/")+"/"+path,wait_until="domcontentloaded",timeout=120_000)
|
| 45 |
+
assert page.locator("h1").text_content()=="AWSM"
|
| 46 |
+
assert page.locator("header .title-name").text_content()==("智能体世界仿真与建图" if lang=="zh" else "Agentic World Simulation and Mapping")
|
| 47 |
+
assert page.locator("header time").get_attribute("datetime")=="2026-10-01"
|
| 48 |
+
assert page.locator(".tagline-emphasis").evaluate("element => getComputedStyle(element).textDecorationLine")=="none"
|
| 49 |
+
assert page.locator('nav a').last.get_attribute('href')=='https://github.com/wentingw/AWSM'
|
| 50 |
+
assert page.locator('nav a').last.inner_text()=='GitHub ↗'
|
| 51 |
+
assert page.locator('figure[id^="figure-"]').evaluate_all("elements => elements.map(element => element.id)")==[f'figure-{number}' for number in range(1,6)]
|
| 52 |
+
for number in range(1,6):
|
| 53 |
+
assert page.locator(f'#figure-{number} > figcaption').inner_text().startswith(f'Figure {number}.')
|
| 54 |
+
assert page.locator('#figure-2 > img').get_attribute('src')=='assets/fixed_five_view_comparison_m1_m4.jpg'
|
| 55 |
+
assert page.locator('.scene-comparison').get_attribute('id')=='figure-3'
|
| 56 |
+
assert page.locator('.fixed-comparison').get_attribute('id')=='figure-4'
|
| 57 |
+
assert not page.locator('.office-external-slot iframe').count()
|
| 58 |
+
for button in page.locator('[data-office-external]').all():
|
| 59 |
+
button.click()
|
| 60 |
+
assert page.locator('.office-external-slot iframe').get_attribute('src')==button.get_attribute('data-office-external')
|
| 61 |
+
assert page.locator('.office-external-slot iframe').get_attribute('lang')=='en'
|
| 62 |
+
page.locator('.office-external-grid').screenshot(path=str(out/f'{viewport}-{lang}-external-preview.png'))
|
| 63 |
+
assert page.locator(".citation-download").get_attribute("href")=="data/awsm.bib"
|
| 64 |
+
assert page.locator('nav a[aria-current="page"]').get_attribute("href")==path
|
| 65 |
+
assert page.locator('nav').get_by_role("link",name="中文",exact=True).get_attribute("href")=="zh.html"
|
| 66 |
+
assert page.locator('nav').get_by_role("link",name="EN",exact=True).get_attribute("href")=="index.html"
|
| 67 |
+
for section_id in ("results","motivation","workflow","more-results","related-work","limitations","citation","references"):
|
| 68 |
+
assert page.locator(f"#{section_id}").count()==1
|
| 69 |
+
assert page.locator("#results .insight-strip > div").count()==2
|
| 70 |
+
assert page.locator("#results .tldr").count()==1
|
| 71 |
+
assert page.locator("#motivation .contributions > li").count()==3
|
| 72 |
+
assert page.locator("#workflow .workflow-strip > div").count()==5
|
| 73 |
+
assert page.locator("#related-work > .inline-sources > a").count()==4
|
| 74 |
+
assert page.locator("#citation .citation-block").count()==1
|
| 75 |
+
assert page.locator("#references .references-list > li").count()>=7
|
| 76 |
+
assert page.locator('meta[name="twitter:card"]').get_attribute("content")=="summary_large_image"
|
| 77 |
+
demo=page.locator("#embodied-demo")
|
| 78 |
+
assert demo.count()==1
|
| 79 |
+
video=demo.locator("video")
|
| 80 |
+
assert video.count()==1
|
| 81 |
+
assert video.get_attribute("controls") is not None
|
| 82 |
+
assert video.get_attribute("autoplay") is None
|
| 83 |
+
assert video.get_attribute("poster")==demo_media["poster"]
|
| 84 |
+
assert video.locator("source").count()==1
|
| 85 |
+
assert video.locator("source").get_attribute("src")==demo_media["video"]
|
| 86 |
+
assert video.locator("source").get_attribute("type")=="video/mp4"
|
| 87 |
+
route_map=demo.locator("#demo-route-map img")
|
| 88 |
+
assert route_map.get_attribute("src")==demo_media["map"]["image"]
|
| 89 |
+
route_map.scroll_into_view_if_needed()
|
| 90 |
+
page.wait_for_function("image=>image.complete&&image.naturalWidth===1920",arg=route_map.element_handle())
|
| 91 |
+
assert demo.locator('a[download]').count()==2
|
| 92 |
+
assert demo.locator(f'a[href="{demo_media["hd"]["video"]}"]').count()==1
|
| 93 |
+
details=demo.locator("details.demo-protocol")
|
| 94 |
+
assert details.count()==1 and not details.get_attribute("open")
|
| 95 |
+
details.locator("summary").click()
|
| 96 |
+
assert details.get_attribute("open") is not None
|
| 97 |
+
h264_support=video.evaluate("v=>v.canPlayType('video/mp4; codecs=\"avc1.42E01E\"')")
|
| 98 |
+
if h264_support:
|
| 99 |
+
video.evaluate("v=>v.load()")
|
| 100 |
+
page.wait_for_function("v=>v.readyState>=1||v.error",arg=video.element_handle(),timeout=30_000)
|
| 101 |
+
video_state=video.evaluate("v=>({status:'PASS',error:v.error&&`${v.error.code}: ${v.error.message}`,duration:v.duration,width:v.videoWidth,height:v.videoHeight,readyState:v.readyState})")
|
| 102 |
+
assert not video_state["error"],f"demo video metadata/H.264 load failed: {video_state['error']}"
|
| 103 |
+
assert video_state["readyState"]>=1,"demo video metadata did not load"
|
| 104 |
+
assert abs(video_state["duration"]-demo_media["duration_s"])<0.25,video_state
|
| 105 |
+
assert video_state["width"]==demo_media["width"] and video_state["height"]==demo_media["height"],video_state
|
| 106 |
+
video.evaluate("async v=>{v.muted=true;await v.play()}")
|
| 107 |
+
page.wait_for_function("v=>v.currentTime>0.1",arg=video.element_handle(),timeout=10_000)
|
| 108 |
+
video.evaluate("v=>v.pause()")
|
| 109 |
+
video_state["video_playback"]="PASS"
|
| 110 |
+
else:
|
| 111 |
+
video_state={"status":"UNSUPPORTED","reason":"browser reports no H.264/AVC MP4 support; metadata not tested"}
|
| 112 |
+
page.wait_for_selector("#table-7 table"); assert page.locator(".table-figure table").count()==5
|
| 113 |
+
table2_headers=page.locator("#table-2 thead th").all_text_contents()
|
| 114 |
+
assert len(table2_headers)==5 and all("配准" not in x and "Alignment" not in x for x in table2_headers)
|
| 115 |
+
table3_headers=page.locator("#table-3 thead th").all_text_contents()
|
| 116 |
+
assert len(table3_headers)==4 and all("SHA256" not in x and "配准" not in x and "Alignment" not in x for x in table3_headers)
|
| 117 |
+
assert page.locator("#table-2").evaluate("(x)=>x.compareDocumentPosition(document.querySelector('#figure-1')) & Node.DOCUMENT_POSITION_FOLLOWING")
|
| 118 |
+
for table_index in (2,3,6,7):
|
| 119 |
+
assert page.locator(f"#table-{table_index} tbody strong").count()>0
|
| 120 |
+
assert page.locator("#overview-video > video").count()==1
|
| 121 |
+
assert page.locator("#overview-video > video > source").get_attribute("src")=="assets/awsm-promo-v5.mp4"
|
| 122 |
+
assert page.locator("#figure-2").evaluate("(x)=>x.compareDocumentPosition(document.querySelector('#figure-3')) & Node.DOCUMENT_POSITION_FOLLOWING")
|
| 123 |
+
assert page.locator("#more-results").evaluate("(x)=>x.compareDocumentPosition(document.querySelector('#embodied-demo')) & Node.DOCUMENT_POSITION_FOLLOWING")
|
| 124 |
+
figure3=page.locator("#figure-3"); figure3.scroll_into_view_if_needed()
|
| 125 |
+
page.wait_for_function("document.querySelector('#figure-3').dataset.state === 'ready'",timeout=120_000)
|
| 126 |
+
assert page.locator("#model-select").input_value()=="M4"
|
| 127 |
+
assert page.locator("#figure-3").get_attribute("data-loaded-model")=="M4"
|
| 128 |
+
scene_models=("M4","M3","GT") if a.quick else ("M1","M2","M3","M4","GT")
|
| 129 |
+
for method in scene_models:
|
| 130 |
+
page.select_option("#model-select",method)
|
| 131 |
+
page.wait_for_function("(m)=>{const p=document.querySelector('#figure-3');const d=p.sceneDiagnostics?.();return p.dataset.state==='ready'&&p.dataset.loadedModel===m&&d?.loaded===m&&d.gtLoaded&&d.singleCamera&&d.singleViewport&&(m==='GT'||d.hiddenCutaway>0)}",arg=method,timeout=120_000)
|
| 132 |
+
if not a.quick or method=="M4":
|
| 133 |
+
figure3.screenshot(path=str(out/f"{viewport}-{lang}-{method}.png"))
|
| 134 |
+
page.select_option("#scene-mode","single")
|
| 135 |
+
if not a.quick:
|
| 136 |
+
figure3.screenshot(path=str(out/f"{viewport}-{lang}-{method}-single.png"))
|
| 137 |
+
page.select_option("#scene-mode","compare")
|
| 138 |
+
if method=="M4":
|
| 139 |
+
bounds=page.evaluate("document.querySelector('#figure-3').sceneDiagnostics().bounds")
|
| 140 |
+
assert bounds["min"][0]<18<bounds["max"][0]
|
| 141 |
+
assert bounds["min"][1]<1.2<bounds["max"][1]
|
| 142 |
+
assert bounds["min"][2]<-21<bounds["max"][2]
|
| 143 |
+
page.select_option("#model-select","M2"); page.select_option("#scene-mode","compare")
|
| 144 |
+
before=page.evaluate("document.querySelector('#figure-3').sceneDiagnostics()")
|
| 145 |
+
page.locator(".scene-divider").focus(); page.keyboard.press("ArrowRight")
|
| 146 |
+
after=page.evaluate("document.querySelector('#figure-3').sceneDiagnostics()")
|
| 147 |
+
assert after["split"]>before["split"] and after["singleCamera"] and after["singleViewport"]
|
| 148 |
+
page.select_option("#scene-mode","single"); assert page.locator("#scene-split").is_disabled()
|
| 149 |
+
page.click("#scene-reset")
|
| 150 |
+
loaded_images=[]
|
| 151 |
+
for method in (("M1","M4") if a.quick else ("M1","M2","M3","M4")):
|
| 152 |
+
page.select_option("#compare-method",method)
|
| 153 |
+
for frame in (("0","144") if a.quick else ("0","36","72","108","144")):
|
| 154 |
+
page.select_option("#compare-frame",frame)
|
| 155 |
+
page.wait_for_function("([m,f])=>{const x=document.querySelector('#figure-4'),a=document.querySelector('#compare-pred'),b=document.querySelector('#compare-gt'),id=String(f).padStart(3,'0');return x.dataset.method===m&&x.dataset.frame===f&&a.currentSrc.endsWith(`/assets/fixed_views/${m}/${id}.png`)&&b.currentSrc.endsWith(`/assets/fixed_views/GT/${id}.png`)&&a.complete&&a.naturalWidth>0&&b.complete&&b.naturalWidth>0}",arg=[method,frame],timeout=30_000)
|
| 156 |
+
loaded_images.append(f"{method}/{int(frame):03d}")
|
| 157 |
+
office=page.locator(".office-model-grid")
|
| 158 |
+
office.scroll_into_view_if_needed()
|
| 159 |
+
page.wait_for_function("[...document.querySelectorAll('.office-model-stage')].every(stage => stage.dataset.ready === 'true')",timeout=120_000)
|
| 160 |
+
office.screenshot(path=str(out/f"{viewport}-{lang}-office.png"))
|
| 161 |
+
page.wait_for_function("[...document.querySelectorAll('#office-cafe video')].every(video => video.readyState >= 1 && !video.error)",timeout=60_000)
|
| 162 |
+
for stage in page.locator(".office-model-stage").all():
|
| 163 |
+
initial=stage.evaluate("stage => stage.sceneDiagnostics()")
|
| 164 |
+
assert initial["ready"] and initial["cutaway"]
|
| 165 |
+
assert initial["camera"][1]>initial["bounds"]["max"][1]
|
| 166 |
+
toggle=stage.locator('button[aria-pressed]')
|
| 167 |
+
toggle.click()
|
| 168 |
+
assert not stage.evaluate("stage => stage.sceneDiagnostics().cutaway")
|
| 169 |
+
toggle.click()
|
| 170 |
+
bounds=stage.locator('canvas').bounding_box()
|
| 171 |
+
page.mouse.move(bounds['x']+bounds['width']*0.5,bounds['y']+bounds['height']*0.6)
|
| 172 |
+
page.mouse.down()
|
| 173 |
+
page.mouse.move(bounds['x']+bounds['width']*0.7,bounds['y']+bounds['height']*0.65,steps=8)
|
| 174 |
+
page.mouse.up()
|
| 175 |
+
stage.locator('button').first.click()
|
| 176 |
+
page.wait_for_function("([selector,expected]) => document.querySelector(selector).sceneDiagnostics().camera.every((value,index) => Math.abs(value-expected[index]) < 0.001)",arg=[f'.office-model-stage[data-src="{stage.get_attribute("data-src")}"]',initial['camera']],timeout=10_000)
|
| 177 |
+
assert stage.evaluate("stage => stage.sceneDiagnostics().cutaway")
|
| 178 |
+
overflow=page.evaluate("document.documentElement.scrollWidth > window.innerWidth")
|
| 179 |
+
assert not overflow,f"horizontal overflow: {viewport}/{lang}"
|
| 180 |
+
assert not errors,errors; assert not failed,failed
|
| 181 |
+
page.locator("header").screenshot(path=str(out/f"{viewport}-{lang}.png"))
|
| 182 |
+
run_status="PASS" if video_state["status"]=="PASS" else "PARTIAL"
|
| 183 |
+
results.append({"viewport":viewport,"language":lang,"status":run_status,"scene_models":scene_models,"fixed_views":len(loaded_images),"tables":5,"divider_changed":True,"video_metadata":video_state,"external_app":"403 in separate live check; embed wiring tested with fixture", "office_models":2,"overflow":overflow})
|
| 184 |
+
page.close()
|
| 185 |
+
browser.close()
|
| 186 |
+
(out/"report.json").write_text(json.dumps(results,ensure_ascii=False,indent=2)+"\n")
|
| 187 |
+
overall_status="PASS" if all(run["status"]=="PASS" for run in results) else "PARTIAL"
|
| 188 |
+
print(json.dumps({"status":overall_status,"output":str(out),"runs":results},ensure_ascii=False))
|
scripts/site_builder.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Deterministically build the interactive bilingual publication."""
|
| 3 |
+
import runpy
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
runpy.run_path(str(Path(__file__).with_name("site_builder_interactive.py")), run_name="__main__")
|
scripts/site_builder_interactive.py
ADDED
|
@@ -0,0 +1,442 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Build the interactive bilingual publication from frozen sources."""
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from urllib.request import Request, urlopen
|
| 5 |
+
import argparse, hashlib, html, json, shutil, tempfile
|
| 6 |
+
from editorial import BASE_URL, BIBTEX, SITE_TITLE, REFERENCES, narrative_copy, editorial_page
|
| 7 |
+
|
| 8 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 9 |
+
DEFAULT_SOURCE = ROOT.parent / "world_lobby_four_trajectory_20260929"
|
| 10 |
+
REFERENCE = ROOT.parent / "world_model_blog/private_repo/sceneweft_sync_20260925/blog"
|
| 11 |
+
TABLE_SOURCE = "astra_blender2/evaluation/blog_extended_100_20260930/tables_1_7.json"
|
| 12 |
+
VIEW_SOURCE = "astra_blender2/report/space/results/blog_tables_1_5/reference_style_figures.json"
|
| 13 |
+
REG_DIR = "astra_blender2/evaluation/reference_style_figures"
|
| 14 |
+
METHODS, FRAMES = ("M1", "M2", "M3", "M4"), (0, 36, 72, 108, 144)
|
| 15 |
+
GT_URL = "https://wentingw.github.io/astra-world-model-blog/assets/comparison/GT.glb"
|
| 16 |
+
GT_SHA = "6c28ab067c63c5b1fce19c6a972f3d66c7ac4d9bd9ce3b5a57e2e18f5641fe8f"
|
| 17 |
+
GT_BYTES = 24816108
|
| 18 |
+
CODE_URL = "https://github.com/wentingw/AWSM"
|
| 19 |
+
OFFICE_URL = "https://office-cafe-vipe.hiwtishere.chatgpt.site/"
|
| 20 |
+
|
| 21 |
+
def sha(path): return hashlib.sha256(path.read_bytes()).hexdigest()
|
| 22 |
+
def write(path, text):
|
| 23 |
+
path.parent.mkdir(parents=True, exist_ok=True); path.write_text(text, encoding="utf-8")
|
| 24 |
+
def dump(path, value): write(path, json.dumps(value, ensure_ascii=False, indent=2) + "\n")
|
| 25 |
+
def copy_checked(src, dst, expected=None, source_label=None):
|
| 26 |
+
if not src.is_file(): raise FileNotFoundError(src)
|
| 27 |
+
actual = sha(src)
|
| 28 |
+
if expected and actual != expected: raise ValueError(f"SHA256 mismatch: {src}: {actual} != {expected}")
|
| 29 |
+
dst.parent.mkdir(parents=True, exist_ok=True); shutil.copy2(src, dst)
|
| 30 |
+
return {"source": source_label or str(src), "published": dst.relative_to(ROOT).as_posix(),
|
| 31 |
+
"sha256": actual, "bytes": src.stat().st_size}
|
| 32 |
+
def mm(a, b): return [[sum(a[i][k]*b[k][j] for k in range(4)) for j in range(4)] for i in range(4)]
|
| 33 |
+
|
| 34 |
+
def clean():
|
| 35 |
+
assets = ROOT / "assets"
|
| 36 |
+
if assets.exists():
|
| 37 |
+
for path in assets.iterdir():
|
| 38 |
+
if path.name != "office-cafe":
|
| 39 |
+
shutil.rmtree(path) if path.is_dir() else path.unlink()
|
| 40 |
+
for name in ("data", "evidence", "models", "vendor", "qa", "content"):
|
| 41 |
+
if (ROOT/name).exists(): shutil.rmtree(ROOT/name)
|
| 42 |
+
for name in ("index.html","en.html","app.js","scene-compare.js","style.css",
|
| 43 |
+
"article.zh.md","article.en.md",".publication.json"):
|
| 44 |
+
(ROOT/name).unlink(missing_ok=True)
|
| 45 |
+
|
| 46 |
+
def download_gt():
|
| 47 |
+
target=ROOT/"assets/comparison/GT.glb"; target.parent.mkdir(parents=True,exist_ok=True)
|
| 48 |
+
request=Request(GT_URL,headers={"User-Agent":"agentic-world-blog-builder/2"})
|
| 49 |
+
with tempfile.NamedTemporaryFile(dir=target.parent,delete=False) as temp:
|
| 50 |
+
tmp=Path(temp.name)
|
| 51 |
+
with urlopen(request,timeout=180) as response: shutil.copyfileobj(response,temp)
|
| 52 |
+
try:
|
| 53 |
+
if tmp.stat().st_size != GT_BYTES: raise ValueError(f"GT bytes: {tmp.stat().st_size} != {GT_BYTES}")
|
| 54 |
+
if sha(tmp) != GT_SHA: raise ValueError(f"GT SHA256: {sha(tmp)} != {GT_SHA}")
|
| 55 |
+
tmp.replace(target)
|
| 56 |
+
finally: tmp.unlink(missing_ok=True)
|
| 57 |
+
return {"source_url":GT_URL,"published":"assets/comparison/GT.glb","sha256":GT_SHA,"bytes":GT_BYTES}
|
| 58 |
+
|
| 59 |
+
def table(n):
|
| 60 |
+
return f'<figure class="table-figure" id="table-{n}" data-table-key="table{n}"><figcaption><span>Table {n}.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table {n}"></div></figure>'
|
| 61 |
+
|
| 62 |
+
def hero_figure(en):
|
| 63 |
+
label = "AWSM introduction video" if en else "AWSM 介绍视频"
|
| 64 |
+
resources_label = "AWSM project resources" if en else "AWSM 项目资源"
|
| 65 |
+
github_label = "GitHub (opens in a new window)" if en else "GitHub(在新窗口打开)"
|
| 66 |
+
links = f'''<div class="project-links" role="group" aria-label="{resources_label}"><a class="project-resource" href="{CODE_URL}" target="_blank" rel="noopener noreferrer" aria-label="{github_label}" title="{github_label}"><img src="assets/icons/github.svg" width="24" height="24" alt="">GitHub<svg class="project-external-arrow" viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 12 12 4M4 4h8v8"/></svg></a><span class="project-resource"><img src="assets/icons/huggingface.svg" width="24" height="24" alt="">Hugging Face (Coming soon)</span></div>'''
|
| 67 |
+
return f'''<div class="hero" id="overview-video"><video controls playsinline preload="metadata" poster="assets/awsm-promo-v5-poster.jpg" aria-label="{label}"><source src="assets/awsm-promo-v5.mp4" type="video/mp4"><a href="assets/awsm-promo-v5.mp4">{label}</a></video>{links}</div>'''
|
| 68 |
+
|
| 69 |
+
def overview_figure(en):
|
| 70 |
+
return f'''<figure id="figure-2"><img loading="lazy" src="assets/fixed_five_view_comparison_m1_m4.jpg" alt="M1 to M4 and input GT across five fixed views"><figcaption><span>Figure 2.</span> {"M1–M4 and input GT across five fixed views." if en else "M1–M4 与输入 GT 在五个固定视角下的并排比较。"}</figcaption></figure>'''
|
| 71 |
+
|
| 72 |
+
def scene_figure(en):
|
| 73 |
+
options="".join(f'<option value="{m}"{" selected" if m=="M4" else ""}>{m}</option>' for m in METHODS)+'<option value="GT">GT</option>'
|
| 74 |
+
return f'''<figure class="scene-comparison" id="figure-3" data-state="idle"><h3>{"Rotate, zoom, and inspect the frozen scenes" if en else "旋转、缩放,检查冻结场景"}</h3>
|
| 75 |
+
<div class="scene-toolbar"><label class="method-control">{"Reconstruction / GT" if en else "重建方法 / GT"}<select id="model-select">{options}</select></label><label>{"Display" if en else "显示方式"}<select id="scene-mode"><option value="compare">{"Split comparison with GT" if en else "中轴线对比 GT"}</option><option value="single">{"View selected scene alone" if en else "单独查看所选场景"}</option></select></label><button id="scene-reset" type="button">{"Reset view" if en else "重置视角"}</button></div>
|
| 76 |
+
<div class="scene-stage"><span class="scene-label scene-label-left">M4</span><span class="scene-label scene-label-right">GT</span><button class="scene-divider" type="button" role="slider" aria-label="Comparison divider" aria-valuemin="2" aria-valuemax="98" aria-valuenow="50"></button><input id="scene-split" class="scene-split" type="range" min="2" max="98" value="50" aria-label="Comparison split"><p class="scene-status">{"Scroll here to load the 3D comparison." if en else "滚动到此处加载三维对比。"}</p></div><button id="scene-retry" class="scene-retry" type="button">{"Retry" if en else "重试"}</button>
|
| 77 |
+
<figcaption><span>Figure 3.</span> {"One camera and one full viewport compare the selected frozen model with GT. Ceilings and surrounding walls are hidden at runtime for the same cutaway-style inspection; source files remain unchanged." if en else "所选冻结模型与 GT 共用同一相机和完整 viewport;网页运行时隐藏顶棚与四周墙体,以相同剖视方式检查,源模型文件保持不变。"}</figcaption></figure>'''
|
| 78 |
+
|
| 79 |
+
def fixed_figure(en):
|
| 80 |
+
methods="".join(f'<option value="{m}">{m}</option>' for m in METHODS)
|
| 81 |
+
frames="".join(f'<option value="{f}">{f}</option>' for f in FRAMES)
|
| 82 |
+
return f'''<figure class="fixed-comparison" id="figure-4"><div class="controlrow"><label>{"Method" if en else "方法"}<select id="compare-method" disabled>{methods}</select></label><label>{"Fixed view" if en else "固定视角"}<select id="compare-frame" disabled>{frames}</select></label></div><div class="compare-pair"><div><img id="compare-pred" src="assets/fixed_views/M1/000.png" alt="Selected frozen model rendering"><p id="compare-label" class="compare-subcaption">M1 / {"VIEW" if en else "视角"} 0</p></div><div><img id="compare-gt" src="assets/fixed_views/GT/000.png" alt="Input GT RGB"><p class="compare-subcaption">INPUT / GT RGB</p></div></div><figcaption><span>Figure 4.</span> {"Frozen-model rendering and input GT RGB from exactly the same view." if en else "同一所选视角下的冻结模型渲染与输入 GT RGB。"}</figcaption></figure>'''
|
| 83 |
+
|
| 84 |
+
def downloads():
|
| 85 |
+
return '<div class="asset-downloads">'+"".join(f'<p><strong>{m}</strong> <a href="models/{m}/scene.blend" download>scene.blend ↓</a> · <a href="models/{m}/scene.glb" download>scene.glb ↓</a> · <a href="evidence/{m}/manifest.json">manifest ↗</a></p>' for m in METHODS)+'</div>'
|
| 86 |
+
|
| 87 |
+
def office_videos(en):
|
| 88 |
+
media_root = "assets/office-cafe"
|
| 89 |
+
titles = ("Input video", "Procedural model", "Point cloud") if en else ("输入视频", "程序化模型", "点云")
|
| 90 |
+
descriptions = ("Original phone walkthrough.", "Model rendered along the source-camera trajectory.", "Scan rendered along the same trajectory.") if en else ("原始手机拍摄视频。", "沿原视频相机轨迹渲染的模型。", "沿相同轨迹渲染的扫描点云。")
|
| 91 |
+
cards = "".join(
|
| 92 |
+
f'<figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/{stem}-poster.jpg" src="{media_root}/{stem}-web.mp4?v={sha(ROOT / media_root / (stem + "-web.mp4"))[:12]}" aria-label="{title}"></video><figcaption><strong>{title}</strong><span>{description}</span></figcaption></figure>'
|
| 93 |
+
for stem, title, description in zip(("office-input", "office-pmodel", "office-scan"), titles, descriptions)
|
| 94 |
+
)
|
| 95 |
+
return f'''<div class="office-video-grid office-video-sync">{cards}</div>
|
| 96 |
+
<div class="office-video-controls"><button class="office-video-play" type="button" aria-label="{"Play all three videos" if en else "播放全部三个视频"}" aria-pressed="false">▶</button><input class="office-video-progress" type="range" min="0" max="1000" value="0" aria-label="{"Shared video progress" if en else "三个视频的共同播放进度"}"><output class="office-video-time">00:00 / 01:10</output><p class="office-video-status" role="status" aria-live="polite">{"Shared playback · 70.1 seconds · 30 fps" if en else "同步播放 · 70.1 秒 · 30 fps"}</p></div>'''
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def office_external(en):
|
| 100 |
+
heading = "Explore the original interactive apps" if en else "打开原始交互网页"
|
| 101 |
+
titles = ("Interactive model", "Shake experiment") if en else ("交互模型", "摇晃实验")
|
| 102 |
+
captions = ("Local preview from the published model-render video.", "Local preview from the published strong-shake replay.") if en else ("来自已发布模型渲染视频的本地预览。", "来自已发布较强摇晃回放的本地预览。")
|
| 103 |
+
load = "Load external app · English requested" if en else "加载外部网页 · 请求英文版"
|
| 104 |
+
notice = "Links request English with lang=en; the external host controls language and availability. These local content previews are not screenshots of the external website. If embedding is unavailable, use the full-screen links or the local models and videos below." if en else "链接通过 lang=en 请求英文,实际语言与可用性由外站控制。这里展示的是本地内容预览,并非外站页面截图。若嵌入不可用,可使用全屏外链,或查看下方本地模型与视频。"
|
| 105 |
+
cards = "".join(
|
| 106 |
+
f'<figure class="office-external-card"><a href="{OFFICE_URL}{suffix}" target="_blank" rel="noopener noreferrer"><img loading="lazy" src="assets/office-cafe/{poster}" alt="{title}: {caption}"></a><figcaption><strong>{title}</strong><p>{caption}</p><button type="button" data-office-external="{OFFICE_URL}{suffix}" aria-controls="office-external-slot">{load}</button></figcaption></figure>'
|
| 107 |
+
for suffix, poster, title, caption in zip(("?lang=en", "shake?lang=en"), ("office-pmodel-poster.jpg", "office-shake-heavy-poster.jpg"), titles, captions)
|
| 108 |
+
)
|
| 109 |
+
return f'<div class="office-external"><h4>{heading}</h4><div class="office-external-grid">{cards}</div><p class="office-external-note">{notice}</p><div id="office-external-slot" class="office-external-slot" hidden></div></div>'
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def office_case(en):
|
| 113 |
+
if en:
|
| 114 |
+
return f'''<div id="office-cafe" class="analysis-block external-case"><h3>Beyond the lobby: what survives in a phone-captured space?</h3><p>Office Café is not a second run of the World Lobby benchmark and is not quantitative validation under the same protocol. It is an external, real-capture case study showing how an object-centric scene, a solved source-camera trajectory, video-to-model comparison, and physics replays can coexist in one inspectable artifact. An author-observed failure—a curved real-world corner simplified into a square one—motivates separating local shape from global scale. A correct scale alone cannot repair that shape error; this is a qualitative observation, not another measured benchmark.</p><p class="office-links"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener">Open full-screen model ↗</a><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener">Open shake experiment ↗</a></p>{office_external(en)}<div class="office-model-grid"><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/scene.glb" aria-label="Interactive Office Café ViPE model"></div><figcaption><strong>Current model</strong><span>Video plus estimated depth as input; drag to orbit, right-drag to pan, and scroll to zoom.</span></figcaption></figure><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/atlas-scene.glb" aria-label="Interactive legacy Office Café model"></div><figcaption><strong>Legacy model</strong><span>Video-only input; this legacy layout was not recalibrated against the ViPE scan.</span></figcaption></figure></div><p class="office-model-note">Both models open in an elevated cutaway view: upper geometry is clipped only for display to expose the interior. Toggle Cutaway to inspect the complete model; Reset view restores the overview. Authored coordinates, materials, and model files are unchanged. Linked orbit controls compare layouts, not registered geometry.</p>{office_videos(en)}<div class="office-video-grid"><figure class="office-video-card office-video-card-wide"><video controls preload="metadata" playsinline poster="assets/office-cafe/office-shake-heavy-poster.jpg" src="assets/office-cafe/office-shake-heavy.mp4"></video><figcaption><strong>Strong earthquake effect</strong><span>Every object in the scene is interactable, and cabinet doors can open; this replay shows the physical response under strong shaking.</span></figcaption></figure></div><script type="module" src="office-models.js"></script></div>'''
|
| 115 |
+
return f'''<div id="office-cafe" class="analysis-block external-case"><h3>走出仿真大厅:手机采集空间中还剩下什么?</h3><p>Office Café 不是 World Lobby 基准的第二次运行,也不构成同协议的定量验证。它是一个真实采集的外部案例,用于展示对象化场景、求解后的原视频相机轨迹、视频—模型对照与物理回放如何组合成一个可检查的空间产物。作者观察到的一类失败是:真实的弯曲转角被简化成方正结构。它提醒我们区分���部形状与全局尺度——尺度正确并不能自动修复形状错误;这里将其作为定性观察,而非另一组定量结果。</p><p class="office-links"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener">全屏打开模型 ↗</a><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener">打开摇晃实验 ↗</a></p>{office_external(en)}<div class="office-model-grid"><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/scene.glb" aria-label="可旋转查看的 Office Café 原有模型"></div><figcaption><strong>原有模型</strong><span>输入为视频与估计深度;拖动旋转、右键平移、滚轮缩放。</span></figcaption></figure><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/atlas-scene.glb" aria-label="可旋转查看的 Office Café 旧模型"></div><figcaption><strong>旧模型</strong><span>输入仅为视频;该旧版布局未按 ViPE 扫描重新标定。</span></figcaption></figure></div><p class="office-model-note">两个模型默认采用俯视剖切视图,仅在显示时裁去上部遮挡,以展示室内布局;点击“剖切视图”可切换完整模型,“重置视角”可恢复总览。原始坐标、材质和模型文件保持不变。联动旋转用于观察布局,不代表几何配准。</p>{office_videos(en)}<div class="office-video-grid"><figure class="office-video-card office-video-card-wide"><video controls preload="metadata" playsinline poster="assets/office-cafe/office-shake-heavy-poster.jpg" src="assets/office-cafe/office-shake-heavy.mp4"></video><figcaption><strong>较强地震效果</strong><span>场景中的物体均可交互,柜门可以打开;此段展示较强摇晃下的物理响应。</span></figcaption></figure></div><script type="module" src="office-models.js"></script></div>'''
|
| 116 |
+
|
| 117 |
+
def office_section(en):
|
| 118 |
+
return f'''<section id="office-cafe"><p class="section-tag">08 / OFFICE CAFÉ</p><h2>{"From a phone walkthrough to an interactive twin" if en else "从手机视频到可交互空间"}</h2><p>{"The complete Office Café viewer is embedded below. It retains model-only, scan ↔ model, and source-video ↔ model comparison modes; playback follows all 2,103 solved source-camera poses. The linked shake experiment retains control, gentle, and strong MuJoCo replays." if en else "下方嵌入完整 Office Café 查看器:保留“模型”“扫描 ↔ 模型”“原视频 ↔ 模型”三种对照方式,并可沿 2,103 个求解后的原视频相机位姿播放。摇晃实验继续提供零摇晃、轻度和较强三组 MuJoCo 回放。"}</p><p class="office-links"><a href="{OFFICE_URL}" target="_blank" rel="noopener">{"Open full viewer" if en else "全屏打开模型"} ↗</a><a href="{OFFICE_URL}shake.html" target="_blank" rel="noopener">{"Open shake experiment" if en else "打开摇晃实验"} ↗</a></p><div class="office-cafe-embed"><iframe src="{OFFICE_URL}" title="Office Café interactive spatial twin" loading="lazy" allow="fullscreen" allowfullscreen></iframe></div></section>'''
|
| 119 |
+
|
| 120 |
+
def legacy_page(en=False):
|
| 121 |
+
title="Four paths to an editable world" if en else "四条路径,重建一个可编辑世界"
|
| 122 |
+
desc=("A measured comparison of four Astra–Blender reconstructions: pose, depth, geometry, appearance, and novel-view depth." if en else "对四种 Astra–Blender 重建的克制比较:位姿、深度、几何、外观和同场景新视角深度。")
|
| 123 |
+
sections=(["Question & four methods","Pose and native/model depth","Editable M1–M4","Geometry","Appearance","Same-scene novel-view depth","Limits & evidence","Office Café twin"] if en else ["问题与四种方法","位姿与原生/模型深度","可编辑 M1–M4","几何","外观","同场景新视角深度","局限与证据","Office Café 模型"])
|
| 124 |
+
ids=("question","pose-depth","editable","geometry","appearance","novel-depth","limitations","office-cafe")
|
| 125 |
+
toc="".join(f'<a href="#{i}">{t}</a>' for i,t in zip(ids,sections)); current,other=("en.html","index.html") if en else ("index.html","en.html")
|
| 126 |
+
methods=("M1 uses sampled RGB and an unmeasured layout. M2 uses RGB-only ViPE poses and pose-conditioned DA3 depth. M3 uses monocular-inertial ORB-SLAM3 poses and pose-conditioned DA3 depth. M4 uses GT camera poses and pose-conditioned DA3 depth; GT mesh and depth are not modelling inputs." if en else "M1 使用采样 RGB 与无测量尺度的布局;M2 使用 RGB-only ViPE 位姿与 pose-conditioned DA3 深度;M3 使用 ORB-SLAM3 单目惯性位姿与 pose-conditioned DA3 深度;M4 使用 GT 相机位姿与 pose-conditioned DA3 深度,建模时不读取 GT 网格或 GT 深度。")
|
| 127 |
+
m1=("M1 uses one frozen GT-assisted Sim(3) from five manual camera associations. It is diagnostic only and does not represent native metric recovery." if en else "M1 使用由 5 个手工相机关联得到、冻结不变的 GT-assisted Sim(3);仅作诊断,不表示原生 metric recovery。")
|
| 128 |
+
m4=("M4 is revision 4: 74 semantic objects, 37 static AABB colliders, and 180 cameras. The independent reviewer examined revision 2 only. Revisions 3–4 fixed identified issues, but revision 4 has not received a complete independent visual re-review; final visual approval is not claimed." if en else "M4 为 revision 4:74 个 semantic objects、37 个 static AABB colliders、180 台 cameras。独立 reviewer 只审阅了 rev2;rev3/4 修复了已指出的问题,但 rev4 尚无完整独立视觉复审,因此不声称最终视觉通过。")
|
| 129 |
+
copy_notice=("These display copies and runtime registrations do not alter the frozen models. M1's alignment is diagnostic only." if en else "这些展示副本和运行时配准不改变冻结模型;M1 配准仅作诊断。")
|
| 130 |
+
return f'''<!doctype html><html lang="{"en" if en else "zh-CN"}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{title} — Agentic World</title><meta name="description" content="{desc}"><meta property="og:type" content="article"><meta property="og:title" content="{title}"><meta property="og:description" content="{desc}"><meta property="og:image" content="{BASE_URL}assets/fixed_five_view_comparison_m1_m4.jpg"><meta property="og:url" content="{BASE_URL}{current}"><link rel="canonical" href="{BASE_URL}{current}"><link rel="alternate" hreflang="zh-CN" href="{BASE_URL}index.html"><link rel="alternate" hreflang="en" href="{BASE_URL}en.html"><link rel="stylesheet" href="style.css"><script type="importmap">{{"imports":{{"three":"./vendor/three/three.module.js"}}}}</script><script src="app.js" defer></script><script type="module" src="scene-compare.js"></script></head>
|
| 131 |
+
<body data-lang="{"en" if en else "zh"}"><a class="skip" href="#main">{"Skip to article" if en else "跳到正文"}</a><nav><a class="brand" href="index.html">ASTRA / WORLD MODELS</a><div><a href="index.html" {"aria-current='page'" if not en else ""}>中文</a><a href="en.html" {"aria-current='page'" if en else ""}>EN</a><a href="{CODE_URL}" target="_blank" rel="noopener noreferrer">GitHub ↗</a></div></nav><header><p class="eyebrow">RESEARCH JOURNAL · 30 SEPTEMBER 2026</p><h1>{title}</h1><p class="lead">{desc}</p><div class="meta"><span>1 scene</span><span>4 editable models</span><span>7 frozen tables</span></div></header>
|
| 132 |
+
{hero_figure(en)}<div class="layout"><aside class="toc"><p>ON THIS PAGE</p>{toc}</aside><main id="main">
|
| 133 |
+
<section id="question"><p class="section-tag">01 / QUESTION</p><h2>{sections[0]}</h2><p class="standfirst">{"M4 is strongest overall in this case, but this single-scene study does not establish general superiority." if en else "M4 在本案例中综合最好,但单场景工程实验不能证明一般性优势。"}</p><p>{methods}</p>{table(1)}</section>
|
| 134 |
+
<section id="pose-depth"><p class="section-tag">02 / MEASUREMENT</p><h2>{sections[1]}</h2><p>{"Native depth evaluates the upstream pipeline. Model depth ray-casts the final frozen Blender scene." if en else "原生深度评估上游链路;模型深度从评测相机向最终冻结 Blender 场景投射射线。"}</p><aside class="notice"><strong>M1 diagnostic limitation.</strong> {m1}</aside>{table(2)}<figure id="figure-1"><img loading="lazy" src="assets/figure14_abc.png" alt="Trajectory and depth composite"><figcaption><span>Figure 1.</span> {"Trajectory, native depth, and model depth." if en else "轨迹、原生深度与模型深度。"}</figcaption></figure></section>
|
| 135 |
+
<section id="editable"><p class="section-tag">03 / EDITABLE ASSETS</p><h2>{sections[2]}</h2><p>{m4}</p><p>{copy_notice}</p>{overview_figure(en)}{scene_figure(en)}{fixed_figure(en)}{downloads()}</section>
|
| 136 |
+
<section id="geometry"><p class="section-tag">04 / GEOMETRY</p><h2>{sections[3]}</h2><p>{"Bidirectional distances use 100,000 seeded samples per side under the declared global alignment; no mesh ICP is fitted." if en else "双向表面距离每侧使用 100,000 个固定随机种子样本,并采用已声明的全局配准;不额外拟合 mesh ICP。"}</p>{table(3)}</section>
|
| 137 |
+
<section id="appearance"><p class="section-tag">05 / APPEARANCE</p><h2>{sections[4]}</h2><p>{"Table 4 uses the five fixed 640×480 checks (0, 36, 72, 108, 144). Table 5 uses one seeded set of 100 views sampled from the other 175 modeling frames. These 100 views are new evaluation views relative to the fixed-five check, but they were still available as modeling RGB inputs. No crop, mask, or per-view fitting is used." if en else "Table 4 使用 5 个固定 640×480 检查视角(0、36、72、108、144)。Table 5 从其余 175 张建模帧中按固定随机种子抽取同一组 100 个视角;它们只相对于固定 5 帧是新的检查视角,仍属于建模 RGB 输入,并非未见输入。全部评测均不裁剪、不遮罩、不逐视角拟合。"}</p>{table(4)}{table(5)}</section>
|
| 138 |
+
<section id="novel-depth"><p class="section-tag">06 / NOVEL VIEWS</p><h2>{sections[5]}</h2><p>{"Table 6 evaluates model optical-Z on the five fixed reference views. Table 7 uses exactly the same seeded 100-view set as Table 5 and aggregates all GT-valid pixels." if en else "Table 6 在固定 5 个参考视角上评测模型 optical-Z;Table 7 使用与 Table 5 完全相同的固定随机 100 视角,并在全部 GT 有效像素上汇总。"}</p><figure id="figure-5"><img loading="lazy" src="assets/model_depth_error_five_views_m1_m4.png" alt="Model depth error for M1 to M4"><figcaption><span>Figure 5.</span> {"Model-depth error over five fixed views; teal denotes missing or invalid samples." if en else "M1–M4 五个固定视角的模型深度误差;青绿色表示缺失或无效样本。"}</figcaption></figure>{table(6)}{table(7)}<noscript>JavaScript is required for the tables and interactive figures.</noscript></section>
|
| 139 |
+
<section id="limitations"><p class="section-tag">07 / LIMITS & EVIDENCE</p><h2>{sections[6]}</h2><p>{"One synthetic scene and one run per route are insufficient for broad claims." if en else "单一合成场景、每条路线一次工程运行,不足以支持广泛结论。"}</p><p><a href="data/tables_1_7.json">Tables JSON</a> · <a href="data/scene_comparison.json">Scene manifest</a> · <a href="data/fixed_views.json">Fixed views</a> · <a href="evidence/publication_manifest.json">Manifest</a> · <a href="evidence/SHA256SUMS">SHA256</a></p></section>{office_section(en)}</main></div><footer>Agentic World · frozen local publication · <a href="{other}">{"中文" if en else "English"}</a></footer></body></html>'''
|
| 140 |
+
|
| 141 |
+
STYLE=r''':root{--paper:#f7f6f1;--white:#fffefa;--ink:#182c29;--muted:#60706a;--green:#196451;--line:#d9dfd7;--gold:#b87e40}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.8 Inter,"Noto Sans CJK SC",system-ui,sans-serif}a{color:var(--green);text-underline-offset:4px}img{display:block;max-width:100%;height:auto}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:white;padding:8px;z-index:9}nav{max-width:1420px;margin:auto;padding:22px 4vw;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px;letter-spacing:.09em}nav div{display:flex;gap:20px}.brand{font-weight:750;text-decoration:none}header{max-width:1120px;margin:56px auto 36px;padding:0 32px}.eyebrow,.section-tag{font-size:11px;letter-spacing:.16em;color:var(--green);font-weight:700}h1,h2{font-family:Georgia,"Noto Serif CJK SC",serif;font-weight:500}h1{font-size:clamp(46px,7vw,88px);line-height:1.12;letter-spacing:-.035em;margin:18px 0}.lead{max-width:800px;color:var(--muted);font-size:20px}.meta{display:flex;gap:24px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.hero{max-width:1320px;margin:35px auto 68px;padding:0 28px}.hero img,figure>img{width:100%;background:#e8ebe5}.hero-pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px;background:var(--ink)}.hero-pair-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}.hero-pair-grid p{margin:0;padding:7px 12px;background:var(--ink);color:#f7f6f1;font-size:10px;letter-spacing:.11em}figcaption{font-size:12px;color:var(--muted);margin-top:10px}figcaption span{font-weight:700;color:var(--green)}.layout{max-width:1300px;margin:auto;padding:0 30px;display:grid;grid-template-columns:190px minmax(0,920px);gap:60px;justify-content:center}.toc{position:sticky;top:24px;align-self:start;display:flex;flex-direction:column;gap:9px;font-size:12px}.toc a{text-decoration:none;color:var(--muted)}main{min-width:0}section{padding:28px 0 38px;border-top:1px solid var(--line)}section:first-child{border-top:0}.standfirst{font-size:23px;line-height:1.55;color:var(--green)}h2{font-size:32px;margin:7px 0 22px}.notice{border-left:3px solid var(--gold);padding:10px 18px;margin:24px 0;color:var(--muted);background:#fff9}.table-figure{margin:30px 0}.table-scroll{overflow:auto;border:1px solid var(--line);background:var(--white);margin-top:9px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}th,td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{background:#edf0e9;color:var(--muted)}td.wrap{white-space:normal;min-width:240px}.scene-comparison,.fixed-comparison{margin:34px 0;padding:20px;border:1px solid var(--line);border-radius:6px;background:var(--white)}.scene-comparison h3{margin:0 0 18px}.scene-toolbar,.controlrow{display:flex;gap:14px 20px;align-items:end;flex-wrap:wrap}.scene-toolbar label,.controlrow label{display:flex;flex-direction:column;font-size:12px;color:var(--muted)}.method-control{flex:1 1 280px}select,button{font:inherit}.scene-toolbar button,.scene-retry{font-size:13px;padding:9px 13px;color:var(--green);border:1px solid var(--line);border-radius:3px;background:var(--paper);cursor:pointer}.scene-stage{position:relative;height:540px;width:100%;background:#e9ede5;margin-top:18px;overflow:hidden;border-radius:4px;--split:50%}.scene-stage canvas{display:block;width:100%;height:100%;touch-action:none}.scene-label{position:absolute;top:12px;z-index:3;padding:4px 8px;background:#fffde;color:var(--ink);font-size:11px;pointer-events:none}.scene-label-left{left:12px}.scene-label-right{right:12px}.scene-divider{position:absolute;z-index:4;left:var(--split);top:0;width:3px;height:100%;padding:0;border:0;background:white;box-shadow:0 0 0 1px #182c2955;transform:translateX(-50%);cursor:ew-resize;touch-action:none}.scene-divider:after{content:"↔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;line-height:27px;border-radius:50%;background:white;color:var(--green);border:1px solid var(--line)}.scene-split{position:absolute;width:1px;height:1px;opacity:0}.scene-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:9px 12px;background:#fffef0;z-index:5;font-size:13px}.scene-status.error{color:#8d251d}.scene-retry{display:none;margin-top:10px}.scene-comparison[data-state=error] .scene-retry{display:inline-block}.scene-comparison:not(.is-comparing) .scene-divider{display:none}.compare-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.compare-pair img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#e9ede5}.compare-subcaption{margin:6px 0 0;font-size:11px;color:var(--muted);letter-spacing:.04em}.asset-downloads{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;font-size:12px}.asset-downloads p{margin:4px 0}.office-cafe-embed{margin-top:24px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#111}.office-cafe-embed iframe{display:block;width:100%;height:min(880px,85vh);min-height:680px;border:0;background:#111}.office-links{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}footer{max-width:1120px;margin:70px auto 0;padding:30px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}@media(max-width:950px){.layout{grid-template-columns:1fr}.toc{position:static;display:grid;grid-template-columns:1fr 1fr}}@media(max-width:600px){body{font-size:16px}nav{padding:17px 18px}.brand{font-size:10px}nav div{gap:12px}header{padding:0 20px;margin-top:35px}h1{font-size:43px}.lead{font-size:17px}.hero{padding:0 12px;margin-bottom:40px}.layout{padding:0 20px}.toc{grid-template-columns:1fr}.standfirst{font-size:20px}h2{font-size:27px}.scene-comparison,.fixed-comparison{padding:12px}.scene-stage{height:360px}.compare-pair,.asset-downloads{grid-template-columns:1fr}.office-cafe-embed iframe{height:760px;min-height:620px}}'''
|
| 142 |
+
|
| 143 |
+
APP=r'''const C={zh:{t:["输入与建模路线","位姿、原生深度与模型深度","冻结模型几何","固定 5 视角外观","同场景 100 视角外观","固定 5 视角模型深度","同场景 100 视角模型深度"],view:"视角",l:{method:"方法",allowed_inputs:"允许输入",geometry_source:"几何来源",modeling_role:"建模角色",ate_m:"ATE (m) ↓",rotation_deg:"旋转误差 (°) ↓",native_depth_absrel:"原生深度 AbsRel ↓",model_depth_absrel:"模型深度 AbsRel ↓",alignment:"配准 / 限制",model_to_gt_mean_m:"模型→GT 均值 (m) ↓",observed_gt_to_model_mean_m:"观测 GT→模型均值 (m) ↓",bidirectional_mean_m:"双向平均 (m) ↓",model_sha256:"模型 SHA256",psnr_db:"PSNR (dB) ↑",ssim:"SSIM ↑",lpips_alex_v01:"LPIPS ↓",absrel:"AbsRel ↓",rmse_m:"RMSE (m) ↓",coverage:"覆盖率 ↑",penalized_mae_m:"缺失惩罚 MAE (m) ↓"}},en:{t:["Inputs and modelling routes","Pose, native depth, and model depth","Frozen-model geometry","Fixed-five appearance","Same-scene 100-view appearance","Fixed-five model depth","Same-scene 100-view model depth"],view:"VIEW",l:{method:"Method",allowed_inputs:"Allowed inputs",geometry_source:"Geometry source",modeling_role:"Modelling role",ate_m:"ATE (m) ↓",rotation_deg:"Rotation (°) ↓",native_depth_absrel:"Native depth AbsRel ↓",model_depth_absrel:"Model depth AbsRel ↓",alignment:"Alignment / limitation",model_to_gt_mean_m:"Model→GT mean (m) ↓",observed_gt_to_model_mean_m:"Observed GT→model mean (m) ↓",bidirectional_mean_m:"Bidirectional mean (m) ↓",model_sha256:"Model SHA256",psnr_db:"PSNR (dB) ↑",ssim:"SSIM ↑",lpips_alex_v01:"LPIPS ↓",absrel:"AbsRel ↓",rmse_m:"RMSE (m) ↓",coverage:"Coverage ↑",penalized_mae_m:"Penalized MAE (m) ↓"}}};const c=C[document.body.dataset.lang],directions={ate_m:"min",rotation_deg:"min",native_depth_absrel:"min",model_depth_absrel:"min",model_to_gt_mean_m:"min",observed_gt_to_model_mean_m:"min",bidirectional_mean_m:"min",psnr_db:"max",ssim:"max",lpips_alex_v01:"min",absrel:"min",rmse_m:"min",coverage:"max",penalized_mae_m:"min"},hidden={2:new Set(["alignment"]),3:new Set(["model_sha256","alignment"])},fmt=(k,v)=>v===null?"—":typeof v!=="number"?String(v):["native_depth_absrel","model_depth_absrel","absrel","coverage"].includes(k)?(100*v).toFixed(2)+"%":v.toFixed(4);fetch("data/tables_1_7.json").then(r=>{if(!r.ok)throw Error(r.status);return r.json()}).then(d=>{[1,2,3,4,5,6,7].forEach(i=>{const f=document.querySelector("#table-"+i);if(!f)return;const rows=d.tables["table"+i],keys=Object.keys(rows[0]).filter(k=>!hidden[i]?.has(k)),best={};keys.forEach(k=>{if(!directions[k])return;const values=rows.map(r=>r[k]).filter(v=>typeof v==="number"&&Number.isFinite(v));if(values.length)best[k]=(directions[k]==="max"?Math.max:Math.min)(...values)});f.querySelector(".table-title").textContent=c.t[i-1];const t=document.createElement("table"),h=t.createTHead().insertRow();keys.forEach(k=>{const x=document.createElement("th");x.scope="col";x.textContent=c.l[k]||k;h.append(x)});const b=t.createTBody();rows.forEach(r=>{const tr=b.insertRow();keys.forEach((k,j)=>{const x=document.createElement(j?"td":"th");if(!j)x.scope="row";if(["allowed_inputs","geometry_source","modeling_role","alignment"].includes(k))x.className="wrap";const text=fmt(k,r[k]);if(typeof r[k]==="number"&&r[k]===best[k]){const strong=document.createElement("strong");strong.textContent=text;x.append(strong)}else x.textContent=text;tr.append(x)})});f.querySelector(".table-mount").append(t)})}).catch(e=>{document.querySelectorAll(".table-mount").forEach(x=>x.textContent="Table load failed: "+e.message);console.error(e)});const fixedPreloads=[];for(const m of ["M1","M2","M3","M4","GT"])for(const f of [0,36,72,108,144]){const image=new Image();image.src=`assets/fixed_views/${m}/${String(f).padStart(3,"0")}.png`;fixedPreloads.push(image)}const method=document.querySelector("#compare-method"),frame=document.querySelector("#compare-frame");function refresh(){const id=String(frame.value).padStart(3,"0"),m=method.value;document.querySelector("#compare-pred").src=`assets/fixed_views/${m}/${id}.png`;document.querySelector("#compare-gt").src=`assets/fixed_views/GT/${id}.png`;document.querySelector("#compare-label").textContent=`${m} / ${c.view} ${frame.value}`;document.querySelector("#figure-4").dataset.method=m;document.querySelector("#figure-4").dataset.frame=frame.value}method?.addEventListener("change",refresh);frame?.addEventListener("change",refresh);refresh();'''
|
| 144 |
+
|
| 145 |
+
SCENE_JS=r'''import * as THREE from 'three';import {GLTFLoader} from './vendor/three/loaders/GLTFLoader.js';import {OrbitControls} from './vendor/three/controls/OrbitControls.js';import {RoomEnvironment} from './vendor/three/environments/RoomEnvironment.js';
|
| 146 |
+
const panel=document.querySelector('#figure-3');if(panel){const stage=panel.querySelector('.scene-stage'),select=panel.querySelector('#model-select'),mode=panel.querySelector('#scene-mode'),slider=panel.querySelector('#scene-split'),divider=panel.querySelector('.scene-divider'),status=panel.querySelector('.scene-status'),left=panel.querySelector('.scene-label-left'),right=panel.querySelector('.scene-label-right'),zh=document.documentElement.lang.startsWith('zh');let started=false,active=false,renderer,camera,controls,environment,manifest,selectedScene,truthScene,resizeObserver,split=.5,version=0;const cache=new Map();const setStatus=(text,error=false)=>{status.textContent=text;status.hidden=!text;status.classList.toggle('error',error);panel.dataset.state=error?'error':text?'loading':'ready'};
|
| 147 |
+
function render(){if(!renderer||!selectedScene)return;const w=stage.clientWidth,h=stage.clientHeight;renderer.setScissorTest(false);renderer.setViewport(0,0,w,h);renderer.clear();if(mode.value==='single'||select.value==='GT'||!truthScene){renderer.render(selectedScene,camera);return}const x=Math.round(w*split);renderer.setScissorTest(true);renderer.setScissor(0,0,x,h);renderer.render(selectedScene,camera);renderer.setScissor(x,0,w-x,h);renderer.render(truthScene,camera);renderer.setScissorTest(false)}
|
| 148 |
+
function updateMode(){const comparing=mode.value==='compare'&&select.value!=='GT';panel.classList.toggle('is-comparing',comparing);slider.disabled=!comparing;divider.hidden=!comparing;right.hidden=!comparing;left.textContent=select.value;render()}function updateSplit(value){split=Math.max(.02,Math.min(.98,Number(value)/100));slider.value=String(Math.round(split*100));stage.style.setProperty('--split',`${split*100}%`);divider.setAttribute('aria-valuenow',slider.value);render()}
|
| 149 |
+
function resetCamera(){if(!camera||!manifest)return;const v=manifest.camera;controls.target.fromArray(v.target);camera.position.fromArray(v.position).sub(controls.target).multiplyScalar(Math.max(1,1.5/(stage.clientWidth/stage.clientHeight))).add(controls.target);camera.near=v.near;camera.far=v.far;camera.fov=v.fov;camera.updateProjectionMatrix();controls.update();render()}function resize(){if(!renderer)return;const w=stage.clientWidth,h=stage.clientHeight;renderer.setSize(w,h,false);const oldFit=Math.max(1,1.5/camera.aspect);camera.aspect=w/h;if(controls)camera.position.sub(controls.target).multiplyScalar(Math.max(1,1.5/camera.aspect)/oldFit).add(controls.target);camera.updateProjectionMatrix();render()}
|
| 150 |
+
function loadScene(id){if(!cache.has(id)){const promise=new GLTFLoader().loadAsync(manifest.models[id].url).then(gltf=>{const scene=new THREE.Scene();scene.background=new THREE.Color('#e9ede5');scene.environment=environment;scene.add(new THREE.HemisphereLight(0xffffff,0x68746b,2));const sun=new THREE.DirectionalLight(0xffffff,2.3);sun.position.set(12,25,18);scene.add(sun);let hiddenCutaway=0;if(id!=='GT'){const rows=manifest.models[id].runtime_matrix_gltf_y_up;gltf.scene.applyMatrix4(new THREE.Matrix4().set(...rows.flat()));gltf.scene.traverse(node=>{const name=node.name||'',isShell=/(ceiling|roof|wall|facade)/i.test(name),isDetail=/(emblem|art|grass|metal)/i.test(name);if(isShell&&!isDetail){node.visible=false;hiddenCutaway++}})}scene.add(gltf.scene);const bounds=new THREE.Box3().setFromObject(gltf.scene);scene.userData.method=id;scene.userData.hiddenCutaway=hiddenCutaway;scene.userData.bounds={min:bounds.min.toArray(),max:bounds.max.toArray()};return scene}).catch(e=>{cache.delete(id);throw e});cache.set(id,promise)}return cache.get(id)}
|
| 151 |
+
async function selectScene(){if(!manifest)return;const request=++version,id=select.value;setStatus(zh?`正在加载 ${id}…`:`Loading ${id}…`);try{const [model,gt]=await Promise.all([loadScene(id),loadScene('GT')]);if(request!==version)return;selectedScene=model;truthScene=gt;setStatus('');updateMode();panel.dataset.loadedModel=id;panel.dataset.gtLoaded='true'}catch(e){if(request!==version)return;console.error('Scene asset load failed',e);setStatus(zh?'场景加载失败,请重试。':'Scene loading failed. Retry.',true)}}
|
| 152 |
+
async function start(){if(started)return;started=true;try{setStatus(zh?'正在加载对比场景…':'Loading comparison scenes…');const response=await fetch('data/scene_comparison.json', {cache:'no-store'});if(!response.ok)throw Error(`manifest HTTP ${response.status}`);manifest=await response.json();renderer=new THREE.WebGLRenderer({antialias:true});renderer.setPixelRatio(Math.min(devicePixelRatio,1.5));renderer.toneMapping=THREE.ACESFilmicToneMapping;renderer.outputColorSpace=THREE.SRGBColorSpace;renderer.domElement.setAttribute('aria-label',zh?'重建与 GT 三维场景':'Reconstruction and GT 3D scene');renderer.domElement.tabIndex=0;stage.prepend(renderer.domElement);camera=new THREE.PerspectiveCamera(42,1,.05,500);controls=new OrbitControls(camera,renderer.domElement);controls.enableDamping=false;controls.minDistance=1;controls.maxDistance=200;controls.addEventListener('change',render);const pmrem=new THREE.PMREMGenerator(renderer),room=new RoomEnvironment();environment=pmrem.fromScene(room,.04).texture;room.dispose();pmrem.dispose();resizeObserver=new ResizeObserver(resize);resizeObserver.observe(stage);resize();resetCamera();panel.sceneDiagnostics=()=>({selected:select.value,loaded:selectedScene?.userData.method,gtLoaded:!!truthScene,hiddenCutaway:selectedScene?.userData.hiddenCutaway||0,bounds:selectedScene?.userData.bounds,camera:camera.position.toArray(),target:controls.target.toArray(),split,mode:mode.value,singleCamera:true,singleViewport:true,coordinateConversion:manifest.coordinate_conversion,cachedModels:[...cache.keys()]});await selectScene()}catch(e){console.error('Scene comparison initialization failed',e);resizeObserver?.disconnect();controls?.dispose();environment?.dispose();renderer?.dispose();renderer?.domElement.remove();renderer=camera=controls=environment=manifest=undefined;selectedScene=truthScene=undefined;cache.clear();started=false;setStatus(zh?'无法启动三维场景,请重试。':'Unable to start 3D viewer. Retry.',true)}}
|
| 153 |
+
select.addEventListener('change',()=>{updateMode();selectScene()});mode.addEventListener('change',updateMode);slider.addEventListener('input',()=>updateSplit(slider.value));panel.querySelector('#scene-reset').addEventListener('click',resetCamera);panel.querySelector('#scene-retry').addEventListener('click',()=>manifest&&renderer?selectScene():start());divider.addEventListener('pointerdown',e=>{e.preventDefault();active=true;divider.setPointerCapture(e.pointerId);if(controls)controls.enabled=false});divider.addEventListener('pointermove',e=>{if(!active)return;const b=stage.getBoundingClientRect();updateSplit((e.clientX-b.left)/b.width*100)});const stop=()=>{active=false;if(controls)controls.enabled=true};divider.addEventListener('pointerup',stop);divider.addEventListener('pointercancel',stop);divider.addEventListener('keydown',e=>{const d={ArrowLeft:-2,ArrowRight:2,PageDown:-10,PageUp:10};if(e.key in d){e.preventDefault();updateSplit(split*100+d[e.key])}});updateSplit(50);updateMode();const lazy=new IntersectionObserver(es=>{if(es.some(e=>e.isIntersecting)){lazy.disconnect();start()}},{rootMargin:'300px'});lazy.observe(panel)}'''
|
| 154 |
+
|
| 155 |
+
def academic_page(en=False):
|
| 156 |
+
current, other = ("index.html", "zh.html") if en else ("zh.html", "index.html")
|
| 157 |
+
if en:
|
| 158 |
+
title = SITE_TITLE
|
| 159 |
+
desc = "From real spaces to worlds phygital agents can use."
|
| 160 |
+
sections = [
|
| 161 |
+
("results", "Overview"),
|
| 162 |
+
("motivation", "Motivation"),
|
| 163 |
+
("workflow", "Workflow"),
|
| 164 |
+
("more-results", "Results & analysis"),
|
| 165 |
+
("related-work", "Related work"),
|
| 166 |
+
("limitations", "Limitations"),
|
| 167 |
+
("citation", "Citation"),
|
| 168 |
+
("references", "References"),
|
| 169 |
+
]
|
| 170 |
+
copy = {
|
| 171 |
+
"hook": "A scene can look plausible and still be spatially wrong.",
|
| 172 |
+
"tldr": "We isolate how camera pose and depth evidence propagate through an agentic Blender reconstruction pipeline. Stronger geometric evidence consistently improves the frozen scene’s geometry and model depth, but appearance metrics remain split—showing that spatial fidelity and visual similarity are distinct objectives.",
|
| 173 |
+
"intro1": "Image synthesis rewards a convincing frame. A spatial system has a harder obligation: scale, location, occlusion, and object boundaries must remain coherent when the camera moves—and the result must still be editable after rendering ends.",
|
| 174 |
+
"intro2": "We reconstruct World Lobby, a simulated scene in NVIDIA Isaac Sim, through four complete engineering routes, from RGB-only modeling to ground-truth-pose-conditioned modeling. Each route produces a frozen Blender scene, not merely a point cloud or a novel-view renderer. The experiment asks what additional geometric evidence buys, where it fails to help, and which errors survive object-centric reconstruction.",
|
| 175 |
+
"contributions": [
|
| 176 |
+
"A controlled four-route study that keeps the scene, 180 RGB identities, modeling objective, and editable output format fixed while varying the geometric evidence.",
|
| 177 |
+
"A measurement contract that separates trajectory error, native depth, frozen-scene depth, surface geometry, and rendered appearance instead of collapsing them into one score.",
|
| 178 |
+
"Frozen Blend/GLB assets, deterministic evaluation subsets, public hashes, and interactive comparisons that let readers inspect where aggregate metrics agree—and where they do not.",
|
| 179 |
+
],
|
| 180 |
+
"metric1": "0.376 → 0.072 m",
|
| 181 |
+
"metric1_label": "bidirectional surface error",
|
| 182 |
+
"metric2": "16.44% → 7.60%",
|
| 183 |
+
"metric2_label": "model-depth AbsRel · 180 evaluation views",
|
| 184 |
+
"metric3": "No universal winner",
|
| 185 |
+
"metric3_label": "PSNR, SSIM, and LPIPS disagree",
|
| 186 |
+
"motivation_title": "From a good-looking render to a usable spatial representation",
|
| 187 |
+
"motivation1": "An editable world model is useful because its objects can be selected, moved, hidden, assigned materials, queried for collisions, and revisited from known cameras. Those affordances matter for design, robotics, and simulation. They also expose errors that a single attractive image can conceal.",
|
| 188 |
+
"motivation2": "Our working hypothesis is that measurement does not replace generative reasoning; it constrains it. Pose and depth should reduce the space of plausible layouts, while the modeling system converts noisy observations into a compact semantic scene. That conversion can regularize noise, but it is also lossy: omitted surfaces and simplified materials do not reappear simply because the camera trajectory improves.",
|
| 189 |
+
"positioning": "ViPE estimates camera motion and near-metric geometry from RGB video; ORB-SLAM3 provides a classical visual-inertial trajectory; Depth Anything 3 predicts pose-conditioned multi-view depth. These systems produce measurements, not editable objects. Concurrent work AHa-3D explores video-driven agentic Real2Sim; Our emphasis is additional physical evidence, including IMU-informed visual-inertial constraints, for geometric grounding. Our question is complementary and deliberately narrower: when the modeling objective is held fixed, which measurement channel changes the final editable world—and which errors remain downstream?",
|
| 190 |
+
"method_title": "Four routes, one frozen evaluation contract",
|
| 191 |
+
"method1": "All routes receive the same 180 RGB identities and the same Astra–Blender modeling objective. M1 tests how far visual priors can go without metric measurements. M2 adds RGB-only ViPE poses and pose-conditioned DA3 depth. M3 uses monocular-inertial ORB-SLAM3 poses with the same class of DA3 observations. M4 supplies ground-truth camera poses to diagnose the remaining modeling error; it does not receive the GT mesh or GT depth as modeling input.",
|
| 192 |
+
"workflow": [
|
| 193 |
+
("Observe", "Inspect all 180 RGB frames and, where allowed, pose-conditioned DA3 geometry."),
|
| 194 |
+
("Build", "Write Blender Python that decomposes the room into named objects, materials, cameras, and collision proxies."),
|
| 195 |
+
("Verify", "Compare paired RGB and optical-Z renders at fixed review cameras; revise within a fixed version budget."),
|
| 196 |
+
("Freeze", "Export Blend/GLB, manifests, semantic IDs, and hashes before any GT score is visible to the author."),
|
| 197 |
+
("Evaluate", "Measure pose, native depth, model depth, surface distance, and appearance under one frozen protocol."),
|
| 198 |
+
],
|
| 199 |
+
"method2": "Ground truth is introduced only after the scenes are frozen. M2 and M3 are evaluated under one global SE(3) alignment with scale fixed to one; no mesh ICP or per-view fitting is used. M1 has no native metric trajectory, so its model-space numbers use one frozen GT-assisted Sim(3) from five manual camera associations and remain diagnostic rather than evidence of metric recovery.",
|
| 200 |
+
"results_title": "Three findings matter more than a leaderboard",
|
| 201 |
+
"finding1_title": "1. Better pose does not mechanically imply better native depth",
|
| 202 |
+
"finding1": "M3 improves trajectory accuracy over M2—ATE falls from 0.167 m to 0.121 m and rotation error from 0.31° to 0.19°. Yet its native DA3 AbsRel is slightly worse (20.38% versus 19.06%). After modeling, the ordering reverses: M3 reaches 8.37% model-depth AbsRel versus 9.29% for M2. Upstream metrics and downstream scene fidelity are related, but they are not interchangeable.",
|
| 203 |
+
"finding2_title": "2. Geometric evidence turns a plausible layout into a more faithful space",
|
| 204 |
+
"finding2": "Under the declared alignment and without mesh ICP, bidirectional surface error falls from 0.376 m for the RGB-only diagnostic baseline to 0.118 m with ViPE, 0.082 m with ORB-SLAM3, and 0.072 m with GT poses. M4 is strongest on geometry in this case, while M3 closes most of the gap using an estimated trajectory.",
|
| 205 |
+
"finding3_title": "3. Qualitative comparison",
|
| 206 |
+
"interactive_title": "Do not trust the aggregate alone—inspect the frozen worlds",
|
| 207 |
+
"interactive1": "Use the shared camera to compare each reconstruction with GT. Start with M1 to see how a semantically plausible room can drift in metric layout; compare M2 and M3 to find regions where geometry improves without a matching gain in RGB similarity; then inspect M4 to isolate errors that remain even when camera pose is no longer the bottleneck.",
|
| 208 |
+
"interactive2": "The browser hides ceilings and surrounding walls only for cutaway inspection. Runtime registration and display choices do not modify the downloadable frozen GLB or Blend files.",
|
| 209 |
+
"discussion_title": "What this case suggests about editable world models",
|
| 210 |
+
"discussion1_title": "Modeling behaves like a structured—and lossy—regularizer",
|
| 211 |
+
"discussion1": "For M2–M4, the final scene depth is substantially closer to GT than native DA3 depth on the shared 180-view protocol: AbsRel falls by roughly 51–60%. One plausible interpretation is that object-level aggregation suppresses inconsistent local predictions. This is a hypothesis, not a controlled causal result: the same abstraction can also erase real surfaces and fine geometry.",
|
| 212 |
+
"discussion2_title": "Measurement constrains generation; it does not solve appearance",
|
| 213 |
+
"discussion2": "The strongest geometric route does not dominate PSNR or SSIM. Pose removes one source of uncertainty, but appearance still depends on material estimation, lighting, object detail, and renderer mismatch. Evaluating only RGB would miss spatial progress; evaluating only geometry would miss perceptual failure.",
|
| 214 |
+
"discussion3_title": "The 100-view check measures consistency, not unseen-view generalization",
|
| 215 |
+
"discussion3": "Table 7 uses a seeded set of 100 cameras drawn from the 175 modeling frames outside the fixed-five check. These are additional evaluation views relative to that check, but their RGB images were available during modeling. On this set, M4 has the lowest depth AbsRel (7.47%), while M3 has the lowest RMSE (1.090 m).",
|
| 216 |
+
"limits_title": "The boundaries are part of the result",
|
| 217 |
+
"limits": [
|
| 218 |
+
"One synthetic scene and one engineering run per route do not establish general superiority or statistical significance.",
|
| 219 |
+
"The four routes are complete systems, not a strict single-variable ablation; M2 versus M3 cannot be attributed to IMU alone.",
|
| 220 |
+
"M4 uses GT camera poses and is a diagnostic route, not a deployable baseline or a theoretical upper bound.",
|
| 221 |
+
"M1 model-space metrics rely on GT-assisted Sim(3) and must not be ranked as native metric recovery.",
|
| 222 |
+
"The 100-view appearance and depth sets contain modeling RGB inputs; they are not a held-out novel-view benchmark.",
|
| 223 |
+
"Appearance metrics mix geometry, material, illumination, and rendering error. M4 revision 4 has not received a complete independent visual re-review.",
|
| 224 |
+
],
|
| 225 |
+
"evidence": "Every table is generated from frozen assets. The public manifests expose model hashes, registrations, fixed views, and the exact seeded evaluation indices.",
|
| 226 |
+
"office_title": "Beyond the lobby: what survives in a phone-captured space?",
|
| 227 |
+
"office1": "Office Café is not a second run of the World Lobby benchmark and is not quantitative validation under the same protocol. It is an external, real-capture case study showing how an object-centric scene, a solved source-camera trajectory, video-to-model comparison, and physics replays can coexist in one inspectable artifact.",
|
| 228 |
+
"open_viewer": "Open full viewer",
|
| 229 |
+
"open_shake": "Open shake experiment",
|
| 230 |
+
}
|
| 231 |
+
else:
|
| 232 |
+
title = "AWSM:智能体世界仿真与建图"
|
| 233 |
+
desc = "把真实空间,变成虚实融合智能体可以使用的世界。"
|
| 234 |
+
sections = [
|
| 235 |
+
("results", "概览"),
|
| 236 |
+
("motivation", "研究动机"),
|
| 237 |
+
("workflow", "工作流"),
|
| 238 |
+
("more-results", "结果与分析"),
|
| 239 |
+
("related-work", "相关工��"),
|
| 240 |
+
("limitations", "局限性"),
|
| 241 |
+
("citation", "引用"),
|
| 242 |
+
("references", "参考文献"),
|
| 243 |
+
]
|
| 244 |
+
copy = {
|
| 245 |
+
"hook": "一个场景可以看起来合理,却在空间上是错的。",
|
| 246 |
+
"tldr": "我们研究相机位姿与深度证据如何穿过 agentic Blender 重建流程,最终影响冻结场景。更强的几何证据持续改善模型几何与模型深度,但外观指标依然分化——空间忠实度与视觉相似度是两类不同目标。",
|
| 247 |
+
"intro1": "图像生成奖励一张令人信服的画面;空间系统承担更严格的义务:当相机移动时,尺度、位置、遮挡与物体边界仍需保持一致,而且渲染结束后,结果还必须能够被编辑。",
|
| 248 |
+
"intro2": "我们对 NVIDIA Isaac Sim 中的 World Lobby 仿真场景,沿四条完整工程路径进行重建:从纯 RGB 建模,逐步加入估计位姿、深度与真实相机位姿。每条路径交付的是冻结的 Blender 场景,而不只是点云或新视角渲染器。实验关注的不是谁生成了最漂亮的单帧,而是几何证据究竟带来了什么、没有解决什么,以及哪些误差会穿过对象化建模继续存在。",
|
| 249 |
+
"contributions": [
|
| 250 |
+
"一项受控的四路径研究:固定场景、180 张 RGB 身份、建模目标与可编辑交付格式,只改变可用的几何证据。",
|
| 251 |
+
"一份分解式测量契约:分别评估轨迹、原生深度、冻结场景深度、表面几何与渲染外观,而不是把它们压缩成一个总分。",
|
| 252 |
+
"可下载的冻结 Blend/GLB、确定性评测子集、公开哈希与交互对照,使读者能够检查平均指标在哪些区域成立、又在哪里失效。",
|
| 253 |
+
],
|
| 254 |
+
"metric1": "0.376 → 0.072 m",
|
| 255 |
+
"metric1_label": "双向表面误差",
|
| 256 |
+
"metric2": "16.44% → 7.60%",
|
| 257 |
+
"metric2_label": "模型深度绝对相对误差(AbsRel)· 180 个评估视角",
|
| 258 |
+
"metric3": "没有单一赢家",
|
| 259 |
+
"metric3_label": "PSNR、SSIM 与 LPIPS 结论分化",
|
| 260 |
+
"motivation_title": "从“看起来不错”到“可以使用”的空间表示",
|
| 261 |
+
"motivation1": "可编辑世界模型的价值,在于其中的对象能够被选择、移动、隐藏、赋予材质、查询碰撞,并从已知相机重新访问。这些能力服务于设计、机器人与仿真,也会暴露一张漂亮图片可以掩盖的空间错误。",
|
| 262 |
+
"motivation2": "我们的工作假设是:测量不是生成推理的替代品,而是它的约束。位姿与深度应当缩小合理布局的解空间,建模系统则把噪声观测压缩为语义场景。这种转换可能正则化噪声,但同样是有损的:遗漏的表面、近似的材质,不会仅仅因为相机轨迹更准确而自动恢复。",
|
| 263 |
+
"positioning": "ViPE 从 RGB 视频估计相机运动与近米制几何,ORB-SLAM3 提供经典的视觉—惯性轨迹,Depth Anything 3 预测位姿条件下的多视图深度;它们输出的是测量,而不是可编辑对象。同期工作 AHa-3D 探索视频驱动的 agentic Real2Sim。我们强调利用额外物理证据,尤其是融合 IMU 的视觉惯性约束,进行几何锚定。本文的问题与之互补且更窄:当建模目标保持不变时,哪一种测量通道真正改变了最终可编辑世界,哪些误差仍会留在下游?",
|
| 264 |
+
"method_title": "四条路径,一份冻结评测契约",
|
| 265 |
+
"method1": "四条路径使用相同的 180 张 RGB 身份和相同的 Astra–Blender 建模目标。M1 检验没有米制测量时视觉先验能走多远;M2 加入 RGB-only ViPE 位姿与 pose-conditioned DA3 深度;M3 使用 ORB-SLAM3 单目惯性位姿与同类 DA3 观测;M4 提供 GT 相机位姿,用于诊断剩余建模误差,但建模时不读取 GT 网格或 GT 深度。",
|
| 266 |
+
"workflow": [
|
| 267 |
+
("观察", "检查全部 180 张 RGB;在允许的方法中读取位姿条件下的 DA3 几何。"),
|
| 268 |
+
("建模", "编写 Blender Python,将房间拆解为命名对象、材质、相机与碰撞代理。"),
|
| 269 |
+
("验证", "在固定修订相机上比较成对 RGB 与 optical-Z 渲染,并在固定版本预算内修改。"),
|
| 270 |
+
("冻结", "在作者看到任何 GT 评分前,导出 Blend/GLB、manifest、语义 ID 与哈希。"),
|
| 271 |
+
("评测", "在同一冻结协议下分别测量位姿、原生深度、模型深度、表面距离与外观。"),
|
| 272 |
+
],
|
| 273 |
+
"method2": "所有场景冻结后才引入真值。M2/M3 只使用一次全局 SE(3) 配准,尺度固定为 1;不进行 mesh ICP 或逐视角拟合。M1 没有原生米制轨迹,其模型空间指标使用由 5 个手工相机关联得到、冻结不变的 GT-assisted Sim(3),因此只能解释形状与显示误差,不能视为米制恢复。",
|
| 274 |
+
"results_title": "比排行榜更重要的���个发现",
|
| 275 |
+
"finding1_title": "1. 更好的位姿不会机械地带来更好的原生深度",
|
| 276 |
+
"finding1": "M3 的轨迹优于 M2:ATE 从 0.167 m 降至 0.121 m,旋转误差从 0.31° 降至 0.19°;但 M3 的原生 DA3 AbsRel 反而略差(20.38% 对 19.06%)。经过建模后,排序再次反转:M3 的模型深度 AbsRel 为 8.37%,优于 M2 的 9.29%。上游指标与最终场景忠实度相关,却不能彼此替代。",
|
| 277 |
+
"finding2_title": "2. 几何证据把“合理布局”约束成更忠实的空间",
|
| 278 |
+
"finding2": "在声明配准且不使用 mesh ICP 的条件下,双向表面误差从纯 RGB 诊断基线的 0.376 m,依次降至 ViPE 的 0.118 m、ORB-SLAM3 的 0.082 m 与 GT 位姿的 0.072 m。M4 在本案例中拥有最强几何,而 M3 依靠估计轨迹已经缩小了大部分差距。",
|
| 279 |
+
"finding3_title": "3. 定性比较",
|
| 280 |
+
"interactive_title": "不要只相信平均值——亲自检查冻结场景",
|
| 281 |
+
"interactive1": "在共享相机中将每个重建与 GT 对照:先从 M1 观察语义上合理的房间如何偏离米制布局;再比较 M2/M3,寻找几何改善但 RGB 相似度未同步提升的区域;最后检查 M4,把相机位姿不再是瓶颈后仍然存在的建模与材质误差分离出来。",
|
| 282 |
+
"interactive2": "网页只在运行时隐藏顶棚与四周墙体,以便剖视检查;运行时配准与显示选择不会修改可下载的冻结 GLB 或 Blend 文件。",
|
| 283 |
+
"discussion_title": "这个案例对可编辑世界模型意味着什么",
|
| 284 |
+
"discussion1_title": "建模像一种结构化、同时有损的正则化",
|
| 285 |
+
"discussion1": "在共享的 180 视角协议下,M2–M4 的最终场景深度都显著接近 GT:相较原生 DA3,AbsRel 约下降 51–60%。一种可能解释是,对象级聚合抑制了局部不一致预测;但这仍是假说,而非受控因果结论。同一种抽象也可能删除真实表面与细节。",
|
| 286 |
+
"discussion2_title": "测量约束生成,却不会自动解决外观",
|
| 287 |
+
"discussion2": "几何最强的路径并未统治 PSNR 或 SSIM。位姿消除了一类不确定性,外观仍受材质估计、照明、物体细节与渲染器差异支配。只评 RGB 会漏掉空间进步,只评几何也会漏掉感知失败。",
|
| 288 |
+
"discussion3_title": "100 视角检查衡量一致性,而不是未见视角泛化",
|
| 289 |
+
"discussion3": "Table 7 使用一组固定随机种子的 100 个相机,它们从固定 5 帧之外的 175 张建模帧中抽取。这些视角相对固定检查是额外视角,但其 RGB 在建模阶段可见。在该集合上,M4 的深度 AbsRel 最低(7.47%),M3 的 RMSE 最低(1.090 m)。",
|
| 290 |
+
"limits_title": "边界本身也是结果的一部分",
|
| 291 |
+
"limits": [
|
| 292 |
+
"一个合成场景、每条路径一次工程运行,不能建立一般优越性或统计显著性。",
|
| 293 |
+
"四条路径是完整系统,而非严格的单变量消融;M2 与 M3 的差异不能只归因于 IMU。",
|
| 294 |
+
"M4 使用 GT 相机位姿,是诊断路线,不是可部署基线,也不是理论上界。",
|
| 295 |
+
"M1 模型空间指标依赖 GT-assisted Sim(3),不能与原生米制恢复混为一谈。",
|
| 296 |
+
"100 视角外观与深度集合包含建模 RGB 输入,不是 held-out novel-view benchmark。",
|
| 297 |
+
"外观指标混合了几何、材质、照明与渲染误差;M4 revision 4 尚未完成完整独立视觉复审。",
|
| 298 |
+
],
|
| 299 |
+
"evidence": "所有表格都由冻结资产生成;公开 manifest 提供模型哈希、配准、固定视角与固定随机评测索引。",
|
| 300 |
+
"office_title": "走出仿真大厅:手机采集空间中还剩下什么?",
|
| 301 |
+
"office1": "Office Café 不是 World Lobby 基准的第二次运行,也不构成同协议的定量验证。它是一个真实采集的外部案例,用于展示对象化场景、求解后的原视频相机轨迹、视频—模型对照与物理回放如何组合成一个可检查的空间产物。",
|
| 302 |
+
"open_viewer": "全屏打开模型",
|
| 303 |
+
"open_shake": "打开摇晃实验",
|
| 304 |
+
}
|
| 305 |
+
narrative_copy(copy, en)
|
| 306 |
+
toc = "".join(f'<a href="#{anchor}">{label}</a>' for anchor, label in sections)
|
| 307 |
+
limits = "".join(f"<li>{item}</li>" for item in copy["limits"])
|
| 308 |
+
contributions = "".join(f"<li>{item}</li>" for item in copy["contributions"])
|
| 309 |
+
workflow = "".join(
|
| 310 |
+
f'<div><strong>{index:02d} · {name}</strong><span>{description}</span></div>'
|
| 311 |
+
for index, (name, description) in enumerate(copy["workflow"], 1)
|
| 312 |
+
)
|
| 313 |
+
related_links = (
|
| 314 |
+
'<span class="inline-sources">'
|
| 315 |
+
'<a href="https://research.nvidia.com/labs/toronto-ai/vipe/" target="_blank" rel="noopener">ViPE</a> · '
|
| 316 |
+
'<a href="https://arxiv.org/abs/2007.11898" target="_blank" rel="noopener">ORB-SLAM3</a> · '
|
| 317 |
+
'<a href="https://arxiv.org/abs/2511.10647" target="_blank" rel="noopener">Depth Anything 3</a> · '
|
| 318 |
+
'<a href="https://kevinxu02.github.io/real2sim-indoor-site/" target="_blank" rel="noopener">AHa-3D</a>'
|
| 319 |
+
'</span>'
|
| 320 |
+
)
|
| 321 |
+
citation = html.escape(BIBTEX.rstrip())
|
| 322 |
+
references = [
|
| 323 |
+
('AHa-3D: Agentic Tool Use for Real2Sim with GPT-6 Astra.',
|
| 324 |
+
'https://kevinxu02.github.io/real2sim-indoor-site/'),
|
| 325 |
+
('ViPE: Video Pose Engine for camera motion and near-metric geometry.',
|
| 326 |
+
'https://arxiv.org/abs/2508.10934'),
|
| 327 |
+
('Campos et al. ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual–Inertial, and Multimap SLAM. IEEE Transactions on Robotics, 2021.',
|
| 328 |
+
'https://arxiv.org/abs/2007.11898'),
|
| 329 |
+
('Depth Anything 3: Recovering the Visual Space from Any Views.',
|
| 330 |
+
'https://arxiv.org/abs/2511.10647'),
|
| 331 |
+
('Wang et al. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE Transactions on Image Processing, 2004.',
|
| 332 |
+
'https://doi.org/10.1109/TIP.2003.819861'),
|
| 333 |
+
('Zhang et al. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. CVPR, 2018.',
|
| 334 |
+
'https://arxiv.org/abs/1801.03924'),
|
| 335 |
+
('Blender Foundation. Blender: Free and Open Source 3D Creation Suite.',
|
| 336 |
+
'https://www.blender.org/'),
|
| 337 |
+
]
|
| 338 |
+
references.extend(REFERENCES)
|
| 339 |
+
reference_list = "".join(
|
| 340 |
+
f'<li><a href="{url}" target="_blank" rel="noopener">{text}</a></li>'
|
| 341 |
+
for text, url in references
|
| 342 |
+
)
|
| 343 |
+
page = f'''<!doctype html><html lang="{"en" if en else "zh-CN"}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{title} — Phygital AI</title><meta name="description" content="{desc}"><meta property="og:type" content="article"><meta property="og:locale" content="{"en_US" if en else "zh_CN"}"><meta property="og:title" content="{title}"><meta property="og:description" content="{desc}"><meta property="og:image" content="{BASE_URL}assets/teaser_originals.png"><meta property="og:url" content="{BASE_URL}{current}"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="{title}"><meta name="twitter:description" content="{desc}"><meta name="twitter:image" content="{BASE_URL}assets/teaser_originals.png"><link rel="canonical" href="{BASE_URL}{current}"><link rel="alternate" hreflang="zh-CN" href="{BASE_URL}index.html"><link rel="alternate" hreflang="en" href="{BASE_URL}en.html"><link rel="stylesheet" href="style.css"><script type="importmap">{{"imports":{{"three":"./vendor/three/three.module.js"}}}}</script><script src="app.js" defer></script><script type="module" src="scene-compare.js"></script></head>
|
| 344 |
+
<body data-lang="{"en" if en else "zh"}"><a class="skip" href="#main">{"Skip to article" if en else "跳到正文"}</a><nav><a class="brand" href="index.html">ASTRA / WORLD MODELS</a><div><a href="index.html" {"aria-current='page'" if not en else ""}>中文</a><a href="en.html" {"aria-current='page'" if en else ""}>EN</a><a href="{CODE_URL}" target="_blank" rel="noopener noreferrer">GitHub ↗</a></div></nav><header><p class="eyebrow">RESEARCH ESSAY · EDITABLE WORLD MODELS</p><h1>{title}</h1><p class="lead">{desc}</p><div class="meta"><span>{"1 controlled scene" if en else "1 个受控场景"}</span><span>{"4 reconstruction routes" if en else "4 条重建路径"}</span><span>{"editable Blender outputs" if en else "可编辑 Blender 交付"}</span></div></header>
|
| 345 |
+
{hero_figure(en)}<div class="layout"><aside class="toc"><p>ON THIS PAGE</p>{toc}</aside><main id="main">
|
| 346 |
+
<section id="results"><p class="section-tag">01 / RESULTS</p><aside class="tldr"><strong>TL;DR</strong><p>{copy["tldr"]}</p></aside><h2>{copy["hook"]}</h2><p class="standfirst">{copy["intro1"]}</p><p>{copy["intro2"]}</p><div class="insight-strip"><div><strong>{copy["metric1"]}</strong><span>{copy["metric1_label"]}</span><small class="metric-reduction">{copy["metric1_reduction"]}</small></div><div><strong>{copy["metric2"]}</strong><span>{copy["metric2_label"]}</span><small class="metric-reduction">{copy["metric2_reduction"]}</small></div></div><p class="metric-caveat">{copy["metric_scope"]}</p></section>
|
| 347 |
+
<section id="motivation"><p class="section-tag">02 / MOTIVATION</p><h2>{copy["motivation_title"]}</h2><p>{copy["motivation1"]}</p><p>{copy["motivation2"]}</p><aside class="claim"><strong>{"Research question" if en else "研究问题"}</strong><p>{"How does progressively stronger geometric evidence change the fidelity—and the remaining failure modes—of an editable object-centric world?" if en else "逐步增强的几何证据,如何改变一个对象化可编辑世界的忠实度,以及它仍然保留的失败模式?"}</p></aside><h3>{"Contributions" if en else "本文贡献"}</h3><ol class="contributions">{contributions}</ol></section>
|
| 348 |
+
<section id="workflow"><p class="section-tag">03 / WORKFLOW</p><h2>{copy["method_title"]}</h2><p>{copy["method_intro"]}</p><p>{copy["method1"]}</p>{table(1)}<h3>{"Agentic reconstruction loop" if en else "Agentic 重建闭环"}</h3><div class="workflow-strip">{workflow}</div><p>{copy["method2"]}</p><aside class="notice"><strong>M1 diagnostic limitation.</strong> {"Its Sim(3)-aligned geometry and depth numbers describe shape after GT-assisted display alignment, not native metric recovery." if en else "其 Sim(3) 配准后的几何与深度数值描述 GT-assisted 显示配准后的形状,不代表原生米制恢复。"}</aside></section>
|
| 349 |
+
<section id="more-results"><p class="section-tag">04 / MORE RESULTS AND ANALYSIS</p><h2>{copy["results_title"]}</h2><article class="finding"><p class="finding-kicker">FINDING 01</p><h3>{copy["finding1_title"]}</h3><p>{copy["finding1"]}</p></article>{table(2)}<figure id="figure-1"><img loading="lazy" src="assets/figure14_abc.png" alt="Trajectory, native depth, and model depth"><figcaption><span>Figure 1.</span> {"The upstream trajectory and native-depth ranking does not map one-to-one onto frozen-scene depth." if en else "上游轨迹与原生深度的排序,并不会一一映射为冻结场景的深度排序。"}</figcaption></figure><article class="finding"><p class="finding-kicker">FINDING 02</p><h3>{copy["finding2_title"]}</h3><p>{copy["finding2"]}</p></article>{table(3)}<article class="finding finding-comparison"><p class="finding-kicker">FINDING 03</p><h3>{copy["finding3_title"]}</h3></article><div class="analysis-block"><h3>{copy["interactive_title"]}</h3><p>{copy["interactive1"]}</p>{overview_figure(en)}{scene_figure(en)}{fixed_figure(en)}<p>{copy["interactive2"]}</p></div><div class="analysis-block"><h3>{copy["discussion_title"]}</h3><h4>{copy["discussion1_title"]}</h4><p>{copy["discussion1"]}</p><h4>{copy["discussion2_title"]}</h4><p>{copy["discussion2"]}</p><h4>{copy["discussion3_title"]}</h4><p>{copy["discussion3"]}</p><figure id="figure-5"><img loading="lazy" src="assets/model_depth_error_five_views_m1_m4.png" alt="Model-depth error at five fixed evaluation views"><figcaption><span>Figure 5.</span> {"Model-depth error at the fixed-five check; teal marks missing or invalid predictions." if en else "固定 5 视角检查中的模型深度误差;青绿色表示缺失或无效预测。"}</figcaption></figure>{table(6)}{table(7)}</div>{office_case(en)}</section>
|
| 350 |
+
<section id="related-work"><p class="section-tag">05 / RELATED WORK</p><h2>{"From geometric measurement to editable Real2Sim" if en else "从几何测量到可编辑 Real2Sim"}</h2><p>{copy["positioning"]}</p><p>{"Our evaluation therefore spans both sides of the interface: upstream systems are judged as measurement pipelines, while the Blender outputs are judged as persistent spatial artifacts. This differs from evaluating pose, depth, or novel-view synthesis in isolation." if en else "因此,我们的评测同时覆盖接口两端:上游系统作为测量管线接受检验,Blender 输出则作为持久化空间产物接受检验;这不同于孤立地评估位姿、深度或新视角合成。"}</p>{related_links}</section>
|
| 351 |
+
<section id="limitations"><p class="section-tag">06 / LIMITATIONS</p><h2>{copy["limits_title"]}</h2><ul class="limits-list">{limits}</ul><p>{copy["evidence"]}</p>{downloads()}<p class="evidence-links"><a href="data/tables_1_7.json">Tables JSON</a> · <a href="data/scene_comparison.json">Scene manifest</a> · <a href="data/fixed_views.json">Fixed views</a> · <a href="evidence/publication_manifest.json">Publication manifest</a> · <a href="evidence/SHA256SUMS">SHA256</a></p></section>
|
| 352 |
+
<section id="citation"><p class="section-tag">07 / CITATION</p><h2>{"Cite this work" if en else "引用本文"}</h2><p>{"If this controlled study, its frozen assets, or its evaluation protocol supports your work, please cite the interactive article below." if en else "如果本研究的受控实验、冻结资产或评测协议对你的工作有帮助,请引用下面的交互式研究文章。"}</p><pre class="citation-block"><code>{citation}</code></pre></section>
|
| 353 |
+
<section id="references"><p class="section-tag">08 / REFERENCES</p><h2>{"References" if en else "参考文献"}</h2><ol class="references-list">{reference_list}</ol></section><noscript>JavaScript is required for tables and interactive figures.</noscript></main></div><footer>Agentic World · frozen evidence, editable outputs · <a href="{other}">{"中文" if en else "English"}</a></footer></body></html>'''
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
return editorial_page(page, en)
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
README='''# Agentic World Simulation and Mapping
|
| 360 |
+
|
| 361 |
+
Bilingual static research journal rebuilt from frozen local sources. Figure 3 uses one local Three.js renderer/camera/full viewport for split comparison of M1–M4 with GT. Figure 4 switches among 25 hash-verified source images. All viewer dependencies are local, with no CDN.
|
| 362 |
+
|
| 363 |
+
The build copies the unchanged `scene.glb`/`scene.blend` pairs, downloads and verifies `GT.glb`, copies five local Three.js modules, applies registrations only at runtime, and records provenance in `data/scene_comparison.json`.
|
| 364 |
+
|
| 365 |
+
```bash
|
| 366 |
+
python scripts/build.py --source ../world_lobby_four_trajectory_20260929
|
| 367 |
+
python scripts/validate.py
|
| 368 |
+
python -m http.server 8765
|
| 369 |
+
python scripts/browser_qa.py --url http://127.0.0.1:8765/
|
| 370 |
+
```
|
| 371 |
+
'''
|
| 372 |
+
|
| 373 |
+
def main():
|
| 374 |
+
ap=argparse.ArgumentParser(); ap.add_argument("--source",type=Path,default=DEFAULT_SOURCE)
|
| 375 |
+
source=ap.parse_args().source.resolve(); clean()
|
| 376 |
+
table_src=source/TABLE_SOURCE; tables=json.loads(table_src.read_text())
|
| 377 |
+
if list(tables["tables"]) != [f"table{i}" for i in range(1,8)]: raise ValueError("exactly table1..table7 required")
|
| 378 |
+
for key,rows in tables["tables"].items():
|
| 379 |
+
if [r["method"] for r in rows] != list(METHODS): raise ValueError(f"{key}: exactly M1..M4 required")
|
| 380 |
+
assets={}
|
| 381 |
+
for name in ("figure14_abc.png","fixed_five_view_comparison_m1_m4.jpg","model_depth_error_five_views_m1_m4.png"):
|
| 382 |
+
rel=f"astra_blender2/report/space/assets/{name}"; assets[f"assets/{name}"]=copy_checked(source/rel,ROOT/f"assets/{name}",source_label=rel)
|
| 383 |
+
teaser_rel="teaser_originals.png"
|
| 384 |
+
assets["assets/teaser_originals.png"]=copy_checked(source/teaser_rel,ROOT/"assets/teaser_originals.png",source_label=teaser_rel)
|
| 385 |
+
models={}
|
| 386 |
+
for method in METHODS:
|
| 387 |
+
models[method]={}
|
| 388 |
+
for ext in ("glb","blend"):
|
| 389 |
+
rel=f"astra_blender/models/{method}/scene.{ext}"; models[method][ext]=copy_checked(source/rel,ROOT/f"models/{method}/scene.{ext}",source_label=rel)
|
| 390 |
+
dump(ROOT/f"evidence/{method}/manifest.json",{"schema_version":2,"method":method,"files":models[method],"table_rows":{k:next(r for r in v if r["method"]==method) for k,v in tables["tables"].items()}})
|
| 391 |
+
gt=download_gt()
|
| 392 |
+
vendor={}
|
| 393 |
+
for rel in ("three.module.js","three.core.js","loaders/GLTFLoader.js","controls/OrbitControls.js","environments/RoomEnvironment.js","utils/BufferGeometryUtils.js"):
|
| 394 |
+
label=(REFERENCE/"vendor/three"/rel).relative_to(ROOT.parent).as_posix()
|
| 395 |
+
vendor[rel]=copy_checked(REFERENCE/"vendor/three"/rel,ROOT/"vendor/three"/rel,source_label=label)
|
| 396 |
+
c=[[1,0,0,0],[0,0,1,0],[0,-1,0,0],[0,0,0,1]]; ci=[[1,0,0,0],[0,0,-1,0],[0,1,0,0],[0,0,0,1]]
|
| 397 |
+
scene_models={"GT":{"url":"assets/comparison/GT.glb","sha256":GT_SHA,"bytes":GT_BYTES,"registration":"identity"}}
|
| 398 |
+
registrations={}
|
| 399 |
+
for method in METHODS:
|
| 400 |
+
if method=="M4":
|
| 401 |
+
blender=[[1 if i==j else 0 for j in range(4)] for i in range(4)]
|
| 402 |
+
src={"path":None,"sha256":None,"transform_direction":"GT_from_model","rule":"identity_world; source GLB retains Blender Z-up axes"}
|
| 403 |
+
gltf=c
|
| 404 |
+
formula="C (axis conversion only; GT_from_model is identity)"
|
| 405 |
+
else:
|
| 406 |
+
rel=f"{REG_DIR}/registration_{method}.json"; p=source/rel; reg=json.loads(p.read_text())
|
| 407 |
+
if reg.get("transform_direction")!="GT_from_model": raise ValueError(f"{method}: wrong direction")
|
| 408 |
+
blender=reg["transform"]; src={"path":rel,"sha256":sha(p),"transform_direction":"GT_from_model","status":reg.get("status"),"scope":reg.get("scope"),"limitations":reg.get("limitations")}
|
| 409 |
+
gltf=mm(mm(c,blender),ci)
|
| 410 |
+
formula="C * GT_from_model * C^-1"
|
| 411 |
+
registrations[method]={"source":src,"GT_from_model_blender_z_up":blender,"runtime_matrix_gltf_y_up":gltf,"formula":formula,"diagnostic_caveat":("M1 only: GT-assisted Sim(3) from five manual camera associations; diagnostic only; not native metric recovery." if method=="M1" else None)}
|
| 412 |
+
scene_models[method]={"url":f"models/{method}/scene.glb","sha256":models[method]["glb"]["sha256"],"bytes":models[method]["glb"]["bytes"],"runtime_matrix_gltf_y_up":gltf,"source_registration":src["path"]}
|
| 413 |
+
dump(ROOT/"data/scene_comparison.json",{"schema_version":2,"models":scene_models,"camera":{"target":[18,1.2,-21],"position":[24,23,-5],"fov":42,"near":.05,"far":500},"coordinate_conversion":{"reason":"glTF is Y-up while registration is Blender Z-up","C_mapping":"[x,y,z] -> [x,z,-y]","C":c,"C_inverse":ci,"runtime_formula":"C * T * C^-1"},"registrations":registrations,"display_cutaway":{"scope":"runtime display only; frozen GLB/Blend bytes remain unchanged","hide_name_pattern":"ceiling|roof|wall|facade","keep_name_pattern":"emblem|art|grass|metal","applies_to":list(METHODS),"gt_asset":"already exported as a cutaway display model"},"immutability":"Display copies and runtime registration do not alter frozen source GLB bytes.","m1_diagnostic_caveat":"M1 registration is diagnostic only and is not native metric recovery.","gt_asset":gt})
|
| 414 |
+
view_src=source/VIEW_SOURCE; inputs=json.loads(view_src.read_text())["rgb_figure"]["inputs"]
|
| 415 |
+
if len(inputs)!=25: raise ValueError("fixed-view input count is not 25")
|
| 416 |
+
fixed=[]
|
| 417 |
+
for item in inputs:
|
| 418 |
+
if item["method"] not in (*METHODS,"GT") or item["frame"] not in FRAMES: raise ValueError(item)
|
| 419 |
+
source_path=Path(item["path"])
|
| 420 |
+
source_label=source_path.relative_to(ROOT.parent).as_posix()
|
| 421 |
+
copied=copy_checked(source_path,ROOT/f"assets/fixed_views/{item['method']}/{item['frame']:03d}.png",item["sha256"],source_label=source_label)
|
| 422 |
+
fixed.append({"method":item["method"],"frame":item["frame"],"source":source_label,"published":copied["published"],"sha256":item["sha256"],"bytes":copied["bytes"]})
|
| 423 |
+
if {(x["method"],x["frame"]) for x in fixed}!={(m,f) for m in (*METHODS,"GT") for f in FRAMES}: raise ValueError("fixed-view matrix incomplete")
|
| 424 |
+
dump(ROOT/"data/fixed_views.json",{"schema_version":1,"source_manifest":VIEW_SOURCE,"source_manifest_sha256":sha(view_src),"frames":list(FRAMES),"methods":[*METHODS,"GT"],"images":fixed})
|
| 425 |
+
(ROOT/"data").mkdir(parents=True,exist_ok=True); shutil.copy2(table_src,ROOT/"data/tables_1_7.json")
|
| 426 |
+
dump(ROOT/"data/source_contract.json",{"schema_version":2,"old_site_baseline":"ae69dbe","source_root_name":source.name,"table_source":{"path":TABLE_SOURCE,"sha256":sha(table_src),"published_url":"data/tables_1_7.json"},"figures":assets,"models":models,"gt_asset":gt,"fixed_views_manifest":"data/fixed_views.json","scene_comparison_manifest":"data/scene_comparison.json","office_cafe_case_study":{"office_cafe":{"source_url":OFFICE_URL,"presentation":"local_models_and_synchronized_original_videos","included_assets":["original_model","legacy_model","input_video","procedural_model_video","scan_video","strong_shake"],"video_manifest":"data/office_video_media.json"}},"vendor":vendor,"tables":[{"number":i,"key":f"table{i}","methods":list(METHODS),"columns":list(tables["tables"][f"table{i}"][0]),"url":f"index.html#table-{i}","english_url":f"en.html#table-{i}"} for i in range(1,8)],"presentation":{"table2_hidden_columns":["alignment"],"table3_hidden_columns":["model_sha256","alignment"],"figure1_layout":"single supplied teaser image","metric_best_values":"bold, raw-value comparison"},"protocols":tables["protocols"],"m1_notice":tables["m1_notice"]})
|
| 427 |
+
academic_style=r'''#figure-2,#figure-5{width:100%;margin:30px 0}#figure-2>img,#figure-5>img{width:100%;background:var(--paper)}main h3{font-family:Georgia,"Noto Serif CJK SC",serif;font-size:23px;font-weight:500;line-height:1.4;margin:32px 0 10px}main h4{font:500 18px/1.45 Georgia,"Noto Serif CJK SC",serif;margin:28px 0 8px}.tldr{margin:0 0 34px;padding:20px 24px;border-left:4px solid var(--green);background:#edf3ee}.tldr strong{font-size:11px;letter-spacing:.16em;color:var(--green)}.tldr p{margin:5px 0 0;font:500 19px/1.65 Georgia,"Noto Serif CJK SC",serif}.contributions{padding-left:24px}.contributions li{margin:10px 0;padding-left:5px}.inline-sources{display:block;margin-top:12px;font-size:13px}.workflow-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;margin:22px 0 34px;border:1px solid var(--line);background:var(--line)}.workflow-strip div{display:flex;min-height:180px;padding:18px 15px;background:var(--white);flex-direction:column}.workflow-strip strong{margin-bottom:14px;font-size:12px;letter-spacing:.08em;color:var(--green)}.workflow-strip span{font-size:13px;line-height:1.6;color:var(--muted)}.insight-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:34px 0 12px;background:var(--line);border:1px solid var(--line)}.insight-strip div{display:flex;min-height:125px;padding:22px 18px;background:var(--white);flex-direction:column;justify-content:space-between}.insight-strip strong{font:500 25px/1.15 Georgia,serif;color:var(--green);letter-spacing:-.02em}.insight-strip span{font-size:11px;line-height:1.45;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.metric-caveat{margin:8px 0 0;color:var(--muted);font-size:12px}.claim{margin:30px 0;padding:20px 24px;border:1px solid var(--line);background:var(--white)}.claim strong,.finding-kicker{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--green)}.claim p{margin:8px 0 0;font:500 21px/1.55 Georgia,"Noto Serif CJK SC",serif}.finding{margin:42px 0 18px;padding:0 0 22px;border-bottom:1px solid var(--line)}.finding h3{margin:5px 0 12px}.finding p:last-child{margin-bottom:0}.analysis-block{margin-top:58px;padding-top:12px;border-top:1px solid var(--line)}.external-case{margin-bottom:10px}.limits-list{padding-left:22px}.limits-list li{margin:10px 0}.evidence-links{font-size:12px;margin-top:25px}.citation-block{overflow:auto;margin:22px 0;padding:22px;border:1px solid var(--line);background:var(--white);font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}.references-list{padding-left:24px}.references-list li{margin:13px 0;padding-left:6px}.references-list a{color:var(--ink)}@media(max-width:900px){.workflow-strip{grid-template-columns:1fr 1fr}.workflow-strip div{min-height:130px}}@media(max-width:700px){.insight-strip,.workflow-strip{grid-template-columns:1fr}.insight-strip div{min-height:98px}.workflow-strip div{min-height:auto}.claim p{font-size:18px}.tldr{padding:17px 19px}.tldr p{font-size:17px}.citation-block{padding:15px;font-size:11px}}'''
|
| 428 |
+
eager_preload='const fixedPreloads=[];for(const m of ["M1","M2","M3","M4","GT"])for(const f of [0,36,72,108,144]){const image=new Image();image.src=`assets/fixed_views/${m}/${String(f).padStart(3,"0")}.png`;fixedPreloads.push(image)}'
|
| 429 |
+
controls='const method=document.querySelector("#compare-method"),frame=document.querySelector("#compare-frame");'
|
| 430 |
+
if eager_preload not in APP or controls not in APP: raise ValueError("Figure 4 app template changed")
|
| 431 |
+
app_source=APP.replace(eager_preload,"").replace(controls,controls+"method.disabled=false;frame.disabled=false;")
|
| 432 |
+
write(ROOT/"style.css",STYLE+academic_style+"\n"); write(ROOT/"app.js",app_source+"\n"); write(ROOT/"scene-compare.js",SCENE_JS+"\n"); write(ROOT/"index.html",academic_page()+"\n"); write(ROOT/"en.html",academic_page(True)+"\n"); write(ROOT/"README.md",README); write(ROOT/"requirements.txt","playwright>=1.40,<2\n"); write(ROOT/".gitignore","__pycache__/\nqa/\n.venv/\n.publication.json\n"); (ROOT/".nojekyll").touch()
|
| 433 |
+
files=[]
|
| 434 |
+
for p in sorted(ROOT.rglob("*")):
|
| 435 |
+
if not p.is_file(): continue
|
| 436 |
+
rel=p.relative_to(ROOT)
|
| 437 |
+
if rel.parts[0] in (".git","scripts") or rel.name in ("SHA256SUMS","publication_manifest.json") or (len(rel.parts)==1 and rel.name.startswith("office-") and rel.suffix==".mp4") or rel.as_posix() in ("README.md","requirements.txt",".gitignore"): continue
|
| 438 |
+
files.append({"path":rel.as_posix(),"sha256":sha(p),"bytes":p.stat().st_size})
|
| 439 |
+
dump(ROOT/"evidence/publication_manifest.json",{"schema_version":2,"source_contract":"data/source_contract.json","files":files})
|
| 440 |
+
sums=[f'{sha(ROOT/r["path"])} {r["path"]}' for r in files]; sums.append(f'{sha(ROOT/"evidence/publication_manifest.json")} evidence/publication_manifest.json'); write(ROOT/"evidence/SHA256SUMS","\n".join(sums)+"\n")
|
| 441 |
+
print(json.dumps({"status":"BUILT","tables":7,"models":4,"fixed_views":25,"files":len(files)}))
|
| 442 |
+
if __name__=="__main__": main()
|
scripts/site_validator.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Validate the interactive publication and frozen-source provenance."""
|
| 3 |
+
import runpy
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
runpy.run_path(str(Path(__file__).with_name("site_validator_interactive.py")), run_name="__main__")
|
scripts/site_validator_interactive.py
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Validate interactive publication structure, provenance, and hashes."""
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from html.parser import HTMLParser
|
| 5 |
+
from urllib.parse import urlsplit, unquote
|
| 6 |
+
import hashlib, json, re
|
| 7 |
+
|
| 8 |
+
ROOT=Path(__file__).resolve().parents[1]
|
| 9 |
+
SOURCE=ROOT.parent/"world_lobby_four_trajectory_20260929"
|
| 10 |
+
METHODS=("M1","M2","M3","M4"); FRAMES=(0,36,72,108,144)
|
| 11 |
+
GT_SHA="6c28ab067c63c5b1fce19c6a972f3d66c7ac4d9bd9ce3b5a57e2e18f5641fe8f"
|
| 12 |
+
GT_BYTES=24816108
|
| 13 |
+
def sha(path): return hashlib.sha256(path.read_bytes()).hexdigest()
|
| 14 |
+
def mm(a,b): return [[sum(a[i][k]*b[k][j] for k in range(4)) for j in range(4)] for i in range(4)]
|
| 15 |
+
|
| 16 |
+
class Doc(HTMLParser):
|
| 17 |
+
def __init__(self,path):
|
| 18 |
+
super().__init__(); self.path=path; self.ids=set(); self.links=[]; self.tags=[]; self.meta=[]; self.canon=[]
|
| 19 |
+
self.feed(path.read_text(encoding="utf-8"))
|
| 20 |
+
def handle_starttag(self,tag,attrs):
|
| 21 |
+
a=dict(attrs); self.tags.append(tag)
|
| 22 |
+
if "id" in a:
|
| 23 |
+
assert a["id"] not in self.ids, f"duplicate id {a['id']}"; self.ids.add(a["id"])
|
| 24 |
+
for key in ("href","src"):
|
| 25 |
+
if key in a: self.links.append(a[key])
|
| 26 |
+
if tag=="meta" and a.get("property","").startswith("og:"): self.meta.append(a["property"])
|
| 27 |
+
if tag=="link" and a.get("rel")=="canonical": self.canon.append(a.get("href"))
|
| 28 |
+
|
| 29 |
+
tables=json.loads((ROOT/"data/tables_1_7.json").read_text())
|
| 30 |
+
assert list(tables["tables"])==[f"table{i}" for i in range(1,8)]
|
| 31 |
+
for key,rows in tables["tables"].items(): assert [r["method"] for r in rows]==list(METHODS),key
|
| 32 |
+
m4_table2=next(row for row in tables["tables"]["table2"] if row["method"]=="M4")
|
| 33 |
+
assert m4_table2["ate_m"]=="-" and m4_table2["rotation_deg"]=="-"
|
| 34 |
+
docs={name:Doc(ROOT/name) for name in ("index.html","en.html")}
|
| 35 |
+
required={"results","motivation","workflow","more-results","related-work","limitations","citation","references","office-cafe",
|
| 36 |
+
"model-select","scene-mode","scene-reset","scene-split","scene-retry","compare-method","compare-frame",
|
| 37 |
+
*{f"table-{i}" for i in range(1,8)},*{f"figure-{i}" for i in range(1,7)}}
|
| 38 |
+
for name,doc in docs.items():
|
| 39 |
+
assert required<=doc.ids,f"{name}: missing {required-doc.ids}"
|
| 40 |
+
assert "model-viewer" not in doc.tags and "model-viewer" not in (ROOT/name).read_text().lower()
|
| 41 |
+
assert len(doc.canon)==1 and doc.canon[0].startswith("https://")
|
| 42 |
+
assert {"og:title","og:description","og:image","og:url"}<=set(doc.meta)
|
| 43 |
+
for link in doc.links:
|
| 44 |
+
u=urlsplit(link)
|
| 45 |
+
if u.scheme or u.netloc: continue
|
| 46 |
+
target=(ROOT/unquote(u.path)).resolve() if u.path else ROOT/name
|
| 47 |
+
assert target.is_relative_to(ROOT) and target.exists(),f"broken link {name}: {link}"
|
| 48 |
+
if u.fragment and target.suffix==".html":
|
| 49 |
+
target_doc=docs.get(target.name) or Doc(target)
|
| 50 |
+
assert unquote(u.fragment) in target_doc.ids,f"broken anchor {link}"
|
| 51 |
+
html=(ROOT/name).read_text()
|
| 52 |
+
assert all(f"Figure {i}." in html for i in range(1,7))
|
| 53 |
+
assert html.index('id="table-2"') < html.index('id="figure-2"')
|
| 54 |
+
assert html.index('id="figure-4"') < html.index('id="figure-5"')
|
| 55 |
+
assert 'assets/fixed_views/GT/000.png' in html and 'assets/fixed_views/M1/000.png' in html
|
| 56 |
+
assert 'src="https://office-cafe-vipe.hiwtishere.chatgpt.site/"' in html
|
| 57 |
+
assert 'href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake.html"' in html
|
| 58 |
+
assert 'type="importmap"' in html and 'scene-compare.js' in html
|
| 59 |
+
assert 'name="twitter:card" content="summary_large_image"' in html
|
| 60 |
+
assert 'name="twitter:image" content="https://wentingw.github.io/agentic-world-blog/assets/teaser_originals.png"' in html
|
| 61 |
+
assert '<option value="M4" selected>M4</option>' in html
|
| 62 |
+
section_order=[html.index(f'<section id="{section}"') for section in (
|
| 63 |
+
"results","motivation","workflow","more-results","related-work","limitations","citation","references")]
|
| 64 |
+
assert section_order==sorted(section_order)
|
| 65 |
+
assert 'class="citation-block"' in html and 'class="references-list"' in html
|
| 66 |
+
|
| 67 |
+
assert not (ROOT/"vendor/model-viewer-4.1.0.min.js").exists()
|
| 68 |
+
published_runtime="\n".join((ROOT/name).read_text(errors="ignore")
|
| 69 |
+
for name in ("index.html","en.html","app.js","scene-compare.js","style.css"))
|
| 70 |
+
assert "model-viewer" not in published_runtime.lower()
|
| 71 |
+
zh=(ROOT/"index.html").read_text()
|
| 72 |
+
en=(ROOT/"en.html").read_text()
|
| 73 |
+
assert "M4 revision 4 尚未完成完整独立视觉复审" in zh
|
| 74 |
+
assert "运行时配准与显示选择不会修改可下载的冻结 GLB 或 Blend 文件" in zh
|
| 75 |
+
assert "runtime registration and display choices do not modify the downloadable frozen glb or blend files" in en.lower()
|
| 76 |
+
assert "100 视角检查衡量一致性,而不是未见视角泛化" in zh
|
| 77 |
+
assert "the 100-view check measures consistency, not unseen-view generalization" in en.lower()
|
| 78 |
+
assert "一个场景可以看起来合理,却在空间上是错的" in zh
|
| 79 |
+
assert "a scene can look plausible and still be spatially wrong" in en.lower()
|
| 80 |
+
for html in (zh,en):
|
| 81 |
+
assert 'class="tldr"' in html
|
| 82 |
+
assert 'class="contributions"' in html
|
| 83 |
+
assert html.count('class="workflow-strip"')==1
|
| 84 |
+
assert html.count('<li><a href=')>=7
|
| 85 |
+
assert all(url in html for url in (
|
| 86 |
+
"https://research.nvidia.com/labs/toronto-ai/vipe/",
|
| 87 |
+
"https://arxiv.org/abs/2007.11898",
|
| 88 |
+
"https://arxiv.org/abs/2511.10647",
|
| 89 |
+
"https://kevinxu02.github.io/real2sim-indoor-site/"))
|
| 90 |
+
assert all(stage in zh for stage in ("观察","建模","验证","冻结","评测"))
|
| 91 |
+
assert all(stage in en for stage in ("Observe","Build","Verify","Freeze","Evaluate"))
|
| 92 |
+
|
| 93 |
+
contract=json.loads((ROOT/"data/source_contract.json").read_text())
|
| 94 |
+
assert contract["presentation"]["table3_hidden_columns"]==["model_sha256","alignment"]
|
| 95 |
+
assert contract["presentation"]["table2_hidden_columns"]==["alignment"]
|
| 96 |
+
assert contract["presentation"]["figure1_layout"]=="single supplied teaser image"
|
| 97 |
+
assert contract["external_embed"]["office_cafe"]["retained_features"]==[
|
| 98 |
+
"model","scan_to_model","source_video_to_model","source_camera_trajectory_playback",
|
| 99 |
+
"shake_control","shake_gentle","shake_strong"]
|
| 100 |
+
src_table=SOURCE/contract["table_source"]["path"]
|
| 101 |
+
assert sha(src_table)==contract["table_source"]["sha256"]==sha(ROOT/"data/tables_1_7.json")
|
| 102 |
+
for published,item in contract["figures"].items():
|
| 103 |
+
assert sha(ROOT/published)==item["sha256"]==sha(SOURCE/item["source"])
|
| 104 |
+
for method,files in contract["models"].items():
|
| 105 |
+
for item in files.values():
|
| 106 |
+
assert sha(ROOT/item["published"])==item["sha256"]==sha(SOURCE/item["source"])
|
| 107 |
+
assert len(list((ROOT/"models").glob("M*/scene.glb")))==4
|
| 108 |
+
assert len(list((ROOT/"models").glob("M*/scene.blend")))==4
|
| 109 |
+
|
| 110 |
+
gt=ROOT/"assets/comparison/GT.glb"
|
| 111 |
+
assert gt.stat().st_size==GT_BYTES and sha(gt)==GT_SHA
|
| 112 |
+
scene=json.loads((ROOT/"data/scene_comparison.json").read_text())
|
| 113 |
+
assert scene["gt_asset"]["source_url"]=="https://wentingw.github.io/astra-world-model-blog/assets/comparison/GT.glb"
|
| 114 |
+
assert scene["gt_asset"]["sha256"]==GT_SHA and scene["gt_asset"]["bytes"]==GT_BYTES
|
| 115 |
+
assert scene["camera"]=={"target":[18,1.2,-21],"position":[18,10,-3],"fov":42,"near":0.05,"far":500}
|
| 116 |
+
c=[[1,0,0,0],[0,0,1,0],[0,-1,0,0],[0,0,0,1]]; ci=[[1,0,0,0],[0,0,-1,0],[0,1,0,0],[0,0,0,1]]
|
| 117 |
+
assert scene["coordinate_conversion"]["C_mapping"]=="[x,y,z] -> [x,z,-y]"
|
| 118 |
+
assert scene["display_cutaway"]["hide_name_pattern"]=="ceiling|roof|wall|facade"
|
| 119 |
+
assert scene["display_cutaway"]["keep_name_pattern"]=="mirror|emblem|art|grass|metal"
|
| 120 |
+
for method in METHODS:
|
| 121 |
+
reg=scene["registrations"][method]
|
| 122 |
+
if method=="M4":
|
| 123 |
+
assert reg["source"]["rule"]=="identity_world; source GLB retains Blender Z-up axes"
|
| 124 |
+
assert reg["source"]["path"] is None
|
| 125 |
+
assert reg["formula"]=="C (axis conversion only; GT_from_model is identity)"
|
| 126 |
+
assert reg["runtime_matrix_gltf_y_up"]==c
|
| 127 |
+
else:
|
| 128 |
+
assert reg["formula"]=="C * GT_from_model * C^-1"
|
| 129 |
+
expected=f"astra_blender2/evaluation/reference_style_figures/registration_{method}.json"
|
| 130 |
+
source=SOURCE/expected; raw=json.loads(source.read_text())
|
| 131 |
+
assert reg["source"]["path"]==expected and reg["source"]["sha256"]==sha(source)
|
| 132 |
+
assert reg["source"]["transform_direction"]=="GT_from_model"
|
| 133 |
+
assert reg["GT_from_model_blender_z_up"]==raw["transform"]
|
| 134 |
+
assert reg["runtime_matrix_gltf_y_up"]==mm(mm(c,reg["GT_from_model_blender_z_up"]),ci)
|
| 135 |
+
assert "diagnostic only" in scene["m1_diagnostic_caveat"].lower()
|
| 136 |
+
|
| 137 |
+
fixed=json.loads((ROOT/"data/fixed_views.json").read_text())
|
| 138 |
+
source_views=SOURCE/fixed["source_manifest"]
|
| 139 |
+
assert fixed["source_manifest_sha256"]==sha(source_views)
|
| 140 |
+
source_data=json.loads(source_views.read_text())["rgb_figure"]["inputs"]
|
| 141 |
+
expected={(x["method"],x["frame"]):x["sha256"] for x in source_data}
|
| 142 |
+
assert len(fixed["images"])==25 and len(expected)==25
|
| 143 |
+
assert {(x["method"],x["frame"]) for x in fixed["images"]}=={(m,f) for m in (*METHODS,"GT") for f in FRAMES}
|
| 144 |
+
for item in fixed["images"]:
|
| 145 |
+
assert item["sha256"]==expected[(item["method"],item["frame"])]==sha(ROOT/item["published"])
|
| 146 |
+
assert not Path(item["source"]).is_absolute(), item["source"]
|
| 147 |
+
|
| 148 |
+
assert all(not Path(item["source"]).is_absolute() for item in contract["vendor"].values())
|
| 149 |
+
|
| 150 |
+
for rel in ("three.module.js","three.core.js","loaders/GLTFLoader.js","controls/OrbitControls.js",
|
| 151 |
+
"environments/RoomEnvironment.js","utils/BufferGeometryUtils.js"):
|
| 152 |
+
assert (ROOT/"vendor/three"/rel).is_file(),rel
|
| 153 |
+
js=(ROOT/"scene-compare.js").read_text()
|
| 154 |
+
assert "setScissor(" in js and "singleCamera:true" in js and "singleViewport:true" in js
|
| 155 |
+
assert "runtime_matrix_gltf_y_up" in js and "applyMatrix4" in js
|
| 156 |
+
assert "hiddenCutaway" in js and "ceiling|roof|wall|facade" in js
|
| 157 |
+
app=(ROOT/"app.js").read_text()
|
| 158 |
+
assert '2:new Set(["alignment"])' in app
|
| 159 |
+
assert '3:new Set(["model_sha256","alignment"])' in app
|
| 160 |
+
assert 'document.createElement("strong")' in app
|
| 161 |
+
assert "fixedPreloads" not in app
|
| 162 |
+
assert 'method.disabled=false;frame.disabled=false;' in app
|
| 163 |
+
style=(ROOT/"style.css").read_text()
|
| 164 |
+
assert "#figure-5,#figure-6{width:100%;margin:30px 0}" in style
|
| 165 |
+
for name in ("index.html","en.html"):
|
| 166 |
+
html=(ROOT/name).read_text()
|
| 167 |
+
assert '<figure class="hero" id="figure-1"><img src="assets/teaser_originals.png"' in html
|
| 168 |
+
|
| 169 |
+
manifest=json.loads((ROOT/"evidence/publication_manifest.json").read_text())
|
| 170 |
+
assert not any(row["path"].startswith("office-") and row["path"].endswith(".mp4") for row in manifest["files"])
|
| 171 |
+
for row in manifest["files"]: assert sha(ROOT/row["path"])==row["sha256"],row["path"]
|
| 172 |
+
for line in (ROOT/"evidence/SHA256SUMS").read_text().splitlines():
|
| 173 |
+
expected_sha,rel=line.split(" ",1); assert sha(ROOT/rel)==expected_sha,rel
|
| 174 |
+
print(json.dumps({"status":"PASS","tables":7,"models":4,"fixed_views":25,"figures":6,
|
| 175 |
+
"checks":["links/anchors","GT SHA256","fixed-view SHA256","registration provenance","original GLB identity","no model-viewer"]},ensure_ascii=False))
|
scripts/validate.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Public entry point for publication validation."""
|
| 3 |
+
import runpy
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
runpy.run_path(str(Path(__file__).with_name("validate_publication.py")), run_name="__main__")
|
scripts/validate_publication.py
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Validate a publication checkout without access to its original sources."""
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import hashlib
|
| 7 |
+
import json
|
| 8 |
+
import re
|
| 9 |
+
import unittest
|
| 10 |
+
from copy import deepcopy
|
| 11 |
+
from collections import Counter
|
| 12 |
+
from html.parser import HTMLParser
|
| 13 |
+
from html import unescape
|
| 14 |
+
from pathlib import Path
|
| 15 |
+
from urllib.parse import unquote, urlsplit
|
| 16 |
+
from unittest.mock import patch
|
| 17 |
+
|
| 18 |
+
from editorial import narrative_copy, reconstruction_reductions
|
| 19 |
+
from site_builder_interactive import academic_page
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 23 |
+
PAGES = ("index.html", "en.html", "zh.html")
|
| 24 |
+
TITLE = "AWSM: Agentic World Simulation and Mapping — Phygital AI"
|
| 25 |
+
CANONICAL_ROOT = "https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"
|
| 26 |
+
VIDEO = "assets/embodied-demo/four-robots-214924-156s-phone.mp4"
|
| 27 |
+
POSTER = "assets/embodied-demo/navigation-214924-poster.png"
|
| 28 |
+
HEX_SHA256 = re.compile(r"^[0-9a-f]{64}$")
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def load_json(relative_path: str) -> dict:
|
| 32 |
+
return json.loads((ROOT / relative_path).read_text(encoding="utf-8"))
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def sha256(path: Path) -> str:
|
| 36 |
+
digest = hashlib.sha256()
|
| 37 |
+
with path.open("rb") as stream:
|
| 38 |
+
for chunk in iter(lambda: stream.read(1024 * 1024), b""):
|
| 39 |
+
digest.update(chunk)
|
| 40 |
+
return digest.hexdigest()
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class Document(HTMLParser):
|
| 44 |
+
def __init__(self, path: Path) -> None:
|
| 45 |
+
super().__init__(convert_charrefs=True)
|
| 46 |
+
self.path = path
|
| 47 |
+
self.ids: list[str] = []
|
| 48 |
+
self.references: list[tuple[str, str, str]] = []
|
| 49 |
+
self.canonicals: list[str] = []
|
| 50 |
+
self.titles: list[str] = []
|
| 51 |
+
self.videos: list[dict] = []
|
| 52 |
+
self._video: dict | None = None
|
| 53 |
+
self.section_text: dict[str, list[str]] = {}
|
| 54 |
+
self._title_depth = 0
|
| 55 |
+
self._sections: list[str] = []
|
| 56 |
+
self.feed(path.read_text(encoding="utf-8"))
|
| 57 |
+
|
| 58 |
+
def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None:
|
| 59 |
+
attributes = dict(attrs)
|
| 60 |
+
element_id = attributes.get("id")
|
| 61 |
+
if element_id is not None:
|
| 62 |
+
self.ids.append(element_id)
|
| 63 |
+
if tag == "section":
|
| 64 |
+
self._sections.append(element_id or "")
|
| 65 |
+
if element_id:
|
| 66 |
+
self.section_text.setdefault(element_id, [])
|
| 67 |
+
if tag == "title":
|
| 68 |
+
self._title_depth += 1
|
| 69 |
+
for attribute in ("href", "src"):
|
| 70 |
+
value = attributes.get(attribute)
|
| 71 |
+
if value:
|
| 72 |
+
self.references.append((tag, attribute, value))
|
| 73 |
+
rel = (attributes.get("rel") or "").split()
|
| 74 |
+
if tag == "link" and "canonical" in rel:
|
| 75 |
+
self.canonicals.append(attributes.get("href") or "")
|
| 76 |
+
if tag == "video":
|
| 77 |
+
self._video = {
|
| 78 |
+
"attributes": attributes,
|
| 79 |
+
"section": self._sections[-1] if self._sections else "",
|
| 80 |
+
"sources": [],
|
| 81 |
+
}
|
| 82 |
+
self.videos.append(self._video)
|
| 83 |
+
elif tag == "source" and self._video is not None and attributes.get("src"):
|
| 84 |
+
self._video["sources"].append(attributes["src"])
|
| 85 |
+
|
| 86 |
+
def handle_startendtag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None:
|
| 87 |
+
self.handle_starttag(tag, attrs)
|
| 88 |
+
|
| 89 |
+
def handle_endtag(self, tag: str) -> None:
|
| 90 |
+
if tag == "title":
|
| 91 |
+
self._title_depth -= 1
|
| 92 |
+
if tag == "video":
|
| 93 |
+
self._video = None
|
| 94 |
+
if tag == "section" and self._sections:
|
| 95 |
+
self._sections.pop()
|
| 96 |
+
|
| 97 |
+
def handle_data(self, data: str) -> None:
|
| 98 |
+
if self._title_depth:
|
| 99 |
+
self.titles.append(data)
|
| 100 |
+
for section_id in self._sections:
|
| 101 |
+
if section_id:
|
| 102 |
+
self.section_text[section_id].append(data)
|
| 103 |
+
|
| 104 |
+
@property
|
| 105 |
+
def title(self) -> str:
|
| 106 |
+
return " ".join("".join(self.titles).split())
|
| 107 |
+
|
| 108 |
+
def text_for(self, section_id: str) -> str:
|
| 109 |
+
return " ".join("".join(self.section_text.get(section_id, [])).split())
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
class PublicationValidation(unittest.TestCase):
|
| 113 |
+
@classmethod
|
| 114 |
+
def setUpClass(cls) -> None:
|
| 115 |
+
cls.contract = load_json("data/source_contract.json")
|
| 116 |
+
cls.manifest = load_json("evidence/publication_manifest.json")
|
| 117 |
+
cls.demo = load_json("data/embodied_demo.json")
|
| 118 |
+
cls.documents = {name: Document(ROOT / name) for name in PAGES}
|
| 119 |
+
|
| 120 |
+
def assert_hashed_file(self, relative_path: str, expected_sha: str, expected_bytes=None) -> None:
|
| 121 |
+
self.assertIsInstance(relative_path, str)
|
| 122 |
+
self.assertTrue(relative_path, "empty published path")
|
| 123 |
+
self.assertRegex(expected_sha, HEX_SHA256)
|
| 124 |
+
path = ROOT / relative_path
|
| 125 |
+
self.assertTrue(path.is_file(), f"missing file: {relative_path}")
|
| 126 |
+
self.assertEqual(sha256(path), expected_sha, relative_path)
|
| 127 |
+
if expected_bytes is not None:
|
| 128 |
+
self.assertEqual(path.stat().st_size, expected_bytes, relative_path)
|
| 129 |
+
|
| 130 |
+
def test_source_contract_published_hashes(self) -> None:
|
| 131 |
+
records = list(self.contract["figures"].values())
|
| 132 |
+
for model in self.contract["models"].values():
|
| 133 |
+
records.extend(model.values())
|
| 134 |
+
records.extend(self.contract["vendor"].values())
|
| 135 |
+
records.append(self.contract["gt_asset"])
|
| 136 |
+
for record in records:
|
| 137 |
+
self.assert_hashed_file(record["published"], record["sha256"], record.get("bytes"))
|
| 138 |
+
|
| 139 |
+
def test_tables_and_figures_exist_in_both_languages(self) -> None:
|
| 140 |
+
required = {f"table-{number}" for number in (1, 2, 3, 6, 7)}
|
| 141 |
+
required |= {f"figure-{number}" for number in range(1, 6)}
|
| 142 |
+
self.assertEqual([row["number"] for row in self.contract["tables"]], list(range(1, 8)))
|
| 143 |
+
for name, document in self.documents.items():
|
| 144 |
+
self.assertTrue(required <= set(document.ids), f"{name}: missing {sorted(required - set(document.ids))}")
|
| 145 |
+
self.assertFalse({"table-4", "table-5"} & set(document.ids), f"{name}: removed appearance tables returned")
|
| 146 |
+
|
| 147 |
+
def test_editorial_preserves_experiment_copy(self) -> None:
|
| 148 |
+
protected = (
|
| 149 |
+
"intro2", "method1", "method2", "workflow", "finding1_title", "finding1", "finding2_title", "finding2",
|
| 150 |
+
"finding3_title", "discussion1_title", "discussion1",
|
| 151 |
+
"discussion2_title", "discussion2", "discussion3_title", "discussion3",
|
| 152 |
+
"metric1", "metric1_label", "metric2", "metric2_label", "metric3", "metric3_label",
|
| 153 |
+
)
|
| 154 |
+
|
| 155 |
+
def check_copy(copy, english):
|
| 156 |
+
original = deepcopy(copy)
|
| 157 |
+
narrative_copy(copy, english)
|
| 158 |
+
for key in protected:
|
| 159 |
+
self.assertEqual(copy[key], original[key], f"{english}: {key}")
|
| 160 |
+
self.assertEqual(copy["limits"][:len(original["limits"])], original["limits"])
|
| 161 |
+
self.assertEqual(len(copy["contributions"]), 3)
|
| 162 |
+
|
| 163 |
+
with patch("site_builder_interactive.narrative_copy", side_effect=check_copy):
|
| 164 |
+
academic_page(True)
|
| 165 |
+
academic_page(False)
|
| 166 |
+
|
| 167 |
+
def test_narrative_roles_and_scope(self) -> None:
|
| 168 |
+
sections = ["results", "motivation", "workflow", "more-results", "embodied-demo", "related-work", "limitations", "citation", "references"]
|
| 169 |
+
for name, document in self.documents.items():
|
| 170 |
+
self.assertEqual([element for element in document.ids if element in sections], sections)
|
| 171 |
+
markup = (ROOT / name).read_text(encoding="utf-8")
|
| 172 |
+
toc = re.search(r'<aside class="toc">(.*?)</aside>', markup, re.S).group(1)
|
| 173 |
+
self.assertEqual(re.findall(r'href="#([^"]+)"', toc), sections)
|
| 174 |
+
chinese = name == "zh.html"
|
| 175 |
+
results = document.text_for("results")
|
| 176 |
+
self.assertTrue(results.startswith("01 / OVERVIEW"))
|
| 177 |
+
self.assertNotIn("01 / RESULTS", markup)
|
| 178 |
+
self.assertIn('<a href="#results">' + ("概览" if chinese else "Overview") + '</a>', toc)
|
| 179 |
+
self.assertIn('<a href="#more-results">' + ("结果与分析" if chinese else "Results & analysis") + '</a>', toc)
|
| 180 |
+
self.assertTrue(document.text_for("more-results").startswith("04 / RESULTS AND ANALYSIS"))
|
| 181 |
+
self.assertIn("大模型智能体" if chinese else "large-model agents", results)
|
| 182 |
+
self.assertIn("agentic", results.lower())
|
| 183 |
+
self.assertIn("NVIDIA Isaac Sim", results)
|
| 184 |
+
self.assertNotIn("No universal winner", results)
|
| 185 |
+
self.assertNotIn("PSNR, SSIM, and LPIPS disagree", results)
|
| 186 |
+
self.assertLess(markup.index('id="figure-2"'), markup.index('id="figure-3"'))
|
| 187 |
+
self.assertLess(markup.index('id="figure-3"'), markup.index('id="figure-4"'))
|
| 188 |
+
for suffix in ("?lang=en", "shake?lang=en"):
|
| 189 |
+
self.assertIn(f'href="https://office-cafe-vipe.hiwtishere.chatgpt.site/{suffix}"', markup)
|
| 190 |
+
self.assertIn("可复用的仿真就绪" if chinese else "reusable simulation-ready", results)
|
| 191 |
+
self.assertIn("控制器承担另一种角色" if chinese else "controllers have a separate role", document.text_for("workflow"))
|
| 192 |
+
self.assertIn("而非学习得到的动力学预测模型" if chinese else "not a learned dynamics predictor", document.text_for("motivation"))
|
| 193 |
+
self.assertIn("特定场景的仿真集成" if chinese else "scene-specific simulation integration", document.text_for("related-work"))
|
| 194 |
+
|
| 195 |
+
def test_ids_links_and_anchors(self) -> None:
|
| 196 |
+
for name, document in self.documents.items():
|
| 197 |
+
duplicates = sorted(item for item, count in Counter(document.ids).items() if count > 1)
|
| 198 |
+
self.assertFalse(duplicates, f"{name}: duplicate ids {duplicates}")
|
| 199 |
+
for _tag, _attribute, reference in document.references:
|
| 200 |
+
parsed = urlsplit(reference)
|
| 201 |
+
if parsed.scheme or parsed.netloc or reference.startswith("//"):
|
| 202 |
+
continue
|
| 203 |
+
if any(marker in reference for marker in ("{{", "}}", "${")):
|
| 204 |
+
continue
|
| 205 |
+
if parsed.path:
|
| 206 |
+
relative = Path(unquote(parsed.path.lstrip("/")))
|
| 207 |
+
target = (ROOT / relative) if parsed.path.startswith("/") else (document.path.parent / relative)
|
| 208 |
+
target = target.resolve()
|
| 209 |
+
self.assertTrue(target.is_relative_to(ROOT), f"{name}: path escapes publication: {reference}")
|
| 210 |
+
self.assertTrue(target.exists(), f"{name}: broken local reference: {reference}")
|
| 211 |
+
else:
|
| 212 |
+
target = document.path
|
| 213 |
+
if parsed.fragment:
|
| 214 |
+
self.assertEqual(target.suffix.lower(), ".html", f"{name}: fragment targets non-HTML: {reference}")
|
| 215 |
+
target_document = self.documents.get(target.name) or Document(target)
|
| 216 |
+
self.assertIn(unquote(parsed.fragment), target_document.ids, f"{name}: broken anchor: {reference}")
|
| 217 |
+
|
| 218 |
+
def test_manifest_files_match_bytes_and_hashes(self) -> None:
|
| 219 |
+
seen: set[str] = set()
|
| 220 |
+
for record in self.manifest["files"]:
|
| 221 |
+
relative_path = record["path"]
|
| 222 |
+
self.assertNotIn(relative_path, seen, f"duplicate manifest path: {relative_path}")
|
| 223 |
+
seen.add(relative_path)
|
| 224 |
+
self.assert_hashed_file(relative_path, record["sha256"], record["bytes"])
|
| 225 |
+
|
| 226 |
+
def test_sha256sums_matches_manifest_and_files(self) -> None:
|
| 227 |
+
sums: dict[str, str] = {}
|
| 228 |
+
for line_number, line in enumerate((ROOT / "evidence/SHA256SUMS").read_text(encoding="utf-8").splitlines(), 1):
|
| 229 |
+
match = re.fullmatch(r"([0-9a-f]{64}) (.+)", line)
|
| 230 |
+
self.assertIsNotNone(match, f"SHA256SUMS:{line_number}: invalid line")
|
| 231 |
+
expected_sha, relative_path = match.groups()
|
| 232 |
+
self.assertNotIn(relative_path, sums, f"SHA256SUMS duplicate: {relative_path}")
|
| 233 |
+
sums[relative_path] = expected_sha
|
| 234 |
+
self.assert_hashed_file(relative_path, expected_sha)
|
| 235 |
+
manifest_sums = {record["path"]: record["sha256"] for record in self.manifest["files"]}
|
| 236 |
+
manifest_path = "evidence/publication_manifest.json"
|
| 237 |
+
expected_sums = dict(manifest_sums)
|
| 238 |
+
expected_sums[manifest_path] = sha256(ROOT / manifest_path)
|
| 239 |
+
self.assertEqual(sums, expected_sums)
|
| 240 |
+
|
| 241 |
+
def test_embodied_demo_metadata_and_media(self) -> None:
|
| 242 |
+
media = self.demo["media"]
|
| 243 |
+
self.assertEqual(media["video"], VIDEO)
|
| 244 |
+
self.assertEqual(media["poster"], POSTER)
|
| 245 |
+
self.assertIsInstance(media["duration_s"], (int, float))
|
| 246 |
+
self.assertGreater(media["duration_s"], 0)
|
| 247 |
+
self.assertIsInstance(self.demo["run_id"], str)
|
| 248 |
+
self.assertTrue(self.demo["run_id"].strip())
|
| 249 |
+
self.assertEqual(self.demo["audit"]["status"], "FAILED")
|
| 250 |
+
self.assertEqual(self.demo["navigation"]["localization"], "simulator_pose")
|
| 251 |
+
self.assertEqual(self.demo["navigation"]["route"], "predefined")
|
| 252 |
+
self.assert_hashed_file(media["video"], media["sha256"], media["bytes"])
|
| 253 |
+
self.assertEqual(media["duration_s"], 156.0)
|
| 254 |
+
self.assertEqual(media["frame_count"], 4680)
|
| 255 |
+
self.assertEqual(self.demo["run_id"], "sceneweft-walljourney-20260930-214924")
|
| 256 |
+
self.assert_hashed_file(media["poster"], media["poster_sha256"])
|
| 257 |
+
self.assert_hashed_file(media["hd"]["video"], media["hd"]["sha256"], media["hd"]["bytes"])
|
| 258 |
+
self.assert_hashed_file(media["map"]["image"], media["map"]["sha256"], media["map"]["bytes"])
|
| 259 |
+
self.assertEqual(self.demo["audit"]["measured_terminal_hold_s"], 7.994999821297824)
|
| 260 |
+
audit = load_json("evidence/embodied-demo-audit.json")
|
| 261 |
+
self.assertEqual(audit["run_id"], self.demo["run_id"])
|
| 262 |
+
self.assertEqual([check["check"] for check in audit["failed_checks"]], ["measured_terminal_health_and_formation_hold"])
|
| 263 |
+
delivery = load_json("evidence/embodied-demo-delivery.json")
|
| 264 |
+
self.assertEqual(delivery["run_id"], self.demo["run_id"])
|
| 265 |
+
for binding in delivery["asset_bindings"]:
|
| 266 |
+
self.assert_hashed_file(binding["published"], binding["sha256"])
|
| 267 |
+
|
| 268 |
+
def test_embodied_demo_markup_and_bilingual_copy(self) -> None:
|
| 269 |
+
navigation_terms = {
|
| 270 |
+
"index.html": ("navigation", "simulation"),
|
| 271 |
+
"en.html": ("navigation", "simulation"),
|
| 272 |
+
"zh.html": ("导航", "仿真"),
|
| 273 |
+
}
|
| 274 |
+
for name, document in self.documents.items():
|
| 275 |
+
self.assertIn("embodied-demo", document.ids, f"{name}: missing embodied-demo section")
|
| 276 |
+
matching_videos = [
|
| 277 |
+
video for video in document.videos
|
| 278 |
+
if video["section"] == "embodied-demo" and video["sources"] == [VIDEO]
|
| 279 |
+
]
|
| 280 |
+
self.assertEqual(len(matching_videos), 1, f"{name}: expected one embodied demo video")
|
| 281 |
+
self.assertEqual(
|
| 282 |
+
sum(VIDEO in video["sources"] for video in document.videos),
|
| 283 |
+
1,
|
| 284 |
+
f"{name}: demo source must belong to exactly one video",
|
| 285 |
+
)
|
| 286 |
+
video = matching_videos[0]["attributes"]
|
| 287 |
+
self.assertNotIn("src", video)
|
| 288 |
+
self.assertEqual(video.get("poster"), POSTER)
|
| 289 |
+
self.assertIn(video.get("preload", "metadata").lower(), {"none", "metadata"})
|
| 290 |
+
self.assertIn("controls", video)
|
| 291 |
+
self.assertIn("playsinline", video)
|
| 292 |
+
self.assertNotIn("autoplay", video)
|
| 293 |
+
section_text = document.text_for("embodied-demo").lower()
|
| 294 |
+
for term in navigation_terms[name]:
|
| 295 |
+
self.assertIn(term, section_text, f"{name}: embodied demo must state {term!r}")
|
| 296 |
+
self.assertIn("20260930-214924", section_text)
|
| 297 |
+
self.assertIn("2:36", section_text)
|
| 298 |
+
self.assertNotIn("235.2", section_text)
|
| 299 |
+
self.assertIn("demo-route-map", document.ids)
|
| 300 |
+
|
| 301 |
+
def test_title_and_language_specific_canonical(self) -> None:
|
| 302 |
+
expected = {
|
| 303 |
+
"index.html": CANONICAL_ROOT,
|
| 304 |
+
"en.html": CANONICAL_ROOT,
|
| 305 |
+
"zh.html": CANONICAL_ROOT + "zh.html",
|
| 306 |
+
}
|
| 307 |
+
for name, document in self.documents.items():
|
| 308 |
+
self.assertEqual(document.title, "AWSM:智能体世界仿真与建图 — Phygital AI" if name == "zh.html" else TITLE)
|
| 309 |
+
self.assertEqual(document.canonicals, [expected[name]])
|
| 310 |
+
markup = (ROOT / name).read_text(encoding="utf-8")
|
| 311 |
+
self.assertIn('<html lang="zh-CN">' if name == "zh.html" else '<html lang="en">', markup)
|
| 312 |
+
self.assertIn(f'hreflang="zh-CN" href="{CANONICAL_ROOT}zh.html"', markup)
|
| 313 |
+
self.assertIn(f'hreflang="en" href="{CANONICAL_ROOT}"', markup)
|
| 314 |
+
self.assertIn(f'hreflang="x-default" href="{CANONICAL_ROOT}"', markup)
|
| 315 |
+
self.assertIn('<a href="zh.html"', markup)
|
| 316 |
+
self.assertIn('<a href="index.html"', markup)
|
| 317 |
+
self.assertEqual((ROOT / "index.html").read_bytes(), (ROOT / "en.html").read_bytes())
|
| 318 |
+
|
| 319 |
+
def test_awsm_header(self) -> None:
|
| 320 |
+
for name in PAGES:
|
| 321 |
+
markup = (ROOT / name).read_text(encoding="utf-8")
|
| 322 |
+
header = markup.split('<header>', 1)[1].split('</header>', 1)[0]
|
| 323 |
+
chinese = name == "zh.html"
|
| 324 |
+
title_name = '智能体世界仿真与建图' if chinese else 'Agentic World Simulation and Mapping'
|
| 325 |
+
self.assertIn(f'<p class="title-name">{title_name}</p>', header)
|
| 326 |
+
self.assertIn(f'<h1 aria-label="AWSM: {title_name}">AWSM</h1>', header)
|
| 327 |
+
self.assertLess(header.index('class="title-name"'), header.index('class="title-lockup"'))
|
| 328 |
+
subtitle = '把真实空间,变成虚实融合智能体可以使用的世界。' if chinese else 'From real spaces to worlds phygital agents can use.'
|
| 329 |
+
lead = re.search(r'<p class="lead">(.*?)</p>', header).group(1)
|
| 330 |
+
self.assertEqual(re.sub(r'<[^>]+>', '', lead), subtitle)
|
| 331 |
+
emphasis = '虚实融合智能体可以使用的世界。' if chinese else 'worlds phygital agents can use.'
|
| 332 |
+
self.assertIn(f'<strong class="tagline-emphasis">{emphasis}</strong>', lead)
|
| 333 |
+
self.assertIn(f'<meta name="description" content="{subtitle}">', markup)
|
| 334 |
+
self.assertNotIn('class="brand-tagline"', header)
|
| 335 |
+
pronunciation = '读作 “awesome”' if chinese else 'pronounced “awesome”'
|
| 336 |
+
self.assertIn(f'<p class="pronunciation">{pronunciation}</p>', header)
|
| 337 |
+
brand_note = 'Phygital = physical(物理)+ digital(数字),即虚实融合。' if chinese else 'Phygital = physical + digital.'
|
| 338 |
+
self.assertIn(f'<p class="brand-note">{brand_note}</p>', header)
|
| 339 |
+
self.assertNotIn(')Phygital', header)
|
| 340 |
+
self.assertNotIn('class="eyebrow"', header)
|
| 341 |
+
self.assertNotIn('class="meta"', header)
|
| 342 |
+
self.assertIn('@misc{awsm_2026,', markup)
|
| 343 |
+
self.assertIn('title = {{AWSM}: Agentic World Simulation and Mapping}', markup)
|
| 344 |
+
self.assertNotIn('@misc{agentic_world_2026,', markup)
|
| 345 |
+
self.assertIn('<time datetime="2026-10-01">', header)
|
| 346 |
+
self.assertIn('2026年10月1日' if chinese else 'October 1, 2026', header)
|
| 347 |
+
|
| 348 |
+
def test_viewer_sources_and_concurrent_work(self) -> None:
|
| 349 |
+
from site_builder_interactive import SCENE_JS
|
| 350 |
+
self.assertEqual((ROOT / "scene-compare.js").read_text().strip(), SCENE_JS.strip())
|
| 351 |
+
manifest = json.loads((ROOT / "data/scene_comparison.json").read_text())
|
| 352 |
+
self.assertGreater(manifest["camera"]["position"][1], 20)
|
| 353 |
+
self.assertNotIn("mirror", manifest["display_cutaway"]["keep_name_pattern"])
|
| 354 |
+
for name in PAGES:
|
| 355 |
+
markup = (ROOT / name).read_text(encoding="utf-8")
|
| 356 |
+
for asset in ("app.js", "scene-compare.js", "office-models.js"):
|
| 357 |
+
self.assertIn(f'src="{asset}?v={sha256(ROOT / asset)[:12]}"', markup)
|
| 358 |
+
self.assertIn('同期工作 AHa-3D' if name == 'zh.html' else 'Concurrent work AHa-3D', markup)
|
| 359 |
+
self.assertIn('剖切视图' if name == 'zh.html' else 'Toggle Cutaway', markup)
|
| 360 |
+
|
| 361 |
+
def test_editorial_stylesheet_cache_version(self) -> None:
|
| 362 |
+
expected = f'editorial.css?v={sha256(ROOT / "editorial.css")[:12]}'
|
| 363 |
+
for name in PAGES:
|
| 364 |
+
markup = (ROOT / name).read_text(encoding="utf-8")
|
| 365 |
+
self.assertIn(f'<link rel="stylesheet" href="{expected}">', markup)
|
| 366 |
+
self.assertNotIn('href="editorial.css"', markup)
|
| 367 |
+
|
| 368 |
+
def test_downloadable_citation(self) -> None:
|
| 369 |
+
citation = (ROOT / "data/awsm.bib").read_text(encoding="utf-8")
|
| 370 |
+
self.assertIn('author = {{Phygital AI}}', citation)
|
| 371 |
+
self.assertIn(f'url = {{{CANONICAL_ROOT}}}', citation)
|
| 372 |
+
for name in PAGES:
|
| 373 |
+
markup = (ROOT / name).read_text(encoding="utf-8")
|
| 374 |
+
rendered = re.search(r'<pre class="citation-block"><code>(.*?)</code></pre>', markup, re.S).group(1)
|
| 375 |
+
self.assertEqual(unescape(rendered), citation.rstrip())
|
| 376 |
+
self.assertIn('href="data/awsm.bib" download="awsm.bib"', markup)
|
| 377 |
+
|
| 378 |
+
def test_revision_presentation_and_review_scope(self) -> None:
|
| 379 |
+
for name in PAGES:
|
| 380 |
+
markup = (ROOT / name).read_text()
|
| 381 |
+
nav = re.search(r'<nav>(.*?)</nav>', markup, re.S).group(1)
|
| 382 |
+
self.assertIn('href="https://github.com/wentingw/AWSM"', nav)
|
| 383 |
+
self.assertIn('GitHub ↗', nav)
|
| 384 |
+
self.assertNotIn('DATA ↗', nav)
|
| 385 |
+
self.assertEqual(re.findall(r'<figure[^>]*id="figure-(\d+)"', markup), list('12345'))
|
| 386 |
+
for number in range(1, 6):
|
| 387 |
+
self.assertEqual(markup.count(f'Figure {number}.'), 1)
|
| 388 |
+
self.assertIn('<figure id="figure-2"><img loading="lazy" src="assets/fixed_five_view_comparison_m1_m4.jpg"', markup)
|
| 389 |
+
self.assertIn('class="scene-comparison" id="figure-3"', markup)
|
| 390 |
+
self.assertIn('class="fixed-comparison" id="figure-4"', markup)
|
| 391 |
+
self.assertIn('class="hero" id="overview-video"', markup)
|
| 392 |
+
self.assertNotIn('figure-1-caption', markup)
|
| 393 |
+
self.assertNotIn('AWSM: from real spaces to worlds phygital agents can use.', markup)
|
| 394 |
+
for phrase in ('7.994999821', 'unresolved audit failures', 'did not pass every task-audit', 'We discuss it as a parallel effort', '前置工作', '未通过的审计项', '尚未通过全部任务审计', '源运行报告飞行任务'):
|
| 395 |
+
self.assertNotIn(phrase, markup)
|
| 396 |
+
self.assertIn('让机器人前往前台,并在那里排成一列。' if name=='zh.html' else 'Send the robots to the reception desk and have them line up there.', markup)
|
| 397 |
+
self.assertIn('已完成人工审阅' if name=='zh.html' else 'manually reviewed', markup)
|
| 398 |
+
self.assertIn('不改变其原始判定' if name=='zh.html' else 'does not revise their recorded verdicts', markup)
|
| 399 |
+
self.assertEqual(markup.count('data-office-external='), 2)
|
| 400 |
+
self.assertIn('并非外站页面截图' if name=='zh.html' else 'not screenshots of the external website', markup)
|
| 401 |
+
self.assertEqual(self.demo['audit']['status'], 'FAILED')
|
| 402 |
+
|
| 403 |
+
def test_tldr_reductions_and_task_scope(self) -> None:
|
| 404 |
+
surface, depth = reconstruction_reductions()
|
| 405 |
+
self.assertAlmostEqual(surface, 80.95096, places=3)
|
| 406 |
+
self.assertAlmostEqual(depth, 53.77076, places=3)
|
| 407 |
+
for name, document in self.documents.items():
|
| 408 |
+
markup = (ROOT / name).read_text()
|
| 409 |
+
chinese = name == 'zh.html'
|
| 410 |
+
summary = re.search(r'<aside class="tldr"><strong>TL;DR</strong><p>(.*?)</p>', markup).group(1)
|
| 411 |
+
for term in ('IMU', 'M1', 'M4', '81%', '54%'):
|
| 412 |
+
self.assertIn(term, summary)
|
| 413 |
+
self.assertIn('真值位姿条件' if chinese else 'GT-pose-conditioned', summary)
|
| 414 |
+
self.assertIn('预设路线' if chinese else 'predefined routes', summary)
|
| 415 |
+
self.assertIn('180 个评估视角' if chinese else '180 evaluation views', document.text_for('results'))
|
| 416 |
+
self.assertEqual(markup.count('class="metric-reduction"'), 2)
|
| 417 |
+
self.assertNotIn('180 度', document.text_for('results'))
|
| 418 |
+
self.assertIn('相对降低约 81%' if chinese else '≈81% relative reduction', markup)
|
| 419 |
+
self.assertIn('相对降低约 54%' if chinese else '≈54% relative reduction', markup)
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
if __name__ == "__main__":
|
| 423 |
+
unittest.main(verbosity=2)
|
style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
:root{--paper:#f7f6f1;--white:#fffefa;--ink:#182c29;--muted:#60706a;--green:#196451;--line:#d9dfd7;--gold:#b87e40}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.8 Inter,"Noto Sans CJK SC",system-ui,sans-serif}a{color:var(--green);text-underline-offset:4px}img{display:block;max-width:100%;height:auto}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:white;padding:8px;z-index:9}nav{max-width:1420px;margin:auto;padding:22px 4vw;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px;letter-spacing:.09em}nav div{display:flex;gap:20px}.brand{font-weight:750;text-decoration:none}header{max-width:1120px;margin:56px auto 36px;padding:0 32px}.eyebrow,.section-tag{font-size:11px;letter-spacing:.16em;color:var(--green);font-weight:700}h1,h2{font-family:Georgia,"Noto Serif CJK SC",serif;font-weight:500}h1{font-size:clamp(46px,7vw,88px);line-height:1.12;letter-spacing:-.035em;margin:18px 0}.lead{max-width:800px;color:var(--muted);font-size:20px}.meta{display:flex;gap:24px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.hero{max-width:1320px;margin:35px auto 68px;padding:0 28px}.hero img,figure>img{width:100%;background:#e8ebe5}.hero-pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px;background:var(--ink)}.hero-pair-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}.hero-pair-grid p{margin:0;padding:7px 12px;background:var(--ink);color:#f7f6f1;font-size:10px;letter-spacing:.11em}figcaption{font-size:12px;color:var(--muted);margin-top:10px}figcaption span{font-weight:700;color:var(--green)}.layout{max-width:1300px;margin:auto;padding:0 30px;display:grid;grid-template-columns:190px minmax(0,920px);gap:60px;justify-content:center}.toc{position:sticky;top:24px;align-self:start;display:flex;flex-direction:column;gap:9px;font-size:12px}.toc a{text-decoration:none;color:var(--muted)}main{min-width:0}section{padding:28px 0 38px;border-top:1px solid var(--line)}section:first-child{border-top:0}.standfirst{font-size:23px;line-height:1.55;color:var(--green)}h2{font-size:32px;margin:7px 0 22px}.notice{border-left:3px solid var(--gold);padding:10px 18px;margin:24px 0;color:var(--muted);background:#fff9}.table-figure{margin:30px 0}.table-scroll{overflow:auto;border:1px solid var(--line);background:var(--white);margin-top:9px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}th,td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{background:#edf0e9;color:var(--muted)}td.wrap{white-space:normal;min-width:240px}.scene-comparison,.fixed-comparison{margin:34px 0;padding:20px;border:1px solid var(--line);border-radius:6px;background:var(--white)}.scene-comparison h3{margin:0 0 18px}.scene-toolbar,.controlrow{display:flex;gap:14px 20px;align-items:end;flex-wrap:wrap}.scene-toolbar label,.controlrow label{display:flex;flex-direction:column;font-size:12px;color:var(--muted)}.method-control{flex:1 1 280px}select,button{font:inherit}.scene-toolbar button,.scene-retry{font-size:13px;padding:9px 13px;color:var(--green);border:1px solid var(--line);border-radius:3px;background:var(--paper);cursor:pointer}.scene-stage{position:relative;height:540px;width:100%;background:#e9ede5;margin-top:18px;overflow:hidden;border-radius:4px;--split:50%}.scene-stage canvas{display:block;width:100%;height:100%;touch-action:none}.scene-label{position:absolute;top:12px;z-index:3;padding:4px 8px;background:#fffde;color:var(--ink);font-size:11px;pointer-events:none}.scene-label-left{left:12px}.scene-label-right{right:12px}.scene-divider{position:absolute;z-index:4;left:var(--split);top:0;width:3px;height:100%;padding:0;border:0;background:white;box-shadow:0 0 0 1px #182c2955;transform:translateX(-50%);cursor:ew-resize;touch-action:none}.scene-divider:after{content:"↔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;line-height:27px;border-radius:50%;background:white;color:var(--green);border:1px solid var(--line)}.scene-split{position:absolute;width:1px;height:1px;opacity:0}.scene-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:9px 12px;background:#fffef0;z-index:5;font-size:13px}.scene-status.error{color:#8d251d}.scene-retry{display:none;margin-top:10px}.scene-comparison[data-state=error] .scene-retry{display:inline-block}.scene-comparison:not(.is-comparing) .scene-divider{display:none}.compare-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.compare-pair img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#e9ede5}.compare-subcaption{margin:6px 0 0;font-size:11px;color:var(--muted);letter-spacing:.04em}.asset-downloads{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;font-size:12px}.asset-downloads p{margin:4px 0}.office-cafe-embed{margin-top:24px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#111}.office-cafe-embed iframe{display:block;width:100%;height:min(880px,85vh);min-height:680px;border:0;background:#111}.office-links{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}footer{max-width:1120px;margin:70px auto 0;padding:30px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}@media(max-width:950px){.layout{grid-template-columns:1fr}.toc{position:static;display:grid;grid-template-columns:1fr 1fr}}@media(max-width:600px){body{font-size:16px}nav{padding:17px 18px}.brand{font-size:10px}nav div{gap:12px}header{padding:0 20px;margin-top:35px}h1{font-size:43px}.lead{font-size:17px}.hero{padding:0 12px;margin-bottom:40px}.layout{padding:0 20px}.toc{grid-template-columns:1fr}.standfirst{font-size:20px}h2{font-size:27px}.scene-comparison,.fixed-comparison{padding:12px}.scene-stage{height:360px}.compare-pair,.asset-downloads{grid-template-columns:1fr}.office-cafe-embed iframe{height:760px;min-height:620px}}#figure-2,#figure-5{width:100%;margin:30px 0}#figure-2>img,#figure-5>img{width:100%;background:var(--paper)}main h3{font-family:Georgia,"Noto Serif CJK SC",serif;font-size:23px;font-weight:500;line-height:1.4;margin:32px 0 10px}main h4{font:500 18px/1.45 Georgia,"Noto Serif CJK SC",serif;margin:28px 0 8px}.tldr{margin:0 0 34px;padding:20px 24px;border-left:4px solid var(--green);background:#edf3ee}.tldr strong{font-size:11px;letter-spacing:.16em;color:var(--green)}.tldr p{margin:5px 0 0;font:500 19px/1.65 Georgia,"Noto Serif CJK SC",serif}.contributions{padding-left:24px}.contributions li{margin:10px 0;padding-left:5px}.inline-sources{display:block;margin-top:12px;font-size:13px}.workflow-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;margin:22px 0 34px;border:1px solid var(--line);background:var(--line)}.workflow-strip div{display:flex;min-height:180px;padding:18px 15px;background:var(--white);flex-direction:column}.workflow-strip strong{margin-bottom:14px;font-size:12px;letter-spacing:.08em;color:var(--green)}.workflow-strip span{font-size:13px;line-height:1.6;color:var(--muted)}.insight-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:34px 0 12px;background:var(--line);border:1px solid var(--line)}.insight-strip div{display:flex;min-height:125px;padding:22px 18px;background:var(--white);flex-direction:column;justify-content:space-between}.insight-strip strong{font:500 25px/1.15 Georgia,serif;color:var(--green);letter-spacing:-.02em}.insight-strip span{font-size:11px;line-height:1.45;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.metric-caveat{margin:8px 0 0;color:var(--muted);font-size:12px}.claim{margin:30px 0;padding:20px 24px;border:1px solid var(--line);background:var(--white)}.claim strong,.finding-kicker{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--green)}.claim p{margin:8px 0 0;font:500 21px/1.55 Georgia,"Noto Serif CJK SC",serif}.finding{margin:42px 0 18px;padding:0 0 22px;border-bottom:1px solid var(--line)}.finding h3{margin:5px 0 12px}.finding p:last-child{margin-bottom:0}.analysis-block{margin-top:58px;padding-top:12px;border-top:1px solid var(--line)}.external-case{margin-bottom:10px}.limits-list{padding-left:22px}.limits-list li{margin:10px 0}.evidence-links{font-size:12px;margin-top:25px}.citation-block{overflow:auto;margin:22px 0;padding:22px;border:1px solid var(--line);background:var(--white);font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}.references-list{padding-left:24px}.references-list li{margin:13px 0;padding-left:6px}.references-list a{color:var(--ink)}@media(max-width:900px){.workflow-strip{grid-template-columns:1fr 1fr}.workflow-strip div{min-height:130px}}@media(max-width:700px){.insight-strip,.workflow-strip{grid-template-columns:1fr}.insight-strip div{min-height:98px}.workflow-strip div{min-height:auto}.claim p{font-size:18px}.tldr{padding:17px 19px}.tldr p{font-size:17px}.citation-block{padding:15px;font-size:11px}}
|
vendor/three/controls/OrbitControls.js
ADDED
|
@@ -0,0 +1,1860 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {
|
| 2 |
+
Controls,
|
| 3 |
+
MOUSE,
|
| 4 |
+
Quaternion,
|
| 5 |
+
Spherical,
|
| 6 |
+
TOUCH,
|
| 7 |
+
Vector2,
|
| 8 |
+
Vector3,
|
| 9 |
+
Plane,
|
| 10 |
+
Ray,
|
| 11 |
+
MathUtils
|
| 12 |
+
} from 'three';
|
| 13 |
+
|
| 14 |
+
/**
|
| 15 |
+
* Fires when the camera has been transformed by the controls.
|
| 16 |
+
*
|
| 17 |
+
* @event OrbitControls#change
|
| 18 |
+
* @type {Object}
|
| 19 |
+
*/
|
| 20 |
+
const _changeEvent = { type: 'change' };
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* Fires when an interaction was initiated.
|
| 24 |
+
*
|
| 25 |
+
* @event OrbitControls#start
|
| 26 |
+
* @type {Object}
|
| 27 |
+
*/
|
| 28 |
+
const _startEvent = { type: 'start' };
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Fires when an interaction has finished.
|
| 32 |
+
*
|
| 33 |
+
* @event OrbitControls#end
|
| 34 |
+
* @type {Object}
|
| 35 |
+
*/
|
| 36 |
+
const _endEvent = { type: 'end' };
|
| 37 |
+
|
| 38 |
+
const _ray = new Ray();
|
| 39 |
+
const _plane = new Plane();
|
| 40 |
+
const _TILT_LIMIT = Math.cos( 70 * MathUtils.DEG2RAD );
|
| 41 |
+
|
| 42 |
+
const _v = new Vector3();
|
| 43 |
+
const _twoPI = 2 * Math.PI;
|
| 44 |
+
|
| 45 |
+
const _STATE = {
|
| 46 |
+
NONE: - 1,
|
| 47 |
+
ROTATE: 0,
|
| 48 |
+
DOLLY: 1,
|
| 49 |
+
PAN: 2,
|
| 50 |
+
TOUCH_ROTATE: 3,
|
| 51 |
+
TOUCH_PAN: 4,
|
| 52 |
+
TOUCH_DOLLY_PAN: 5,
|
| 53 |
+
TOUCH_DOLLY_ROTATE: 6
|
| 54 |
+
};
|
| 55 |
+
const _EPS = 0.000001;
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
/**
|
| 59 |
+
* Orbit controls allow the camera to orbit around a target.
|
| 60 |
+
*
|
| 61 |
+
* OrbitControls performs orbiting, dollying (zooming), and panning. Unlike {@link TrackballControls},
|
| 62 |
+
* it maintains the "up" direction `object.up` (+Y by default).
|
| 63 |
+
*
|
| 64 |
+
* - Orbit: Left mouse / touch: one-finger move.
|
| 65 |
+
* - Zoom: Middle mouse, or mousewheel / touch: two-finger spread or squish.
|
| 66 |
+
* - Pan: Right mouse, or left mouse + ctrl/meta/shiftKey, or arrow keys / touch: two-finger move.
|
| 67 |
+
*
|
| 68 |
+
* ```js
|
| 69 |
+
* const controls = new OrbitControls( camera, renderer.domElement );
|
| 70 |
+
*
|
| 71 |
+
* // controls.update() must be called after any manual changes to the camera's transform
|
| 72 |
+
* camera.position.set( 0, 20, 100 );
|
| 73 |
+
* controls.update();
|
| 74 |
+
*
|
| 75 |
+
* function animate() {
|
| 76 |
+
*
|
| 77 |
+
* // required if controls.enableDamping or controls.autoRotate are set to true
|
| 78 |
+
* controls.update();
|
| 79 |
+
*
|
| 80 |
+
* renderer.render( scene, camera );
|
| 81 |
+
*
|
| 82 |
+
* }
|
| 83 |
+
* ```
|
| 84 |
+
*
|
| 85 |
+
* @augments Controls
|
| 86 |
+
* @three_import import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
| 87 |
+
*/
|
| 88 |
+
class OrbitControls extends Controls {
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Constructs a new controls instance.
|
| 92 |
+
*
|
| 93 |
+
* @param {Object3D} object - The object that is managed by the controls.
|
| 94 |
+
* @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
|
| 95 |
+
*/
|
| 96 |
+
constructor( object, domElement = null ) {
|
| 97 |
+
|
| 98 |
+
super( object, domElement );
|
| 99 |
+
|
| 100 |
+
this.state = _STATE.NONE;
|
| 101 |
+
|
| 102 |
+
/**
|
| 103 |
+
* The focus point of the controls, the `object` orbits around this.
|
| 104 |
+
* It can be updated manually at any point to change the focus of the controls.
|
| 105 |
+
*
|
| 106 |
+
* @type {Vector3}
|
| 107 |
+
*/
|
| 108 |
+
this.target = new Vector3();
|
| 109 |
+
|
| 110 |
+
/**
|
| 111 |
+
* The focus point of the `minTargetRadius` and `maxTargetRadius` limits.
|
| 112 |
+
* It can be updated manually at any point to change the center of interest
|
| 113 |
+
* for the `target`.
|
| 114 |
+
*
|
| 115 |
+
* @type {Vector3}
|
| 116 |
+
*/
|
| 117 |
+
this.cursor = new Vector3();
|
| 118 |
+
|
| 119 |
+
/**
|
| 120 |
+
* How far you can dolly in (perspective camera only).
|
| 121 |
+
*
|
| 122 |
+
* @type {number}
|
| 123 |
+
* @default 0
|
| 124 |
+
*/
|
| 125 |
+
this.minDistance = 0;
|
| 126 |
+
|
| 127 |
+
/**
|
| 128 |
+
* How far you can dolly out (perspective camera only).
|
| 129 |
+
*
|
| 130 |
+
* @type {number}
|
| 131 |
+
* @default Infinity
|
| 132 |
+
*/
|
| 133 |
+
this.maxDistance = Infinity;
|
| 134 |
+
|
| 135 |
+
/**
|
| 136 |
+
* How far you can zoom in (orthographic camera only).
|
| 137 |
+
*
|
| 138 |
+
* @type {number}
|
| 139 |
+
* @default 0
|
| 140 |
+
*/
|
| 141 |
+
this.minZoom = 0;
|
| 142 |
+
|
| 143 |
+
/**
|
| 144 |
+
* How far you can zoom out (orthographic camera only).
|
| 145 |
+
*
|
| 146 |
+
* @type {number}
|
| 147 |
+
* @default Infinity
|
| 148 |
+
*/
|
| 149 |
+
this.maxZoom = Infinity;
|
| 150 |
+
|
| 151 |
+
/**
|
| 152 |
+
* How close you can get the target to the 3D `cursor`.
|
| 153 |
+
*
|
| 154 |
+
* @type {number}
|
| 155 |
+
* @default 0
|
| 156 |
+
*/
|
| 157 |
+
this.minTargetRadius = 0;
|
| 158 |
+
|
| 159 |
+
/**
|
| 160 |
+
* How far you can move the target from the 3D `cursor`.
|
| 161 |
+
*
|
| 162 |
+
* @type {number}
|
| 163 |
+
* @default Infinity
|
| 164 |
+
*/
|
| 165 |
+
this.maxTargetRadius = Infinity;
|
| 166 |
+
|
| 167 |
+
/**
|
| 168 |
+
* How far you can orbit vertically, lower limit. Range is `[0, Math.PI]` radians.
|
| 169 |
+
*
|
| 170 |
+
* @type {number}
|
| 171 |
+
* @default 0
|
| 172 |
+
*/
|
| 173 |
+
this.minPolarAngle = 0;
|
| 174 |
+
|
| 175 |
+
/**
|
| 176 |
+
* How far you can orbit vertically, upper limit. Range is `[0, Math.PI]` radians.
|
| 177 |
+
*
|
| 178 |
+
* @type {number}
|
| 179 |
+
* @default Math.PI
|
| 180 |
+
*/
|
| 181 |
+
this.maxPolarAngle = Math.PI;
|
| 182 |
+
|
| 183 |
+
/**
|
| 184 |
+
* How far you can orbit horizontally, lower limit. If set, the interval `[ min, max ]`
|
| 185 |
+
* must be a sub-interval of `[ - 2 PI, 2 PI ]`, with `( max - min < 2 PI )`.
|
| 186 |
+
*
|
| 187 |
+
* @type {number}
|
| 188 |
+
* @default -Infinity
|
| 189 |
+
*/
|
| 190 |
+
this.minAzimuthAngle = - Infinity;
|
| 191 |
+
|
| 192 |
+
/**
|
| 193 |
+
* How far you can orbit horizontally, upper limit. If set, the interval `[ min, max ]`
|
| 194 |
+
* must be a sub-interval of `[ - 2 PI, 2 PI ]`, with `( max - min < 2 PI )`.
|
| 195 |
+
*
|
| 196 |
+
* @type {number}
|
| 197 |
+
* @default -Infinity
|
| 198 |
+
*/
|
| 199 |
+
this.maxAzimuthAngle = Infinity;
|
| 200 |
+
|
| 201 |
+
/**
|
| 202 |
+
* Set to `true` to enable damping (inertia), which can be used to give a sense of weight
|
| 203 |
+
* to the controls. Note that if this is enabled, you must call `update()` in your animation
|
| 204 |
+
* loop.
|
| 205 |
+
*
|
| 206 |
+
* @type {boolean}
|
| 207 |
+
* @default false
|
| 208 |
+
*/
|
| 209 |
+
this.enableDamping = false;
|
| 210 |
+
|
| 211 |
+
/**
|
| 212 |
+
* The damping inertia used if `enableDamping` is set to `true`.
|
| 213 |
+
*
|
| 214 |
+
* Note that for this to work, you must call `update()` in your animation loop.
|
| 215 |
+
*
|
| 216 |
+
* @type {number}
|
| 217 |
+
* @default 0.05
|
| 218 |
+
*/
|
| 219 |
+
this.dampingFactor = 0.05;
|
| 220 |
+
|
| 221 |
+
/**
|
| 222 |
+
* Enable or disable zooming (dollying) of the camera.
|
| 223 |
+
*
|
| 224 |
+
* @type {boolean}
|
| 225 |
+
* @default true
|
| 226 |
+
*/
|
| 227 |
+
this.enableZoom = true;
|
| 228 |
+
|
| 229 |
+
/**
|
| 230 |
+
* Speed of zooming / dollying.
|
| 231 |
+
*
|
| 232 |
+
* @type {number}
|
| 233 |
+
* @default 1
|
| 234 |
+
*/
|
| 235 |
+
this.zoomSpeed = 1.0;
|
| 236 |
+
|
| 237 |
+
/**
|
| 238 |
+
* Enable or disable horizontal and vertical rotation of the camera.
|
| 239 |
+
*
|
| 240 |
+
* Note that it is possible to disable a single axis by setting the min and max of the
|
| 241 |
+
* `minPolarAngle` or `minAzimuthAngle` to the same value, which will cause the vertical
|
| 242 |
+
* or horizontal rotation to be fixed at that value.
|
| 243 |
+
*
|
| 244 |
+
* @type {boolean}
|
| 245 |
+
* @default true
|
| 246 |
+
*/
|
| 247 |
+
this.enableRotate = true;
|
| 248 |
+
|
| 249 |
+
/**
|
| 250 |
+
* Speed of rotation.
|
| 251 |
+
*
|
| 252 |
+
* @type {number}
|
| 253 |
+
* @default 1
|
| 254 |
+
*/
|
| 255 |
+
this.rotateSpeed = 1.0;
|
| 256 |
+
|
| 257 |
+
/**
|
| 258 |
+
* How fast to rotate the camera when the keyboard is used.
|
| 259 |
+
*
|
| 260 |
+
* @type {number}
|
| 261 |
+
* @default 1
|
| 262 |
+
*/
|
| 263 |
+
this.keyRotateSpeed = 1.0;
|
| 264 |
+
|
| 265 |
+
/**
|
| 266 |
+
* Enable or disable camera panning.
|
| 267 |
+
*
|
| 268 |
+
* @type {boolean}
|
| 269 |
+
* @default true
|
| 270 |
+
*/
|
| 271 |
+
this.enablePan = true;
|
| 272 |
+
|
| 273 |
+
/**
|
| 274 |
+
* Speed of panning.
|
| 275 |
+
*
|
| 276 |
+
* @type {number}
|
| 277 |
+
* @default 1
|
| 278 |
+
*/
|
| 279 |
+
this.panSpeed = 1.0;
|
| 280 |
+
|
| 281 |
+
/**
|
| 282 |
+
* Defines how the camera's position is translated when panning. If `true`, the camera pans
|
| 283 |
+
* in screen space. Otherwise, the camera pans in the plane orthogonal to the camera's up
|
| 284 |
+
* direction.
|
| 285 |
+
*
|
| 286 |
+
* @type {boolean}
|
| 287 |
+
* @default true
|
| 288 |
+
*/
|
| 289 |
+
this.screenSpacePanning = true;
|
| 290 |
+
|
| 291 |
+
/**
|
| 292 |
+
* How fast to pan the camera when the keyboard is used in
|
| 293 |
+
* pixels per keypress.
|
| 294 |
+
*
|
| 295 |
+
* @type {number}
|
| 296 |
+
* @default 7
|
| 297 |
+
*/
|
| 298 |
+
this.keyPanSpeed = 7.0;
|
| 299 |
+
|
| 300 |
+
/**
|
| 301 |
+
* Setting this property to `true` allows to zoom to the cursor's position.
|
| 302 |
+
*
|
| 303 |
+
* @type {boolean}
|
| 304 |
+
* @default false
|
| 305 |
+
*/
|
| 306 |
+
this.zoomToCursor = false;
|
| 307 |
+
|
| 308 |
+
/**
|
| 309 |
+
* Set to true to automatically rotate around the target
|
| 310 |
+
*
|
| 311 |
+
* Note that if this is enabled, you must call `update()` in your animation loop.
|
| 312 |
+
* If you want the auto-rotate speed to be independent of the frame rate (the refresh
|
| 313 |
+
* rate of the display), you must pass the time `deltaTime`, in seconds, to `update()`.
|
| 314 |
+
*
|
| 315 |
+
* @type {boolean}
|
| 316 |
+
* @default false
|
| 317 |
+
*/
|
| 318 |
+
this.autoRotate = false;
|
| 319 |
+
|
| 320 |
+
/**
|
| 321 |
+
* How fast to rotate around the target if `autoRotate` is `true`. The default equates to 30 seconds
|
| 322 |
+
* per orbit at 60fps.
|
| 323 |
+
*
|
| 324 |
+
* Note that if `autoRotate` is enabled, you must call `update()` in your animation loop.
|
| 325 |
+
*
|
| 326 |
+
* @type {number}
|
| 327 |
+
* @default 2
|
| 328 |
+
*/
|
| 329 |
+
this.autoRotateSpeed = 2.0;
|
| 330 |
+
|
| 331 |
+
/**
|
| 332 |
+
* This object contains references to the keycodes for controlling camera panning.
|
| 333 |
+
*
|
| 334 |
+
* ```js
|
| 335 |
+
* controls.keys = {
|
| 336 |
+
* LEFT: 'ArrowLeft', //left arrow
|
| 337 |
+
* UP: 'ArrowUp', // up arrow
|
| 338 |
+
* RIGHT: 'ArrowRight', // right arrow
|
| 339 |
+
* BOTTOM: 'ArrowDown' // down arrow
|
| 340 |
+
* }
|
| 341 |
+
* ```
|
| 342 |
+
* @type {Object}
|
| 343 |
+
*/
|
| 344 |
+
this.keys = { LEFT: 'ArrowLeft', UP: 'ArrowUp', RIGHT: 'ArrowRight', BOTTOM: 'ArrowDown' };
|
| 345 |
+
|
| 346 |
+
/**
|
| 347 |
+
* This object contains references to the mouse actions used by the controls.
|
| 348 |
+
*
|
| 349 |
+
* ```js
|
| 350 |
+
* controls.mouseButtons = {
|
| 351 |
+
* LEFT: THREE.MOUSE.ROTATE,
|
| 352 |
+
* MIDDLE: THREE.MOUSE.DOLLY,
|
| 353 |
+
* RIGHT: THREE.MOUSE.PAN
|
| 354 |
+
* }
|
| 355 |
+
* ```
|
| 356 |
+
* @type {Object}
|
| 357 |
+
*/
|
| 358 |
+
this.mouseButtons = { LEFT: MOUSE.ROTATE, MIDDLE: MOUSE.DOLLY, RIGHT: MOUSE.PAN };
|
| 359 |
+
|
| 360 |
+
/**
|
| 361 |
+
* This object contains references to the touch actions used by the controls.
|
| 362 |
+
*
|
| 363 |
+
* ```js
|
| 364 |
+
* controls.mouseButtons = {
|
| 365 |
+
* ONE: THREE.TOUCH.ROTATE,
|
| 366 |
+
* TWO: THREE.TOUCH.DOLLY_PAN
|
| 367 |
+
* }
|
| 368 |
+
* ```
|
| 369 |
+
* @type {Object}
|
| 370 |
+
*/
|
| 371 |
+
this.touches = { ONE: TOUCH.ROTATE, TWO: TOUCH.DOLLY_PAN };
|
| 372 |
+
|
| 373 |
+
/**
|
| 374 |
+
* Used internally by `saveState()` and `reset()`.
|
| 375 |
+
*
|
| 376 |
+
* @type {Vector3}
|
| 377 |
+
*/
|
| 378 |
+
this.target0 = this.target.clone();
|
| 379 |
+
|
| 380 |
+
/**
|
| 381 |
+
* Used internally by `saveState()` and `reset()`.
|
| 382 |
+
*
|
| 383 |
+
* @type {Vector3}
|
| 384 |
+
*/
|
| 385 |
+
this.position0 = this.object.position.clone();
|
| 386 |
+
|
| 387 |
+
/**
|
| 388 |
+
* Used internally by `saveState()` and `reset()`.
|
| 389 |
+
*
|
| 390 |
+
* @type {number}
|
| 391 |
+
*/
|
| 392 |
+
this.zoom0 = this.object.zoom;
|
| 393 |
+
|
| 394 |
+
// the target DOM element for key events
|
| 395 |
+
this._domElementKeyEvents = null;
|
| 396 |
+
|
| 397 |
+
// internals
|
| 398 |
+
|
| 399 |
+
this._lastPosition = new Vector3();
|
| 400 |
+
this._lastQuaternion = new Quaternion();
|
| 401 |
+
this._lastTargetPosition = new Vector3();
|
| 402 |
+
|
| 403 |
+
// so camera.up is the orbit axis
|
| 404 |
+
this._quat = new Quaternion().setFromUnitVectors( object.up, new Vector3( 0, 1, 0 ) );
|
| 405 |
+
this._quatInverse = this._quat.clone().invert();
|
| 406 |
+
|
| 407 |
+
// current position in spherical coordinates
|
| 408 |
+
this._spherical = new Spherical();
|
| 409 |
+
this._sphericalDelta = new Spherical();
|
| 410 |
+
|
| 411 |
+
this._scale = 1;
|
| 412 |
+
this._panOffset = new Vector3();
|
| 413 |
+
|
| 414 |
+
this._rotateStart = new Vector2();
|
| 415 |
+
this._rotateEnd = new Vector2();
|
| 416 |
+
this._rotateDelta = new Vector2();
|
| 417 |
+
|
| 418 |
+
this._panStart = new Vector2();
|
| 419 |
+
this._panEnd = new Vector2();
|
| 420 |
+
this._panDelta = new Vector2();
|
| 421 |
+
|
| 422 |
+
this._dollyStart = new Vector2();
|
| 423 |
+
this._dollyEnd = new Vector2();
|
| 424 |
+
this._dollyDelta = new Vector2();
|
| 425 |
+
|
| 426 |
+
this._dollyDirection = new Vector3();
|
| 427 |
+
this._mouse = new Vector2();
|
| 428 |
+
this._performCursorZoom = false;
|
| 429 |
+
|
| 430 |
+
this._pointers = [];
|
| 431 |
+
this._pointerPositions = {};
|
| 432 |
+
|
| 433 |
+
this._controlActive = false;
|
| 434 |
+
|
| 435 |
+
// event listeners
|
| 436 |
+
|
| 437 |
+
this._onPointerMove = onPointerMove.bind( this );
|
| 438 |
+
this._onPointerDown = onPointerDown.bind( this );
|
| 439 |
+
this._onPointerUp = onPointerUp.bind( this );
|
| 440 |
+
this._onContextMenu = onContextMenu.bind( this );
|
| 441 |
+
this._onMouseWheel = onMouseWheel.bind( this );
|
| 442 |
+
this._onKeyDown = onKeyDown.bind( this );
|
| 443 |
+
|
| 444 |
+
this._onTouchStart = onTouchStart.bind( this );
|
| 445 |
+
this._onTouchMove = onTouchMove.bind( this );
|
| 446 |
+
|
| 447 |
+
this._onMouseDown = onMouseDown.bind( this );
|
| 448 |
+
this._onMouseMove = onMouseMove.bind( this );
|
| 449 |
+
|
| 450 |
+
this._interceptControlDown = interceptControlDown.bind( this );
|
| 451 |
+
this._interceptControlUp = interceptControlUp.bind( this );
|
| 452 |
+
|
| 453 |
+
//
|
| 454 |
+
|
| 455 |
+
if ( this.domElement !== null ) {
|
| 456 |
+
|
| 457 |
+
this.connect( this.domElement );
|
| 458 |
+
|
| 459 |
+
}
|
| 460 |
+
|
| 461 |
+
this.update();
|
| 462 |
+
|
| 463 |
+
}
|
| 464 |
+
|
| 465 |
+
connect( element ) {
|
| 466 |
+
|
| 467 |
+
super.connect( element );
|
| 468 |
+
|
| 469 |
+
this.domElement.addEventListener( 'pointerdown', this._onPointerDown );
|
| 470 |
+
this.domElement.addEventListener( 'pointercancel', this._onPointerUp );
|
| 471 |
+
|
| 472 |
+
this.domElement.addEventListener( 'contextmenu', this._onContextMenu );
|
| 473 |
+
this.domElement.addEventListener( 'wheel', this._onMouseWheel, { passive: false } );
|
| 474 |
+
|
| 475 |
+
const document = this.domElement.getRootNode(); // offscreen canvas compatibility
|
| 476 |
+
document.addEventListener( 'keydown', this._interceptControlDown, { passive: true, capture: true } );
|
| 477 |
+
|
| 478 |
+
this.domElement.style.touchAction = 'none'; // disable touch scroll
|
| 479 |
+
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
disconnect() {
|
| 483 |
+
|
| 484 |
+
this.domElement.removeEventListener( 'pointerdown', this._onPointerDown );
|
| 485 |
+
this.domElement.removeEventListener( 'pointermove', this._onPointerMove );
|
| 486 |
+
this.domElement.removeEventListener( 'pointerup', this._onPointerUp );
|
| 487 |
+
this.domElement.removeEventListener( 'pointercancel', this._onPointerUp );
|
| 488 |
+
|
| 489 |
+
this.domElement.removeEventListener( 'wheel', this._onMouseWheel );
|
| 490 |
+
this.domElement.removeEventListener( 'contextmenu', this._onContextMenu );
|
| 491 |
+
|
| 492 |
+
this.stopListenToKeyEvents();
|
| 493 |
+
|
| 494 |
+
const document = this.domElement.getRootNode(); // offscreen canvas compatibility
|
| 495 |
+
document.removeEventListener( 'keydown', this._interceptControlDown, { capture: true } );
|
| 496 |
+
|
| 497 |
+
this.domElement.style.touchAction = 'auto';
|
| 498 |
+
|
| 499 |
+
}
|
| 500 |
+
|
| 501 |
+
dispose() {
|
| 502 |
+
|
| 503 |
+
this.disconnect();
|
| 504 |
+
|
| 505 |
+
}
|
| 506 |
+
|
| 507 |
+
/**
|
| 508 |
+
* Get the current vertical rotation, in radians.
|
| 509 |
+
*
|
| 510 |
+
* @return {number} The current vertical rotation, in radians.
|
| 511 |
+
*/
|
| 512 |
+
getPolarAngle() {
|
| 513 |
+
|
| 514 |
+
return this._spherical.phi;
|
| 515 |
+
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
+
/**
|
| 519 |
+
* Get the current horizontal rotation, in radians.
|
| 520 |
+
*
|
| 521 |
+
* @return {number} The current horizontal rotation, in radians.
|
| 522 |
+
*/
|
| 523 |
+
getAzimuthalAngle() {
|
| 524 |
+
|
| 525 |
+
return this._spherical.theta;
|
| 526 |
+
|
| 527 |
+
}
|
| 528 |
+
|
| 529 |
+
/**
|
| 530 |
+
* Returns the distance from the camera to the target.
|
| 531 |
+
*
|
| 532 |
+
* @return {number} The distance from the camera to the target.
|
| 533 |
+
*/
|
| 534 |
+
getDistance() {
|
| 535 |
+
|
| 536 |
+
return this.object.position.distanceTo( this.target );
|
| 537 |
+
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
/**
|
| 541 |
+
* Adds key event listeners to the given DOM element.
|
| 542 |
+
* `window` is a recommended argument for using this method.
|
| 543 |
+
*
|
| 544 |
+
* @param {HTMLDOMElement} domElement - The DOM element
|
| 545 |
+
*/
|
| 546 |
+
listenToKeyEvents( domElement ) {
|
| 547 |
+
|
| 548 |
+
domElement.addEventListener( 'keydown', this._onKeyDown );
|
| 549 |
+
this._domElementKeyEvents = domElement;
|
| 550 |
+
|
| 551 |
+
}
|
| 552 |
+
|
| 553 |
+
/**
|
| 554 |
+
* Removes the key event listener previously defined with `listenToKeyEvents()`.
|
| 555 |
+
*/
|
| 556 |
+
stopListenToKeyEvents() {
|
| 557 |
+
|
| 558 |
+
if ( this._domElementKeyEvents !== null ) {
|
| 559 |
+
|
| 560 |
+
this._domElementKeyEvents.removeEventListener( 'keydown', this._onKeyDown );
|
| 561 |
+
this._domElementKeyEvents = null;
|
| 562 |
+
|
| 563 |
+
}
|
| 564 |
+
|
| 565 |
+
}
|
| 566 |
+
|
| 567 |
+
/**
|
| 568 |
+
* Save the current state of the controls. This can later be recovered with `reset()`.
|
| 569 |
+
*/
|
| 570 |
+
saveState() {
|
| 571 |
+
|
| 572 |
+
this.target0.copy( this.target );
|
| 573 |
+
this.position0.copy( this.object.position );
|
| 574 |
+
this.zoom0 = this.object.zoom;
|
| 575 |
+
|
| 576 |
+
}
|
| 577 |
+
|
| 578 |
+
/**
|
| 579 |
+
* Reset the controls to their state from either the last time the `saveState()`
|
| 580 |
+
* was called, or the initial state.
|
| 581 |
+
*/
|
| 582 |
+
reset() {
|
| 583 |
+
|
| 584 |
+
this.target.copy( this.target0 );
|
| 585 |
+
this.object.position.copy( this.position0 );
|
| 586 |
+
this.object.zoom = this.zoom0;
|
| 587 |
+
|
| 588 |
+
this.object.updateProjectionMatrix();
|
| 589 |
+
this.dispatchEvent( _changeEvent );
|
| 590 |
+
|
| 591 |
+
this.update();
|
| 592 |
+
|
| 593 |
+
this.state = _STATE.NONE;
|
| 594 |
+
|
| 595 |
+
}
|
| 596 |
+
|
| 597 |
+
update( deltaTime = null ) {
|
| 598 |
+
|
| 599 |
+
const position = this.object.position;
|
| 600 |
+
|
| 601 |
+
_v.copy( position ).sub( this.target );
|
| 602 |
+
|
| 603 |
+
// rotate offset to "y-axis-is-up" space
|
| 604 |
+
_v.applyQuaternion( this._quat );
|
| 605 |
+
|
| 606 |
+
// angle from z-axis around y-axis
|
| 607 |
+
this._spherical.setFromVector3( _v );
|
| 608 |
+
|
| 609 |
+
if ( this.autoRotate && this.state === _STATE.NONE ) {
|
| 610 |
+
|
| 611 |
+
this._rotateLeft( this._getAutoRotationAngle( deltaTime ) );
|
| 612 |
+
|
| 613 |
+
}
|
| 614 |
+
|
| 615 |
+
if ( this.enableDamping ) {
|
| 616 |
+
|
| 617 |
+
this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor;
|
| 618 |
+
this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor;
|
| 619 |
+
|
| 620 |
+
} else {
|
| 621 |
+
|
| 622 |
+
this._spherical.theta += this._sphericalDelta.theta;
|
| 623 |
+
this._spherical.phi += this._sphericalDelta.phi;
|
| 624 |
+
|
| 625 |
+
}
|
| 626 |
+
|
| 627 |
+
// restrict theta to be between desired limits
|
| 628 |
+
|
| 629 |
+
let min = this.minAzimuthAngle;
|
| 630 |
+
let max = this.maxAzimuthAngle;
|
| 631 |
+
|
| 632 |
+
if ( isFinite( min ) && isFinite( max ) ) {
|
| 633 |
+
|
| 634 |
+
if ( min < - Math.PI ) min += _twoPI; else if ( min > Math.PI ) min -= _twoPI;
|
| 635 |
+
|
| 636 |
+
if ( max < - Math.PI ) max += _twoPI; else if ( max > Math.PI ) max -= _twoPI;
|
| 637 |
+
|
| 638 |
+
if ( min <= max ) {
|
| 639 |
+
|
| 640 |
+
this._spherical.theta = Math.max( min, Math.min( max, this._spherical.theta ) );
|
| 641 |
+
|
| 642 |
+
} else {
|
| 643 |
+
|
| 644 |
+
this._spherical.theta = ( this._spherical.theta > ( min + max ) / 2 ) ?
|
| 645 |
+
Math.max( min, this._spherical.theta ) :
|
| 646 |
+
Math.min( max, this._spherical.theta );
|
| 647 |
+
|
| 648 |
+
}
|
| 649 |
+
|
| 650 |
+
}
|
| 651 |
+
|
| 652 |
+
// restrict phi to be between desired limits
|
| 653 |
+
this._spherical.phi = Math.max( this.minPolarAngle, Math.min( this.maxPolarAngle, this._spherical.phi ) );
|
| 654 |
+
|
| 655 |
+
this._spherical.makeSafe();
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
// move target to panned location
|
| 659 |
+
|
| 660 |
+
if ( this.enableDamping === true ) {
|
| 661 |
+
|
| 662 |
+
this.target.addScaledVector( this._panOffset, this.dampingFactor );
|
| 663 |
+
|
| 664 |
+
} else {
|
| 665 |
+
|
| 666 |
+
this.target.add( this._panOffset );
|
| 667 |
+
|
| 668 |
+
}
|
| 669 |
+
|
| 670 |
+
// Limit the target distance from the cursor to create a sphere around the center of interest
|
| 671 |
+
this.target.sub( this.cursor );
|
| 672 |
+
this.target.clampLength( this.minTargetRadius, this.maxTargetRadius );
|
| 673 |
+
this.target.add( this.cursor );
|
| 674 |
+
|
| 675 |
+
let zoomChanged = false;
|
| 676 |
+
// adjust the camera position based on zoom only if we're not zooming to the cursor or if it's an ortho camera
|
| 677 |
+
// we adjust zoom later in these cases
|
| 678 |
+
if ( this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera ) {
|
| 679 |
+
|
| 680 |
+
this._spherical.radius = this._clampDistance( this._spherical.radius );
|
| 681 |
+
|
| 682 |
+
} else {
|
| 683 |
+
|
| 684 |
+
const prevRadius = this._spherical.radius;
|
| 685 |
+
this._spherical.radius = this._clampDistance( this._spherical.radius * this._scale );
|
| 686 |
+
zoomChanged = prevRadius != this._spherical.radius;
|
| 687 |
+
|
| 688 |
+
}
|
| 689 |
+
|
| 690 |
+
_v.setFromSpherical( this._spherical );
|
| 691 |
+
|
| 692 |
+
// rotate offset back to "camera-up-vector-is-up" space
|
| 693 |
+
_v.applyQuaternion( this._quatInverse );
|
| 694 |
+
|
| 695 |
+
position.copy( this.target ).add( _v );
|
| 696 |
+
|
| 697 |
+
this.object.lookAt( this.target );
|
| 698 |
+
|
| 699 |
+
if ( this.enableDamping === true ) {
|
| 700 |
+
|
| 701 |
+
this._sphericalDelta.theta *= ( 1 - this.dampingFactor );
|
| 702 |
+
this._sphericalDelta.phi *= ( 1 - this.dampingFactor );
|
| 703 |
+
|
| 704 |
+
this._panOffset.multiplyScalar( 1 - this.dampingFactor );
|
| 705 |
+
|
| 706 |
+
} else {
|
| 707 |
+
|
| 708 |
+
this._sphericalDelta.set( 0, 0, 0 );
|
| 709 |
+
|
| 710 |
+
this._panOffset.set( 0, 0, 0 );
|
| 711 |
+
|
| 712 |
+
}
|
| 713 |
+
|
| 714 |
+
// adjust camera position
|
| 715 |
+
if ( this.zoomToCursor && this._performCursorZoom ) {
|
| 716 |
+
|
| 717 |
+
let newRadius = null;
|
| 718 |
+
if ( this.object.isPerspectiveCamera ) {
|
| 719 |
+
|
| 720 |
+
// move the camera down the pointer ray
|
| 721 |
+
// this method avoids floating point error
|
| 722 |
+
const prevRadius = _v.length();
|
| 723 |
+
newRadius = this._clampDistance( prevRadius * this._scale );
|
| 724 |
+
|
| 725 |
+
const radiusDelta = prevRadius - newRadius;
|
| 726 |
+
this.object.position.addScaledVector( this._dollyDirection, radiusDelta );
|
| 727 |
+
this.object.updateMatrixWorld();
|
| 728 |
+
|
| 729 |
+
zoomChanged = !! radiusDelta;
|
| 730 |
+
|
| 731 |
+
} else if ( this.object.isOrthographicCamera ) {
|
| 732 |
+
|
| 733 |
+
// adjust the ortho camera position based on zoom changes
|
| 734 |
+
const mouseBefore = new Vector3( this._mouse.x, this._mouse.y, 0 );
|
| 735 |
+
mouseBefore.unproject( this.object );
|
| 736 |
+
|
| 737 |
+
const prevZoom = this.object.zoom;
|
| 738 |
+
this.object.zoom = Math.max( this.minZoom, Math.min( this.maxZoom, this.object.zoom / this._scale ) );
|
| 739 |
+
this.object.updateProjectionMatrix();
|
| 740 |
+
|
| 741 |
+
zoomChanged = prevZoom !== this.object.zoom;
|
| 742 |
+
|
| 743 |
+
const mouseAfter = new Vector3( this._mouse.x, this._mouse.y, 0 );
|
| 744 |
+
mouseAfter.unproject( this.object );
|
| 745 |
+
|
| 746 |
+
this.object.position.sub( mouseAfter ).add( mouseBefore );
|
| 747 |
+
this.object.updateMatrixWorld();
|
| 748 |
+
|
| 749 |
+
newRadius = _v.length();
|
| 750 |
+
|
| 751 |
+
} else {
|
| 752 |
+
|
| 753 |
+
console.warn( 'WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled.' );
|
| 754 |
+
this.zoomToCursor = false;
|
| 755 |
+
|
| 756 |
+
}
|
| 757 |
+
|
| 758 |
+
// handle the placement of the target
|
| 759 |
+
if ( newRadius !== null ) {
|
| 760 |
+
|
| 761 |
+
if ( this.screenSpacePanning ) {
|
| 762 |
+
|
| 763 |
+
// position the orbit target in front of the new camera position
|
| 764 |
+
this.target.set( 0, 0, - 1 )
|
| 765 |
+
.transformDirection( this.object.matrix )
|
| 766 |
+
.multiplyScalar( newRadius )
|
| 767 |
+
.add( this.object.position );
|
| 768 |
+
|
| 769 |
+
} else {
|
| 770 |
+
|
| 771 |
+
// get the ray and translation plane to compute target
|
| 772 |
+
_ray.origin.copy( this.object.position );
|
| 773 |
+
_ray.direction.set( 0, 0, - 1 ).transformDirection( this.object.matrix );
|
| 774 |
+
|
| 775 |
+
// if the camera is 20 degrees above the horizon then don't adjust the focus target to avoid
|
| 776 |
+
// extremely large values
|
| 777 |
+
if ( Math.abs( this.object.up.dot( _ray.direction ) ) < _TILT_LIMIT ) {
|
| 778 |
+
|
| 779 |
+
this.object.lookAt( this.target );
|
| 780 |
+
|
| 781 |
+
} else {
|
| 782 |
+
|
| 783 |
+
_plane.setFromNormalAndCoplanarPoint( this.object.up, this.target );
|
| 784 |
+
_ray.intersectPlane( _plane, this.target );
|
| 785 |
+
|
| 786 |
+
}
|
| 787 |
+
|
| 788 |
+
}
|
| 789 |
+
|
| 790 |
+
}
|
| 791 |
+
|
| 792 |
+
} else if ( this.object.isOrthographicCamera ) {
|
| 793 |
+
|
| 794 |
+
const prevZoom = this.object.zoom;
|
| 795 |
+
this.object.zoom = Math.max( this.minZoom, Math.min( this.maxZoom, this.object.zoom / this._scale ) );
|
| 796 |
+
|
| 797 |
+
if ( prevZoom !== this.object.zoom ) {
|
| 798 |
+
|
| 799 |
+
this.object.updateProjectionMatrix();
|
| 800 |
+
zoomChanged = true;
|
| 801 |
+
|
| 802 |
+
}
|
| 803 |
+
|
| 804 |
+
}
|
| 805 |
+
|
| 806 |
+
this._scale = 1;
|
| 807 |
+
this._performCursorZoom = false;
|
| 808 |
+
|
| 809 |
+
// update condition is:
|
| 810 |
+
// min(camera displacement, camera rotation in radians)^2 > EPS
|
| 811 |
+
// using small-angle approximation cos(x/2) = 1 - x^2 / 8
|
| 812 |
+
|
| 813 |
+
if ( zoomChanged ||
|
| 814 |
+
this._lastPosition.distanceToSquared( this.object.position ) > _EPS ||
|
| 815 |
+
8 * ( 1 - this._lastQuaternion.dot( this.object.quaternion ) ) > _EPS ||
|
| 816 |
+
this._lastTargetPosition.distanceToSquared( this.target ) > _EPS ) {
|
| 817 |
+
|
| 818 |
+
this.dispatchEvent( _changeEvent );
|
| 819 |
+
|
| 820 |
+
this._lastPosition.copy( this.object.position );
|
| 821 |
+
this._lastQuaternion.copy( this.object.quaternion );
|
| 822 |
+
this._lastTargetPosition.copy( this.target );
|
| 823 |
+
|
| 824 |
+
return true;
|
| 825 |
+
|
| 826 |
+
}
|
| 827 |
+
|
| 828 |
+
return false;
|
| 829 |
+
|
| 830 |
+
}
|
| 831 |
+
|
| 832 |
+
_getAutoRotationAngle( deltaTime ) {
|
| 833 |
+
|
| 834 |
+
if ( deltaTime !== null ) {
|
| 835 |
+
|
| 836 |
+
return ( _twoPI / 60 * this.autoRotateSpeed ) * deltaTime;
|
| 837 |
+
|
| 838 |
+
} else {
|
| 839 |
+
|
| 840 |
+
return _twoPI / 60 / 60 * this.autoRotateSpeed;
|
| 841 |
+
|
| 842 |
+
}
|
| 843 |
+
|
| 844 |
+
}
|
| 845 |
+
|
| 846 |
+
_getZoomScale( delta ) {
|
| 847 |
+
|
| 848 |
+
const normalizedDelta = Math.abs( delta * 0.01 );
|
| 849 |
+
return Math.pow( 0.95, this.zoomSpeed * normalizedDelta );
|
| 850 |
+
|
| 851 |
+
}
|
| 852 |
+
|
| 853 |
+
_rotateLeft( angle ) {
|
| 854 |
+
|
| 855 |
+
this._sphericalDelta.theta -= angle;
|
| 856 |
+
|
| 857 |
+
}
|
| 858 |
+
|
| 859 |
+
_rotateUp( angle ) {
|
| 860 |
+
|
| 861 |
+
this._sphericalDelta.phi -= angle;
|
| 862 |
+
|
| 863 |
+
}
|
| 864 |
+
|
| 865 |
+
_panLeft( distance, objectMatrix ) {
|
| 866 |
+
|
| 867 |
+
_v.setFromMatrixColumn( objectMatrix, 0 ); // get X column of objectMatrix
|
| 868 |
+
_v.multiplyScalar( - distance );
|
| 869 |
+
|
| 870 |
+
this._panOffset.add( _v );
|
| 871 |
+
|
| 872 |
+
}
|
| 873 |
+
|
| 874 |
+
_panUp( distance, objectMatrix ) {
|
| 875 |
+
|
| 876 |
+
if ( this.screenSpacePanning === true ) {
|
| 877 |
+
|
| 878 |
+
_v.setFromMatrixColumn( objectMatrix, 1 );
|
| 879 |
+
|
| 880 |
+
} else {
|
| 881 |
+
|
| 882 |
+
_v.setFromMatrixColumn( objectMatrix, 0 );
|
| 883 |
+
_v.crossVectors( this.object.up, _v );
|
| 884 |
+
|
| 885 |
+
}
|
| 886 |
+
|
| 887 |
+
_v.multiplyScalar( distance );
|
| 888 |
+
|
| 889 |
+
this._panOffset.add( _v );
|
| 890 |
+
|
| 891 |
+
}
|
| 892 |
+
|
| 893 |
+
// deltaX and deltaY are in pixels; right and down are positive
|
| 894 |
+
_pan( deltaX, deltaY ) {
|
| 895 |
+
|
| 896 |
+
const element = this.domElement;
|
| 897 |
+
|
| 898 |
+
if ( this.object.isPerspectiveCamera ) {
|
| 899 |
+
|
| 900 |
+
// perspective
|
| 901 |
+
const position = this.object.position;
|
| 902 |
+
_v.copy( position ).sub( this.target );
|
| 903 |
+
let targetDistance = _v.length();
|
| 904 |
+
|
| 905 |
+
// half of the fov is center to top of screen
|
| 906 |
+
targetDistance *= Math.tan( ( this.object.fov / 2 ) * Math.PI / 180.0 );
|
| 907 |
+
|
| 908 |
+
// we use only clientHeight here so aspect ratio does not distort speed
|
| 909 |
+
this._panLeft( 2 * deltaX * targetDistance / element.clientHeight, this.object.matrix );
|
| 910 |
+
this._panUp( 2 * deltaY * targetDistance / element.clientHeight, this.object.matrix );
|
| 911 |
+
|
| 912 |
+
} else if ( this.object.isOrthographicCamera ) {
|
| 913 |
+
|
| 914 |
+
// orthographic
|
| 915 |
+
this._panLeft( deltaX * ( this.object.right - this.object.left ) / this.object.zoom / element.clientWidth, this.object.matrix );
|
| 916 |
+
this._panUp( deltaY * ( this.object.top - this.object.bottom ) / this.object.zoom / element.clientHeight, this.object.matrix );
|
| 917 |
+
|
| 918 |
+
} else {
|
| 919 |
+
|
| 920 |
+
// camera neither orthographic nor perspective
|
| 921 |
+
console.warn( 'WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.' );
|
| 922 |
+
this.enablePan = false;
|
| 923 |
+
|
| 924 |
+
}
|
| 925 |
+
|
| 926 |
+
}
|
| 927 |
+
|
| 928 |
+
_dollyOut( dollyScale ) {
|
| 929 |
+
|
| 930 |
+
if ( this.object.isPerspectiveCamera || this.object.isOrthographicCamera ) {
|
| 931 |
+
|
| 932 |
+
this._scale /= dollyScale;
|
| 933 |
+
|
| 934 |
+
} else {
|
| 935 |
+
|
| 936 |
+
console.warn( 'WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.' );
|
| 937 |
+
this.enableZoom = false;
|
| 938 |
+
|
| 939 |
+
}
|
| 940 |
+
|
| 941 |
+
}
|
| 942 |
+
|
| 943 |
+
_dollyIn( dollyScale ) {
|
| 944 |
+
|
| 945 |
+
if ( this.object.isPerspectiveCamera || this.object.isOrthographicCamera ) {
|
| 946 |
+
|
| 947 |
+
this._scale *= dollyScale;
|
| 948 |
+
|
| 949 |
+
} else {
|
| 950 |
+
|
| 951 |
+
console.warn( 'WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.' );
|
| 952 |
+
this.enableZoom = false;
|
| 953 |
+
|
| 954 |
+
}
|
| 955 |
+
|
| 956 |
+
}
|
| 957 |
+
|
| 958 |
+
_updateZoomParameters( x, y ) {
|
| 959 |
+
|
| 960 |
+
if ( ! this.zoomToCursor ) {
|
| 961 |
+
|
| 962 |
+
return;
|
| 963 |
+
|
| 964 |
+
}
|
| 965 |
+
|
| 966 |
+
this._performCursorZoom = true;
|
| 967 |
+
|
| 968 |
+
const rect = this.domElement.getBoundingClientRect();
|
| 969 |
+
const dx = x - rect.left;
|
| 970 |
+
const dy = y - rect.top;
|
| 971 |
+
const w = rect.width;
|
| 972 |
+
const h = rect.height;
|
| 973 |
+
|
| 974 |
+
this._mouse.x = ( dx / w ) * 2 - 1;
|
| 975 |
+
this._mouse.y = - ( dy / h ) * 2 + 1;
|
| 976 |
+
|
| 977 |
+
this._dollyDirection.set( this._mouse.x, this._mouse.y, 1 ).unproject( this.object ).sub( this.object.position ).normalize();
|
| 978 |
+
|
| 979 |
+
}
|
| 980 |
+
|
| 981 |
+
_clampDistance( dist ) {
|
| 982 |
+
|
| 983 |
+
return Math.max( this.minDistance, Math.min( this.maxDistance, dist ) );
|
| 984 |
+
|
| 985 |
+
}
|
| 986 |
+
|
| 987 |
+
//
|
| 988 |
+
// event callbacks - update the object state
|
| 989 |
+
//
|
| 990 |
+
|
| 991 |
+
_handleMouseDownRotate( event ) {
|
| 992 |
+
|
| 993 |
+
this._rotateStart.set( event.clientX, event.clientY );
|
| 994 |
+
|
| 995 |
+
}
|
| 996 |
+
|
| 997 |
+
_handleMouseDownDolly( event ) {
|
| 998 |
+
|
| 999 |
+
this._updateZoomParameters( event.clientX, event.clientX );
|
| 1000 |
+
this._dollyStart.set( event.clientX, event.clientY );
|
| 1001 |
+
|
| 1002 |
+
}
|
| 1003 |
+
|
| 1004 |
+
_handleMouseDownPan( event ) {
|
| 1005 |
+
|
| 1006 |
+
this._panStart.set( event.clientX, event.clientY );
|
| 1007 |
+
|
| 1008 |
+
}
|
| 1009 |
+
|
| 1010 |
+
_handleMouseMoveRotate( event ) {
|
| 1011 |
+
|
| 1012 |
+
this._rotateEnd.set( event.clientX, event.clientY );
|
| 1013 |
+
|
| 1014 |
+
this._rotateDelta.subVectors( this._rotateEnd, this._rotateStart ).multiplyScalar( this.rotateSpeed );
|
| 1015 |
+
|
| 1016 |
+
const element = this.domElement;
|
| 1017 |
+
|
| 1018 |
+
this._rotateLeft( _twoPI * this._rotateDelta.x / element.clientHeight ); // yes, height
|
| 1019 |
+
|
| 1020 |
+
this._rotateUp( _twoPI * this._rotateDelta.y / element.clientHeight );
|
| 1021 |
+
|
| 1022 |
+
this._rotateStart.copy( this._rotateEnd );
|
| 1023 |
+
|
| 1024 |
+
this.update();
|
| 1025 |
+
|
| 1026 |
+
}
|
| 1027 |
+
|
| 1028 |
+
_handleMouseMoveDolly( event ) {
|
| 1029 |
+
|
| 1030 |
+
this._dollyEnd.set( event.clientX, event.clientY );
|
| 1031 |
+
|
| 1032 |
+
this._dollyDelta.subVectors( this._dollyEnd, this._dollyStart );
|
| 1033 |
+
|
| 1034 |
+
if ( this._dollyDelta.y > 0 ) {
|
| 1035 |
+
|
| 1036 |
+
this._dollyOut( this._getZoomScale( this._dollyDelta.y ) );
|
| 1037 |
+
|
| 1038 |
+
} else if ( this._dollyDelta.y < 0 ) {
|
| 1039 |
+
|
| 1040 |
+
this._dollyIn( this._getZoomScale( this._dollyDelta.y ) );
|
| 1041 |
+
|
| 1042 |
+
}
|
| 1043 |
+
|
| 1044 |
+
this._dollyStart.copy( this._dollyEnd );
|
| 1045 |
+
|
| 1046 |
+
this.update();
|
| 1047 |
+
|
| 1048 |
+
}
|
| 1049 |
+
|
| 1050 |
+
_handleMouseMovePan( event ) {
|
| 1051 |
+
|
| 1052 |
+
this._panEnd.set( event.clientX, event.clientY );
|
| 1053 |
+
|
| 1054 |
+
this._panDelta.subVectors( this._panEnd, this._panStart ).multiplyScalar( this.panSpeed );
|
| 1055 |
+
|
| 1056 |
+
this._pan( this._panDelta.x, this._panDelta.y );
|
| 1057 |
+
|
| 1058 |
+
this._panStart.copy( this._panEnd );
|
| 1059 |
+
|
| 1060 |
+
this.update();
|
| 1061 |
+
|
| 1062 |
+
}
|
| 1063 |
+
|
| 1064 |
+
_handleMouseWheel( event ) {
|
| 1065 |
+
|
| 1066 |
+
this._updateZoomParameters( event.clientX, event.clientY );
|
| 1067 |
+
|
| 1068 |
+
if ( event.deltaY < 0 ) {
|
| 1069 |
+
|
| 1070 |
+
this._dollyIn( this._getZoomScale( event.deltaY ) );
|
| 1071 |
+
|
| 1072 |
+
} else if ( event.deltaY > 0 ) {
|
| 1073 |
+
|
| 1074 |
+
this._dollyOut( this._getZoomScale( event.deltaY ) );
|
| 1075 |
+
|
| 1076 |
+
}
|
| 1077 |
+
|
| 1078 |
+
this.update();
|
| 1079 |
+
|
| 1080 |
+
}
|
| 1081 |
+
|
| 1082 |
+
_handleKeyDown( event ) {
|
| 1083 |
+
|
| 1084 |
+
let needsUpdate = false;
|
| 1085 |
+
|
| 1086 |
+
switch ( event.code ) {
|
| 1087 |
+
|
| 1088 |
+
case this.keys.UP:
|
| 1089 |
+
|
| 1090 |
+
if ( event.ctrlKey || event.metaKey || event.shiftKey ) {
|
| 1091 |
+
|
| 1092 |
+
if ( this.enableRotate ) {
|
| 1093 |
+
|
| 1094 |
+
this._rotateUp( _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );
|
| 1095 |
+
|
| 1096 |
+
}
|
| 1097 |
+
|
| 1098 |
+
} else {
|
| 1099 |
+
|
| 1100 |
+
if ( this.enablePan ) {
|
| 1101 |
+
|
| 1102 |
+
this._pan( 0, this.keyPanSpeed );
|
| 1103 |
+
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
}
|
| 1107 |
+
|
| 1108 |
+
needsUpdate = true;
|
| 1109 |
+
break;
|
| 1110 |
+
|
| 1111 |
+
case this.keys.BOTTOM:
|
| 1112 |
+
|
| 1113 |
+
if ( event.ctrlKey || event.metaKey || event.shiftKey ) {
|
| 1114 |
+
|
| 1115 |
+
if ( this.enableRotate ) {
|
| 1116 |
+
|
| 1117 |
+
this._rotateUp( - _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );
|
| 1118 |
+
|
| 1119 |
+
}
|
| 1120 |
+
|
| 1121 |
+
} else {
|
| 1122 |
+
|
| 1123 |
+
if ( this.enablePan ) {
|
| 1124 |
+
|
| 1125 |
+
this._pan( 0, - this.keyPanSpeed );
|
| 1126 |
+
|
| 1127 |
+
}
|
| 1128 |
+
|
| 1129 |
+
}
|
| 1130 |
+
|
| 1131 |
+
needsUpdate = true;
|
| 1132 |
+
break;
|
| 1133 |
+
|
| 1134 |
+
case this.keys.LEFT:
|
| 1135 |
+
|
| 1136 |
+
if ( event.ctrlKey || event.metaKey || event.shiftKey ) {
|
| 1137 |
+
|
| 1138 |
+
if ( this.enableRotate ) {
|
| 1139 |
+
|
| 1140 |
+
this._rotateLeft( _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );
|
| 1141 |
+
|
| 1142 |
+
}
|
| 1143 |
+
|
| 1144 |
+
} else {
|
| 1145 |
+
|
| 1146 |
+
if ( this.enablePan ) {
|
| 1147 |
+
|
| 1148 |
+
this._pan( this.keyPanSpeed, 0 );
|
| 1149 |
+
|
| 1150 |
+
}
|
| 1151 |
+
|
| 1152 |
+
}
|
| 1153 |
+
|
| 1154 |
+
needsUpdate = true;
|
| 1155 |
+
break;
|
| 1156 |
+
|
| 1157 |
+
case this.keys.RIGHT:
|
| 1158 |
+
|
| 1159 |
+
if ( event.ctrlKey || event.metaKey || event.shiftKey ) {
|
| 1160 |
+
|
| 1161 |
+
if ( this.enableRotate ) {
|
| 1162 |
+
|
| 1163 |
+
this._rotateLeft( - _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );
|
| 1164 |
+
|
| 1165 |
+
}
|
| 1166 |
+
|
| 1167 |
+
} else {
|
| 1168 |
+
|
| 1169 |
+
if ( this.enablePan ) {
|
| 1170 |
+
|
| 1171 |
+
this._pan( - this.keyPanSpeed, 0 );
|
| 1172 |
+
|
| 1173 |
+
}
|
| 1174 |
+
|
| 1175 |
+
}
|
| 1176 |
+
|
| 1177 |
+
needsUpdate = true;
|
| 1178 |
+
break;
|
| 1179 |
+
|
| 1180 |
+
}
|
| 1181 |
+
|
| 1182 |
+
if ( needsUpdate ) {
|
| 1183 |
+
|
| 1184 |
+
// prevent the browser from scrolling on cursor keys
|
| 1185 |
+
event.preventDefault();
|
| 1186 |
+
|
| 1187 |
+
this.update();
|
| 1188 |
+
|
| 1189 |
+
}
|
| 1190 |
+
|
| 1191 |
+
|
| 1192 |
+
}
|
| 1193 |
+
|
| 1194 |
+
_handleTouchStartRotate( event ) {
|
| 1195 |
+
|
| 1196 |
+
if ( this._pointers.length === 1 ) {
|
| 1197 |
+
|
| 1198 |
+
this._rotateStart.set( event.pageX, event.pageY );
|
| 1199 |
+
|
| 1200 |
+
} else {
|
| 1201 |
+
|
| 1202 |
+
const position = this._getSecondPointerPosition( event );
|
| 1203 |
+
|
| 1204 |
+
const x = 0.5 * ( event.pageX + position.x );
|
| 1205 |
+
const y = 0.5 * ( event.pageY + position.y );
|
| 1206 |
+
|
| 1207 |
+
this._rotateStart.set( x, y );
|
| 1208 |
+
|
| 1209 |
+
}
|
| 1210 |
+
|
| 1211 |
+
}
|
| 1212 |
+
|
| 1213 |
+
_handleTouchStartPan( event ) {
|
| 1214 |
+
|
| 1215 |
+
if ( this._pointers.length === 1 ) {
|
| 1216 |
+
|
| 1217 |
+
this._panStart.set( event.pageX, event.pageY );
|
| 1218 |
+
|
| 1219 |
+
} else {
|
| 1220 |
+
|
| 1221 |
+
const position = this._getSecondPointerPosition( event );
|
| 1222 |
+
|
| 1223 |
+
const x = 0.5 * ( event.pageX + position.x );
|
| 1224 |
+
const y = 0.5 * ( event.pageY + position.y );
|
| 1225 |
+
|
| 1226 |
+
this._panStart.set( x, y );
|
| 1227 |
+
|
| 1228 |
+
}
|
| 1229 |
+
|
| 1230 |
+
}
|
| 1231 |
+
|
| 1232 |
+
_handleTouchStartDolly( event ) {
|
| 1233 |
+
|
| 1234 |
+
const position = this._getSecondPointerPosition( event );
|
| 1235 |
+
|
| 1236 |
+
const dx = event.pageX - position.x;
|
| 1237 |
+
const dy = event.pageY - position.y;
|
| 1238 |
+
|
| 1239 |
+
const distance = Math.sqrt( dx * dx + dy * dy );
|
| 1240 |
+
|
| 1241 |
+
this._dollyStart.set( 0, distance );
|
| 1242 |
+
|
| 1243 |
+
}
|
| 1244 |
+
|
| 1245 |
+
_handleTouchStartDollyPan( event ) {
|
| 1246 |
+
|
| 1247 |
+
if ( this.enableZoom ) this._handleTouchStartDolly( event );
|
| 1248 |
+
|
| 1249 |
+
if ( this.enablePan ) this._handleTouchStartPan( event );
|
| 1250 |
+
|
| 1251 |
+
}
|
| 1252 |
+
|
| 1253 |
+
_handleTouchStartDollyRotate( event ) {
|
| 1254 |
+
|
| 1255 |
+
if ( this.enableZoom ) this._handleTouchStartDolly( event );
|
| 1256 |
+
|
| 1257 |
+
if ( this.enableRotate ) this._handleTouchStartRotate( event );
|
| 1258 |
+
|
| 1259 |
+
}
|
| 1260 |
+
|
| 1261 |
+
_handleTouchMoveRotate( event ) {
|
| 1262 |
+
|
| 1263 |
+
if ( this._pointers.length == 1 ) {
|
| 1264 |
+
|
| 1265 |
+
this._rotateEnd.set( event.pageX, event.pageY );
|
| 1266 |
+
|
| 1267 |
+
} else {
|
| 1268 |
+
|
| 1269 |
+
const position = this._getSecondPointerPosition( event );
|
| 1270 |
+
|
| 1271 |
+
const x = 0.5 * ( event.pageX + position.x );
|
| 1272 |
+
const y = 0.5 * ( event.pageY + position.y );
|
| 1273 |
+
|
| 1274 |
+
this._rotateEnd.set( x, y );
|
| 1275 |
+
|
| 1276 |
+
}
|
| 1277 |
+
|
| 1278 |
+
this._rotateDelta.subVectors( this._rotateEnd, this._rotateStart ).multiplyScalar( this.rotateSpeed );
|
| 1279 |
+
|
| 1280 |
+
const element = this.domElement;
|
| 1281 |
+
|
| 1282 |
+
this._rotateLeft( _twoPI * this._rotateDelta.x / element.clientHeight ); // yes, height
|
| 1283 |
+
|
| 1284 |
+
this._rotateUp( _twoPI * this._rotateDelta.y / element.clientHeight );
|
| 1285 |
+
|
| 1286 |
+
this._rotateStart.copy( this._rotateEnd );
|
| 1287 |
+
|
| 1288 |
+
}
|
| 1289 |
+
|
| 1290 |
+
_handleTouchMovePan( event ) {
|
| 1291 |
+
|
| 1292 |
+
if ( this._pointers.length === 1 ) {
|
| 1293 |
+
|
| 1294 |
+
this._panEnd.set( event.pageX, event.pageY );
|
| 1295 |
+
|
| 1296 |
+
} else {
|
| 1297 |
+
|
| 1298 |
+
const position = this._getSecondPointerPosition( event );
|
| 1299 |
+
|
| 1300 |
+
const x = 0.5 * ( event.pageX + position.x );
|
| 1301 |
+
const y = 0.5 * ( event.pageY + position.y );
|
| 1302 |
+
|
| 1303 |
+
this._panEnd.set( x, y );
|
| 1304 |
+
|
| 1305 |
+
}
|
| 1306 |
+
|
| 1307 |
+
this._panDelta.subVectors( this._panEnd, this._panStart ).multiplyScalar( this.panSpeed );
|
| 1308 |
+
|
| 1309 |
+
this._pan( this._panDelta.x, this._panDelta.y );
|
| 1310 |
+
|
| 1311 |
+
this._panStart.copy( this._panEnd );
|
| 1312 |
+
|
| 1313 |
+
}
|
| 1314 |
+
|
| 1315 |
+
_handleTouchMoveDolly( event ) {
|
| 1316 |
+
|
| 1317 |
+
const position = this._getSecondPointerPosition( event );
|
| 1318 |
+
|
| 1319 |
+
const dx = event.pageX - position.x;
|
| 1320 |
+
const dy = event.pageY - position.y;
|
| 1321 |
+
|
| 1322 |
+
const distance = Math.sqrt( dx * dx + dy * dy );
|
| 1323 |
+
|
| 1324 |
+
this._dollyEnd.set( 0, distance );
|
| 1325 |
+
|
| 1326 |
+
this._dollyDelta.set( 0, Math.pow( this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed ) );
|
| 1327 |
+
|
| 1328 |
+
this._dollyOut( this._dollyDelta.y );
|
| 1329 |
+
|
| 1330 |
+
this._dollyStart.copy( this._dollyEnd );
|
| 1331 |
+
|
| 1332 |
+
const centerX = ( event.pageX + position.x ) * 0.5;
|
| 1333 |
+
const centerY = ( event.pageY + position.y ) * 0.5;
|
| 1334 |
+
|
| 1335 |
+
this._updateZoomParameters( centerX, centerY );
|
| 1336 |
+
|
| 1337 |
+
}
|
| 1338 |
+
|
| 1339 |
+
_handleTouchMoveDollyPan( event ) {
|
| 1340 |
+
|
| 1341 |
+
if ( this.enableZoom ) this._handleTouchMoveDolly( event );
|
| 1342 |
+
|
| 1343 |
+
if ( this.enablePan ) this._handleTouchMovePan( event );
|
| 1344 |
+
|
| 1345 |
+
}
|
| 1346 |
+
|
| 1347 |
+
_handleTouchMoveDollyRotate( event ) {
|
| 1348 |
+
|
| 1349 |
+
if ( this.enableZoom ) this._handleTouchMoveDolly( event );
|
| 1350 |
+
|
| 1351 |
+
if ( this.enableRotate ) this._handleTouchMoveRotate( event );
|
| 1352 |
+
|
| 1353 |
+
}
|
| 1354 |
+
|
| 1355 |
+
// pointers
|
| 1356 |
+
|
| 1357 |
+
_addPointer( event ) {
|
| 1358 |
+
|
| 1359 |
+
this._pointers.push( event.pointerId );
|
| 1360 |
+
|
| 1361 |
+
}
|
| 1362 |
+
|
| 1363 |
+
_removePointer( event ) {
|
| 1364 |
+
|
| 1365 |
+
delete this._pointerPositions[ event.pointerId ];
|
| 1366 |
+
|
| 1367 |
+
for ( let i = 0; i < this._pointers.length; i ++ ) {
|
| 1368 |
+
|
| 1369 |
+
if ( this._pointers[ i ] == event.pointerId ) {
|
| 1370 |
+
|
| 1371 |
+
this._pointers.splice( i, 1 );
|
| 1372 |
+
return;
|
| 1373 |
+
|
| 1374 |
+
}
|
| 1375 |
+
|
| 1376 |
+
}
|
| 1377 |
+
|
| 1378 |
+
}
|
| 1379 |
+
|
| 1380 |
+
_isTrackingPointer( event ) {
|
| 1381 |
+
|
| 1382 |
+
for ( let i = 0; i < this._pointers.length; i ++ ) {
|
| 1383 |
+
|
| 1384 |
+
if ( this._pointers[ i ] == event.pointerId ) return true;
|
| 1385 |
+
|
| 1386 |
+
}
|
| 1387 |
+
|
| 1388 |
+
return false;
|
| 1389 |
+
|
| 1390 |
+
}
|
| 1391 |
+
|
| 1392 |
+
_trackPointer( event ) {
|
| 1393 |
+
|
| 1394 |
+
let position = this._pointerPositions[ event.pointerId ];
|
| 1395 |
+
|
| 1396 |
+
if ( position === undefined ) {
|
| 1397 |
+
|
| 1398 |
+
position = new Vector2();
|
| 1399 |
+
this._pointerPositions[ event.pointerId ] = position;
|
| 1400 |
+
|
| 1401 |
+
}
|
| 1402 |
+
|
| 1403 |
+
position.set( event.pageX, event.pageY );
|
| 1404 |
+
|
| 1405 |
+
}
|
| 1406 |
+
|
| 1407 |
+
_getSecondPointerPosition( event ) {
|
| 1408 |
+
|
| 1409 |
+
const pointerId = ( event.pointerId === this._pointers[ 0 ] ) ? this._pointers[ 1 ] : this._pointers[ 0 ];
|
| 1410 |
+
|
| 1411 |
+
return this._pointerPositions[ pointerId ];
|
| 1412 |
+
|
| 1413 |
+
}
|
| 1414 |
+
|
| 1415 |
+
//
|
| 1416 |
+
|
| 1417 |
+
_customWheelEvent( event ) {
|
| 1418 |
+
|
| 1419 |
+
const mode = event.deltaMode;
|
| 1420 |
+
|
| 1421 |
+
// minimal wheel event altered to meet delta-zoom demand
|
| 1422 |
+
const newEvent = {
|
| 1423 |
+
clientX: event.clientX,
|
| 1424 |
+
clientY: event.clientY,
|
| 1425 |
+
deltaY: event.deltaY,
|
| 1426 |
+
};
|
| 1427 |
+
|
| 1428 |
+
switch ( mode ) {
|
| 1429 |
+
|
| 1430 |
+
case 1: // LINE_MODE
|
| 1431 |
+
newEvent.deltaY *= 16;
|
| 1432 |
+
break;
|
| 1433 |
+
|
| 1434 |
+
case 2: // PAGE_MODE
|
| 1435 |
+
newEvent.deltaY *= 100;
|
| 1436 |
+
break;
|
| 1437 |
+
|
| 1438 |
+
}
|
| 1439 |
+
|
| 1440 |
+
// detect if event was triggered by pinching
|
| 1441 |
+
if ( event.ctrlKey && ! this._controlActive ) {
|
| 1442 |
+
|
| 1443 |
+
newEvent.deltaY *= 10;
|
| 1444 |
+
|
| 1445 |
+
}
|
| 1446 |
+
|
| 1447 |
+
return newEvent;
|
| 1448 |
+
|
| 1449 |
+
}
|
| 1450 |
+
|
| 1451 |
+
}
|
| 1452 |
+
|
| 1453 |
+
function onPointerDown( event ) {
|
| 1454 |
+
|
| 1455 |
+
if ( this.enabled === false ) return;
|
| 1456 |
+
|
| 1457 |
+
if ( this._pointers.length === 0 ) {
|
| 1458 |
+
|
| 1459 |
+
this.domElement.setPointerCapture( event.pointerId );
|
| 1460 |
+
|
| 1461 |
+
this.domElement.addEventListener( 'pointermove', this._onPointerMove );
|
| 1462 |
+
this.domElement.addEventListener( 'pointerup', this._onPointerUp );
|
| 1463 |
+
|
| 1464 |
+
}
|
| 1465 |
+
|
| 1466 |
+
//
|
| 1467 |
+
|
| 1468 |
+
if ( this._isTrackingPointer( event ) ) return;
|
| 1469 |
+
|
| 1470 |
+
//
|
| 1471 |
+
|
| 1472 |
+
this._addPointer( event );
|
| 1473 |
+
|
| 1474 |
+
if ( event.pointerType === 'touch' ) {
|
| 1475 |
+
|
| 1476 |
+
this._onTouchStart( event );
|
| 1477 |
+
|
| 1478 |
+
} else {
|
| 1479 |
+
|
| 1480 |
+
this._onMouseDown( event );
|
| 1481 |
+
|
| 1482 |
+
}
|
| 1483 |
+
|
| 1484 |
+
}
|
| 1485 |
+
|
| 1486 |
+
function onPointerMove( event ) {
|
| 1487 |
+
|
| 1488 |
+
if ( this.enabled === false ) return;
|
| 1489 |
+
|
| 1490 |
+
if ( event.pointerType === 'touch' ) {
|
| 1491 |
+
|
| 1492 |
+
this._onTouchMove( event );
|
| 1493 |
+
|
| 1494 |
+
} else {
|
| 1495 |
+
|
| 1496 |
+
this._onMouseMove( event );
|
| 1497 |
+
|
| 1498 |
+
}
|
| 1499 |
+
|
| 1500 |
+
}
|
| 1501 |
+
|
| 1502 |
+
function onPointerUp( event ) {
|
| 1503 |
+
|
| 1504 |
+
this._removePointer( event );
|
| 1505 |
+
|
| 1506 |
+
switch ( this._pointers.length ) {
|
| 1507 |
+
|
| 1508 |
+
case 0:
|
| 1509 |
+
|
| 1510 |
+
this.domElement.releasePointerCapture( event.pointerId );
|
| 1511 |
+
|
| 1512 |
+
this.domElement.removeEventListener( 'pointermove', this._onPointerMove );
|
| 1513 |
+
this.domElement.removeEventListener( 'pointerup', this._onPointerUp );
|
| 1514 |
+
|
| 1515 |
+
this.dispatchEvent( _endEvent );
|
| 1516 |
+
|
| 1517 |
+
this.state = _STATE.NONE;
|
| 1518 |
+
|
| 1519 |
+
break;
|
| 1520 |
+
|
| 1521 |
+
case 1:
|
| 1522 |
+
|
| 1523 |
+
const pointerId = this._pointers[ 0 ];
|
| 1524 |
+
const position = this._pointerPositions[ pointerId ];
|
| 1525 |
+
|
| 1526 |
+
// minimal placeholder event - allows state correction on pointer-up
|
| 1527 |
+
this._onTouchStart( { pointerId: pointerId, pageX: position.x, pageY: position.y } );
|
| 1528 |
+
|
| 1529 |
+
break;
|
| 1530 |
+
|
| 1531 |
+
}
|
| 1532 |
+
|
| 1533 |
+
}
|
| 1534 |
+
|
| 1535 |
+
function onMouseDown( event ) {
|
| 1536 |
+
|
| 1537 |
+
let mouseAction;
|
| 1538 |
+
|
| 1539 |
+
switch ( event.button ) {
|
| 1540 |
+
|
| 1541 |
+
case 0:
|
| 1542 |
+
|
| 1543 |
+
mouseAction = this.mouseButtons.LEFT;
|
| 1544 |
+
break;
|
| 1545 |
+
|
| 1546 |
+
case 1:
|
| 1547 |
+
|
| 1548 |
+
mouseAction = this.mouseButtons.MIDDLE;
|
| 1549 |
+
break;
|
| 1550 |
+
|
| 1551 |
+
case 2:
|
| 1552 |
+
|
| 1553 |
+
mouseAction = this.mouseButtons.RIGHT;
|
| 1554 |
+
break;
|
| 1555 |
+
|
| 1556 |
+
default:
|
| 1557 |
+
|
| 1558 |
+
mouseAction = - 1;
|
| 1559 |
+
|
| 1560 |
+
}
|
| 1561 |
+
|
| 1562 |
+
switch ( mouseAction ) {
|
| 1563 |
+
|
| 1564 |
+
case MOUSE.DOLLY:
|
| 1565 |
+
|
| 1566 |
+
if ( this.enableZoom === false ) return;
|
| 1567 |
+
|
| 1568 |
+
this._handleMouseDownDolly( event );
|
| 1569 |
+
|
| 1570 |
+
this.state = _STATE.DOLLY;
|
| 1571 |
+
|
| 1572 |
+
break;
|
| 1573 |
+
|
| 1574 |
+
case MOUSE.ROTATE:
|
| 1575 |
+
|
| 1576 |
+
if ( event.ctrlKey || event.metaKey || event.shiftKey ) {
|
| 1577 |
+
|
| 1578 |
+
if ( this.enablePan === false ) return;
|
| 1579 |
+
|
| 1580 |
+
this._handleMouseDownPan( event );
|
| 1581 |
+
|
| 1582 |
+
this.state = _STATE.PAN;
|
| 1583 |
+
|
| 1584 |
+
} else {
|
| 1585 |
+
|
| 1586 |
+
if ( this.enableRotate === false ) return;
|
| 1587 |
+
|
| 1588 |
+
this._handleMouseDownRotate( event );
|
| 1589 |
+
|
| 1590 |
+
this.state = _STATE.ROTATE;
|
| 1591 |
+
|
| 1592 |
+
}
|
| 1593 |
+
|
| 1594 |
+
break;
|
| 1595 |
+
|
| 1596 |
+
case MOUSE.PAN:
|
| 1597 |
+
|
| 1598 |
+
if ( event.ctrlKey || event.metaKey || event.shiftKey ) {
|
| 1599 |
+
|
| 1600 |
+
if ( this.enableRotate === false ) return;
|
| 1601 |
+
|
| 1602 |
+
this._handleMouseDownRotate( event );
|
| 1603 |
+
|
| 1604 |
+
this.state = _STATE.ROTATE;
|
| 1605 |
+
|
| 1606 |
+
} else {
|
| 1607 |
+
|
| 1608 |
+
if ( this.enablePan === false ) return;
|
| 1609 |
+
|
| 1610 |
+
this._handleMouseDownPan( event );
|
| 1611 |
+
|
| 1612 |
+
this.state = _STATE.PAN;
|
| 1613 |
+
|
| 1614 |
+
}
|
| 1615 |
+
|
| 1616 |
+
break;
|
| 1617 |
+
|
| 1618 |
+
default:
|
| 1619 |
+
|
| 1620 |
+
this.state = _STATE.NONE;
|
| 1621 |
+
|
| 1622 |
+
}
|
| 1623 |
+
|
| 1624 |
+
if ( this.state !== _STATE.NONE ) {
|
| 1625 |
+
|
| 1626 |
+
this.dispatchEvent( _startEvent );
|
| 1627 |
+
|
| 1628 |
+
}
|
| 1629 |
+
|
| 1630 |
+
}
|
| 1631 |
+
|
| 1632 |
+
function onMouseMove( event ) {
|
| 1633 |
+
|
| 1634 |
+
switch ( this.state ) {
|
| 1635 |
+
|
| 1636 |
+
case _STATE.ROTATE:
|
| 1637 |
+
|
| 1638 |
+
if ( this.enableRotate === false ) return;
|
| 1639 |
+
|
| 1640 |
+
this._handleMouseMoveRotate( event );
|
| 1641 |
+
|
| 1642 |
+
break;
|
| 1643 |
+
|
| 1644 |
+
case _STATE.DOLLY:
|
| 1645 |
+
|
| 1646 |
+
if ( this.enableZoom === false ) return;
|
| 1647 |
+
|
| 1648 |
+
this._handleMouseMoveDolly( event );
|
| 1649 |
+
|
| 1650 |
+
break;
|
| 1651 |
+
|
| 1652 |
+
case _STATE.PAN:
|
| 1653 |
+
|
| 1654 |
+
if ( this.enablePan === false ) return;
|
| 1655 |
+
|
| 1656 |
+
this._handleMouseMovePan( event );
|
| 1657 |
+
|
| 1658 |
+
break;
|
| 1659 |
+
|
| 1660 |
+
}
|
| 1661 |
+
|
| 1662 |
+
}
|
| 1663 |
+
|
| 1664 |
+
function onMouseWheel( event ) {
|
| 1665 |
+
|
| 1666 |
+
if ( this.enabled === false || this.enableZoom === false || this.state !== _STATE.NONE ) return;
|
| 1667 |
+
|
| 1668 |
+
event.preventDefault();
|
| 1669 |
+
|
| 1670 |
+
this.dispatchEvent( _startEvent );
|
| 1671 |
+
|
| 1672 |
+
this._handleMouseWheel( this._customWheelEvent( event ) );
|
| 1673 |
+
|
| 1674 |
+
this.dispatchEvent( _endEvent );
|
| 1675 |
+
|
| 1676 |
+
}
|
| 1677 |
+
|
| 1678 |
+
function onKeyDown( event ) {
|
| 1679 |
+
|
| 1680 |
+
if ( this.enabled === false ) return;
|
| 1681 |
+
|
| 1682 |
+
this._handleKeyDown( event );
|
| 1683 |
+
|
| 1684 |
+
}
|
| 1685 |
+
|
| 1686 |
+
function onTouchStart( event ) {
|
| 1687 |
+
|
| 1688 |
+
this._trackPointer( event );
|
| 1689 |
+
|
| 1690 |
+
switch ( this._pointers.length ) {
|
| 1691 |
+
|
| 1692 |
+
case 1:
|
| 1693 |
+
|
| 1694 |
+
switch ( this.touches.ONE ) {
|
| 1695 |
+
|
| 1696 |
+
case TOUCH.ROTATE:
|
| 1697 |
+
|
| 1698 |
+
if ( this.enableRotate === false ) return;
|
| 1699 |
+
|
| 1700 |
+
this._handleTouchStartRotate( event );
|
| 1701 |
+
|
| 1702 |
+
this.state = _STATE.TOUCH_ROTATE;
|
| 1703 |
+
|
| 1704 |
+
break;
|
| 1705 |
+
|
| 1706 |
+
case TOUCH.PAN:
|
| 1707 |
+
|
| 1708 |
+
if ( this.enablePan === false ) return;
|
| 1709 |
+
|
| 1710 |
+
this._handleTouchStartPan( event );
|
| 1711 |
+
|
| 1712 |
+
this.state = _STATE.TOUCH_PAN;
|
| 1713 |
+
|
| 1714 |
+
break;
|
| 1715 |
+
|
| 1716 |
+
default:
|
| 1717 |
+
|
| 1718 |
+
this.state = _STATE.NONE;
|
| 1719 |
+
|
| 1720 |
+
}
|
| 1721 |
+
|
| 1722 |
+
break;
|
| 1723 |
+
|
| 1724 |
+
case 2:
|
| 1725 |
+
|
| 1726 |
+
switch ( this.touches.TWO ) {
|
| 1727 |
+
|
| 1728 |
+
case TOUCH.DOLLY_PAN:
|
| 1729 |
+
|
| 1730 |
+
if ( this.enableZoom === false && this.enablePan === false ) return;
|
| 1731 |
+
|
| 1732 |
+
this._handleTouchStartDollyPan( event );
|
| 1733 |
+
|
| 1734 |
+
this.state = _STATE.TOUCH_DOLLY_PAN;
|
| 1735 |
+
|
| 1736 |
+
break;
|
| 1737 |
+
|
| 1738 |
+
case TOUCH.DOLLY_ROTATE:
|
| 1739 |
+
|
| 1740 |
+
if ( this.enableZoom === false && this.enableRotate === false ) return;
|
| 1741 |
+
|
| 1742 |
+
this._handleTouchStartDollyRotate( event );
|
| 1743 |
+
|
| 1744 |
+
this.state = _STATE.TOUCH_DOLLY_ROTATE;
|
| 1745 |
+
|
| 1746 |
+
break;
|
| 1747 |
+
|
| 1748 |
+
default:
|
| 1749 |
+
|
| 1750 |
+
this.state = _STATE.NONE;
|
| 1751 |
+
|
| 1752 |
+
}
|
| 1753 |
+
|
| 1754 |
+
break;
|
| 1755 |
+
|
| 1756 |
+
default:
|
| 1757 |
+
|
| 1758 |
+
this.state = _STATE.NONE;
|
| 1759 |
+
|
| 1760 |
+
}
|
| 1761 |
+
|
| 1762 |
+
if ( this.state !== _STATE.NONE ) {
|
| 1763 |
+
|
| 1764 |
+
this.dispatchEvent( _startEvent );
|
| 1765 |
+
|
| 1766 |
+
}
|
| 1767 |
+
|
| 1768 |
+
}
|
| 1769 |
+
|
| 1770 |
+
function onTouchMove( event ) {
|
| 1771 |
+
|
| 1772 |
+
this._trackPointer( event );
|
| 1773 |
+
|
| 1774 |
+
switch ( this.state ) {
|
| 1775 |
+
|
| 1776 |
+
case _STATE.TOUCH_ROTATE:
|
| 1777 |
+
|
| 1778 |
+
if ( this.enableRotate === false ) return;
|
| 1779 |
+
|
| 1780 |
+
this._handleTouchMoveRotate( event );
|
| 1781 |
+
|
| 1782 |
+
this.update();
|
| 1783 |
+
|
| 1784 |
+
break;
|
| 1785 |
+
|
| 1786 |
+
case _STATE.TOUCH_PAN:
|
| 1787 |
+
|
| 1788 |
+
if ( this.enablePan === false ) return;
|
| 1789 |
+
|
| 1790 |
+
this._handleTouchMovePan( event );
|
| 1791 |
+
|
| 1792 |
+
this.update();
|
| 1793 |
+
|
| 1794 |
+
break;
|
| 1795 |
+
|
| 1796 |
+
case _STATE.TOUCH_DOLLY_PAN:
|
| 1797 |
+
|
| 1798 |
+
if ( this.enableZoom === false && this.enablePan === false ) return;
|
| 1799 |
+
|
| 1800 |
+
this._handleTouchMoveDollyPan( event );
|
| 1801 |
+
|
| 1802 |
+
this.update();
|
| 1803 |
+
|
| 1804 |
+
break;
|
| 1805 |
+
|
| 1806 |
+
case _STATE.TOUCH_DOLLY_ROTATE:
|
| 1807 |
+
|
| 1808 |
+
if ( this.enableZoom === false && this.enableRotate === false ) return;
|
| 1809 |
+
|
| 1810 |
+
this._handleTouchMoveDollyRotate( event );
|
| 1811 |
+
|
| 1812 |
+
this.update();
|
| 1813 |
+
|
| 1814 |
+
break;
|
| 1815 |
+
|
| 1816 |
+
default:
|
| 1817 |
+
|
| 1818 |
+
this.state = _STATE.NONE;
|
| 1819 |
+
|
| 1820 |
+
}
|
| 1821 |
+
|
| 1822 |
+
}
|
| 1823 |
+
|
| 1824 |
+
function onContextMenu( event ) {
|
| 1825 |
+
|
| 1826 |
+
if ( this.enabled === false ) return;
|
| 1827 |
+
|
| 1828 |
+
event.preventDefault();
|
| 1829 |
+
|
| 1830 |
+
}
|
| 1831 |
+
|
| 1832 |
+
function interceptControlDown( event ) {
|
| 1833 |
+
|
| 1834 |
+
if ( event.key === 'Control' ) {
|
| 1835 |
+
|
| 1836 |
+
this._controlActive = true;
|
| 1837 |
+
|
| 1838 |
+
const document = this.domElement.getRootNode(); // offscreen canvas compatibility
|
| 1839 |
+
|
| 1840 |
+
document.addEventListener( 'keyup', this._interceptControlUp, { passive: true, capture: true } );
|
| 1841 |
+
|
| 1842 |
+
}
|
| 1843 |
+
|
| 1844 |
+
}
|
| 1845 |
+
|
| 1846 |
+
function interceptControlUp( event ) {
|
| 1847 |
+
|
| 1848 |
+
if ( event.key === 'Control' ) {
|
| 1849 |
+
|
| 1850 |
+
this._controlActive = false;
|
| 1851 |
+
|
| 1852 |
+
const document = this.domElement.getRootNode(); // offscreen canvas compatibility
|
| 1853 |
+
|
| 1854 |
+
document.removeEventListener( 'keyup', this._interceptControlUp, { passive: true, capture: true } );
|
| 1855 |
+
|
| 1856 |
+
}
|
| 1857 |
+
|
| 1858 |
+
}
|
| 1859 |
+
|
| 1860 |
+
export { OrbitControls };
|
vendor/three/environments/RoomEnvironment.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {
|
| 2 |
+
BackSide,
|
| 3 |
+
BoxGeometry,
|
| 4 |
+
InstancedMesh,
|
| 5 |
+
Mesh,
|
| 6 |
+
MeshLambertMaterial,
|
| 7 |
+
MeshStandardMaterial,
|
| 8 |
+
PointLight,
|
| 9 |
+
Scene,
|
| 10 |
+
Object3D,
|
| 11 |
+
} from 'three';
|
| 12 |
+
|
| 13 |
+
/**
|
| 14 |
+
* This class represents a scene with a basic room setup that can be used as
|
| 15 |
+
* input for {@link PMREMGenerator#fromScene}. The resulting PMREM represents the room's
|
| 16 |
+
* lighting and can be used for Image Based Lighting by assigning it to {@link Scene#environment}
|
| 17 |
+
* or directly as an environment map to PBR materials.
|
| 18 |
+
*
|
| 19 |
+
* The implementation is based on the [EnvironmentScene](https://github.com/google/model-viewer/blob/master/packages/model-viewer/src/three-components/EnvironmentScene.ts)
|
| 20 |
+
* component from the `model-viewer` project.
|
| 21 |
+
*
|
| 22 |
+
* ```js
|
| 23 |
+
* const environment = new RoomEnvironment();
|
| 24 |
+
* const pmremGenerator = new THREE.PMREMGenerator( renderer );
|
| 25 |
+
*
|
| 26 |
+
* const envMap = pmremGenerator.fromScene( environment ).texture;
|
| 27 |
+
* scene.environment = envMap;
|
| 28 |
+
* ```
|
| 29 |
+
*
|
| 30 |
+
* @augments Scene
|
| 31 |
+
* @three_import import { RoomEnvironment } from 'three/addons/environments/RoomEnvironment.js';
|
| 32 |
+
*/
|
| 33 |
+
class RoomEnvironment extends Scene {
|
| 34 |
+
|
| 35 |
+
constructor() {
|
| 36 |
+
|
| 37 |
+
super();
|
| 38 |
+
|
| 39 |
+
const geometry = new BoxGeometry();
|
| 40 |
+
geometry.deleteAttribute( 'uv' );
|
| 41 |
+
|
| 42 |
+
const roomMaterial = new MeshStandardMaterial( { side: BackSide } );
|
| 43 |
+
const boxMaterial = new MeshStandardMaterial();
|
| 44 |
+
|
| 45 |
+
const mainLight = new PointLight( 0xffffff, 900, 28, 2 );
|
| 46 |
+
mainLight.position.set( 0.418, 16.199, 0.300 );
|
| 47 |
+
this.add( mainLight );
|
| 48 |
+
|
| 49 |
+
const room = new Mesh( geometry, roomMaterial );
|
| 50 |
+
room.position.set( - 0.757, 13.219, 0.717 );
|
| 51 |
+
room.scale.set( 31.713, 28.305, 28.591 );
|
| 52 |
+
this.add( room );
|
| 53 |
+
|
| 54 |
+
const boxes = new InstancedMesh( geometry, boxMaterial, 6 );
|
| 55 |
+
const transform = new Object3D();
|
| 56 |
+
|
| 57 |
+
// box1
|
| 58 |
+
transform.position.set( - 10.906, 2.009, 1.846 );
|
| 59 |
+
transform.rotation.set( 0, - 0.195, 0 );
|
| 60 |
+
transform.scale.set( 2.328, 7.905, 4.651 );
|
| 61 |
+
transform.updateMatrix();
|
| 62 |
+
boxes.setMatrixAt( 0, transform.matrix );
|
| 63 |
+
|
| 64 |
+
// box2
|
| 65 |
+
transform.position.set( - 5.607, - 0.754, - 0.758 );
|
| 66 |
+
transform.rotation.set( 0, 0.994, 0 );
|
| 67 |
+
transform.scale.set( 1.970, 1.534, 3.955 );
|
| 68 |
+
transform.updateMatrix();
|
| 69 |
+
boxes.setMatrixAt( 1, transform.matrix );
|
| 70 |
+
|
| 71 |
+
// box3
|
| 72 |
+
transform.position.set( 6.167, 0.857, 7.803 );
|
| 73 |
+
transform.rotation.set( 0, 0.561, 0 );
|
| 74 |
+
transform.scale.set( 3.927, 6.285, 3.687 );
|
| 75 |
+
transform.updateMatrix();
|
| 76 |
+
boxes.setMatrixAt( 2, transform.matrix );
|
| 77 |
+
|
| 78 |
+
// box4
|
| 79 |
+
transform.position.set( - 2.017, 0.018, 6.124 );
|
| 80 |
+
transform.rotation.set( 0, 0.333, 0 );
|
| 81 |
+
transform.scale.set( 2.002, 4.566, 2.064 );
|
| 82 |
+
transform.updateMatrix();
|
| 83 |
+
boxes.setMatrixAt( 3, transform.matrix );
|
| 84 |
+
|
| 85 |
+
// box5
|
| 86 |
+
transform.position.set( 2.291, - 0.756, - 2.621 );
|
| 87 |
+
transform.rotation.set( 0, - 0.286, 0 );
|
| 88 |
+
transform.scale.set( 1.546, 1.552, 1.496 );
|
| 89 |
+
transform.updateMatrix();
|
| 90 |
+
boxes.setMatrixAt( 4, transform.matrix );
|
| 91 |
+
|
| 92 |
+
// box6
|
| 93 |
+
transform.position.set( - 2.193, - 0.369, - 5.547 );
|
| 94 |
+
transform.rotation.set( 0, 0.516, 0 );
|
| 95 |
+
transform.scale.set( 3.875, 3.487, 2.986 );
|
| 96 |
+
transform.updateMatrix();
|
| 97 |
+
boxes.setMatrixAt( 5, transform.matrix );
|
| 98 |
+
|
| 99 |
+
this.add( boxes );
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
// -x right
|
| 103 |
+
const light1 = new Mesh( geometry, createAreaLightMaterial( 50 ) );
|
| 104 |
+
light1.position.set( - 16.116, 14.37, 8.208 );
|
| 105 |
+
light1.scale.set( 0.1, 2.428, 2.739 );
|
| 106 |
+
this.add( light1 );
|
| 107 |
+
|
| 108 |
+
// -x left
|
| 109 |
+
const light2 = new Mesh( geometry, createAreaLightMaterial( 50 ) );
|
| 110 |
+
light2.position.set( - 16.109, 18.021, - 8.207 );
|
| 111 |
+
light2.scale.set( 0.1, 2.425, 2.751 );
|
| 112 |
+
this.add( light2 );
|
| 113 |
+
|
| 114 |
+
// +x
|
| 115 |
+
const light3 = new Mesh( geometry, createAreaLightMaterial( 17 ) );
|
| 116 |
+
light3.position.set( 14.904, 12.198, - 1.832 );
|
| 117 |
+
light3.scale.set( 0.15, 4.265, 6.331 );
|
| 118 |
+
this.add( light3 );
|
| 119 |
+
|
| 120 |
+
// +z
|
| 121 |
+
const light4 = new Mesh( geometry, createAreaLightMaterial( 43 ) );
|
| 122 |
+
light4.position.set( - 0.462, 8.89, 14.520 );
|
| 123 |
+
light4.scale.set( 4.38, 5.441, 0.088 );
|
| 124 |
+
this.add( light4 );
|
| 125 |
+
|
| 126 |
+
// -z
|
| 127 |
+
const light5 = new Mesh( geometry, createAreaLightMaterial( 20 ) );
|
| 128 |
+
light5.position.set( 3.235, 11.486, - 12.541 );
|
| 129 |
+
light5.scale.set( 2.5, 2.0, 0.1 );
|
| 130 |
+
this.add( light5 );
|
| 131 |
+
|
| 132 |
+
// +y
|
| 133 |
+
const light6 = new Mesh( geometry, createAreaLightMaterial( 100 ) );
|
| 134 |
+
light6.position.set( 0.0, 20.0, 0.0 );
|
| 135 |
+
light6.scale.set( 1.0, 0.1, 1.0 );
|
| 136 |
+
this.add( light6 );
|
| 137 |
+
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
/**
|
| 141 |
+
* Frees internal resources. This method should be called
|
| 142 |
+
* when the environment is no longer required.
|
| 143 |
+
*/
|
| 144 |
+
dispose() {
|
| 145 |
+
|
| 146 |
+
const resources = new Set();
|
| 147 |
+
|
| 148 |
+
this.traverse( ( object ) => {
|
| 149 |
+
|
| 150 |
+
if ( object.isMesh ) {
|
| 151 |
+
|
| 152 |
+
resources.add( object.geometry );
|
| 153 |
+
resources.add( object.material );
|
| 154 |
+
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
} );
|
| 158 |
+
|
| 159 |
+
for ( const resource of resources ) {
|
| 160 |
+
|
| 161 |
+
resource.dispose();
|
| 162 |
+
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
function createAreaLightMaterial( intensity ) {
|
| 170 |
+
|
| 171 |
+
// create an emissive-only material. see #31348
|
| 172 |
+
const material = new MeshLambertMaterial( {
|
| 173 |
+
color: 0x000000,
|
| 174 |
+
emissive: 0xffffff,
|
| 175 |
+
emissiveIntensity: intensity
|
| 176 |
+
} );
|
| 177 |
+
|
| 178 |
+
return material;
|
| 179 |
+
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
export { RoomEnvironment };
|
vendor/three/loaders/GLTFLoader.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vendor/three/three.core.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vendor/three/three.module.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vendor/three/utils/BufferGeometryUtils.js
ADDED
|
@@ -0,0 +1,1435 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {
|
| 2 |
+
BufferAttribute,
|
| 3 |
+
BufferGeometry,
|
| 4 |
+
Float32BufferAttribute,
|
| 5 |
+
InstancedBufferAttribute,
|
| 6 |
+
InterleavedBuffer,
|
| 7 |
+
InterleavedBufferAttribute,
|
| 8 |
+
TriangleFanDrawMode,
|
| 9 |
+
TriangleStripDrawMode,
|
| 10 |
+
TrianglesDrawMode,
|
| 11 |
+
Vector3,
|
| 12 |
+
} from 'three';
|
| 13 |
+
|
| 14 |
+
/**
|
| 15 |
+
* @module BufferGeometryUtils
|
| 16 |
+
* @three_import import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
|
| 17 |
+
*/
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* Computes vertex tangents using the MikkTSpace algorithm. MikkTSpace generates the same tangents consistently,
|
| 21 |
+
* and is used in most modelling tools and normal map bakers. Use MikkTSpace for materials with normal maps,
|
| 22 |
+
* because inconsistent tangents may lead to subtle visual issues in the normal map, particularly around mirrored
|
| 23 |
+
* UV seams.
|
| 24 |
+
*
|
| 25 |
+
* In comparison to this method, {@link BufferGeometry#computeTangents} (a custom algorithm) generates tangents that
|
| 26 |
+
* probably will not match the tangents in other software. The custom algorithm is sufficient for general use with a
|
| 27 |
+
* custom material, and may be faster than MikkTSpace.
|
| 28 |
+
*
|
| 29 |
+
* Returns the original BufferGeometry. Indexed geometries will be de-indexed. Requires position, normal, and uv attributes.
|
| 30 |
+
*
|
| 31 |
+
* @param {BufferGeometry} geometry - The geometry to compute tangents for.
|
| 32 |
+
* @param {Object} MikkTSpace - Instance of `examples/jsm/libs/mikktspace.module.js`, or `mikktspace` npm package.
|
| 33 |
+
* Await `MikkTSpace.ready` before use.
|
| 34 |
+
* @param {boolean} [negateSign=true] - Whether to negate the sign component (.w) of each tangent.
|
| 35 |
+
* Required for normal map conventions in some formats, including glTF.
|
| 36 |
+
* @return {BufferGeometry} The updated geometry.
|
| 37 |
+
*/
|
| 38 |
+
function computeMikkTSpaceTangents( geometry, MikkTSpace, negateSign = true ) {
|
| 39 |
+
|
| 40 |
+
if ( ! MikkTSpace || ! MikkTSpace.isReady ) {
|
| 41 |
+
|
| 42 |
+
throw new Error( 'BufferGeometryUtils: Initialized MikkTSpace library required.' );
|
| 43 |
+
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
if ( ! geometry.hasAttribute( 'position' ) || ! geometry.hasAttribute( 'normal' ) || ! geometry.hasAttribute( 'uv' ) ) {
|
| 47 |
+
|
| 48 |
+
throw new Error( 'BufferGeometryUtils: Tangents require "position", "normal", and "uv" attributes.' );
|
| 49 |
+
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
function getAttributeArray( attribute ) {
|
| 53 |
+
|
| 54 |
+
if ( attribute.normalized || attribute.isInterleavedBufferAttribute ) {
|
| 55 |
+
|
| 56 |
+
const dstArray = new Float32Array( attribute.count * attribute.itemSize );
|
| 57 |
+
|
| 58 |
+
for ( let i = 0, j = 0; i < attribute.count; i ++ ) {
|
| 59 |
+
|
| 60 |
+
dstArray[ j ++ ] = attribute.getX( i );
|
| 61 |
+
dstArray[ j ++ ] = attribute.getY( i );
|
| 62 |
+
|
| 63 |
+
if ( attribute.itemSize > 2 ) {
|
| 64 |
+
|
| 65 |
+
dstArray[ j ++ ] = attribute.getZ( i );
|
| 66 |
+
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
return dstArray;
|
| 72 |
+
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
if ( attribute.array instanceof Float32Array ) {
|
| 76 |
+
|
| 77 |
+
return attribute.array;
|
| 78 |
+
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
return new Float32Array( attribute.array );
|
| 82 |
+
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
// MikkTSpace algorithm requires non-indexed input.
|
| 86 |
+
|
| 87 |
+
const _geometry = geometry.index ? geometry.toNonIndexed() : geometry;
|
| 88 |
+
|
| 89 |
+
// Compute vertex tangents.
|
| 90 |
+
|
| 91 |
+
const tangents = MikkTSpace.generateTangents(
|
| 92 |
+
|
| 93 |
+
getAttributeArray( _geometry.attributes.position ),
|
| 94 |
+
getAttributeArray( _geometry.attributes.normal ),
|
| 95 |
+
getAttributeArray( _geometry.attributes.uv )
|
| 96 |
+
|
| 97 |
+
);
|
| 98 |
+
|
| 99 |
+
// Texture coordinate convention of glTF differs from the apparent
|
| 100 |
+
// default of the MikkTSpace library; .w component must be flipped.
|
| 101 |
+
|
| 102 |
+
if ( negateSign ) {
|
| 103 |
+
|
| 104 |
+
for ( let i = 3; i < tangents.length; i += 4 ) {
|
| 105 |
+
|
| 106 |
+
tangents[ i ] *= - 1;
|
| 107 |
+
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
//
|
| 113 |
+
|
| 114 |
+
_geometry.setAttribute( 'tangent', new BufferAttribute( tangents, 4 ) );
|
| 115 |
+
|
| 116 |
+
if ( geometry !== _geometry ) {
|
| 117 |
+
|
| 118 |
+
geometry.copy( _geometry );
|
| 119 |
+
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
return geometry;
|
| 123 |
+
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
/**
|
| 127 |
+
* Merges a set of geometries into a single instance. All geometries must have compatible attributes.
|
| 128 |
+
*
|
| 129 |
+
* @param {Array<BufferGeometry>} geometries - The geometries to merge.
|
| 130 |
+
* @param {boolean} [useGroups=false] - Whether to use groups or not.
|
| 131 |
+
* @return {?BufferGeometry} The merged geometry. Returns `null` if the merge does not succeed.
|
| 132 |
+
*/
|
| 133 |
+
function mergeGeometries( geometries, useGroups = false ) {
|
| 134 |
+
|
| 135 |
+
const isIndexed = geometries[ 0 ].index !== null;
|
| 136 |
+
|
| 137 |
+
const attributesUsed = new Set( Object.keys( geometries[ 0 ].attributes ) );
|
| 138 |
+
const morphAttributesUsed = new Set( Object.keys( geometries[ 0 ].morphAttributes ) );
|
| 139 |
+
|
| 140 |
+
const attributes = {};
|
| 141 |
+
const morphAttributes = {};
|
| 142 |
+
|
| 143 |
+
const morphTargetsRelative = geometries[ 0 ].morphTargetsRelative;
|
| 144 |
+
|
| 145 |
+
const mergedGeometry = new BufferGeometry();
|
| 146 |
+
|
| 147 |
+
let offset = 0;
|
| 148 |
+
|
| 149 |
+
for ( let i = 0; i < geometries.length; ++ i ) {
|
| 150 |
+
|
| 151 |
+
const geometry = geometries[ i ];
|
| 152 |
+
let attributesCount = 0;
|
| 153 |
+
|
| 154 |
+
// ensure that all geometries are indexed, or none
|
| 155 |
+
|
| 156 |
+
if ( isIndexed !== ( geometry.index !== null ) ) {
|
| 157 |
+
|
| 158 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index ' + i + '. All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them.' );
|
| 159 |
+
return null;
|
| 160 |
+
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
// gather attributes, exit early if they're different
|
| 164 |
+
|
| 165 |
+
for ( const name in geometry.attributes ) {
|
| 166 |
+
|
| 167 |
+
if ( ! attributesUsed.has( name ) ) {
|
| 168 |
+
|
| 169 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index ' + i + '. All geometries must have compatible attributes; make sure "' + name + '" attribute exists among all geometries, or in none of them.' );
|
| 170 |
+
return null;
|
| 171 |
+
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
if ( attributes[ name ] === undefined ) attributes[ name ] = [];
|
| 175 |
+
|
| 176 |
+
attributes[ name ].push( geometry.attributes[ name ] );
|
| 177 |
+
|
| 178 |
+
attributesCount ++;
|
| 179 |
+
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
// ensure geometries have the same number of attributes
|
| 183 |
+
|
| 184 |
+
if ( attributesCount !== attributesUsed.size ) {
|
| 185 |
+
|
| 186 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index ' + i + '. Make sure all geometries have the same number of attributes.' );
|
| 187 |
+
return null;
|
| 188 |
+
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
// gather morph attributes, exit early if they're different
|
| 192 |
+
|
| 193 |
+
if ( morphTargetsRelative !== geometry.morphTargetsRelative ) {
|
| 194 |
+
|
| 195 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index ' + i + '. .morphTargetsRelative must be consistent throughout all geometries.' );
|
| 196 |
+
return null;
|
| 197 |
+
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
for ( const name in geometry.morphAttributes ) {
|
| 201 |
+
|
| 202 |
+
if ( ! morphAttributesUsed.has( name ) ) {
|
| 203 |
+
|
| 204 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index ' + i + '. .morphAttributes must be consistent throughout all geometries.' );
|
| 205 |
+
return null;
|
| 206 |
+
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
if ( morphAttributes[ name ] === undefined ) morphAttributes[ name ] = [];
|
| 210 |
+
|
| 211 |
+
morphAttributes[ name ].push( geometry.morphAttributes[ name ] );
|
| 212 |
+
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
if ( useGroups ) {
|
| 216 |
+
|
| 217 |
+
let count;
|
| 218 |
+
|
| 219 |
+
if ( isIndexed ) {
|
| 220 |
+
|
| 221 |
+
count = geometry.index.count;
|
| 222 |
+
|
| 223 |
+
} else if ( geometry.attributes.position !== undefined ) {
|
| 224 |
+
|
| 225 |
+
count = geometry.attributes.position.count;
|
| 226 |
+
|
| 227 |
+
} else {
|
| 228 |
+
|
| 229 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index ' + i + '. The geometry must have either an index or a position attribute' );
|
| 230 |
+
return null;
|
| 231 |
+
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
mergedGeometry.addGroup( offset, count, i );
|
| 235 |
+
|
| 236 |
+
offset += count;
|
| 237 |
+
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
// merge indices
|
| 243 |
+
|
| 244 |
+
if ( isIndexed ) {
|
| 245 |
+
|
| 246 |
+
let indexOffset = 0;
|
| 247 |
+
const mergedIndex = [];
|
| 248 |
+
|
| 249 |
+
for ( let i = 0; i < geometries.length; ++ i ) {
|
| 250 |
+
|
| 251 |
+
const index = geometries[ i ].index;
|
| 252 |
+
|
| 253 |
+
for ( let j = 0; j < index.count; ++ j ) {
|
| 254 |
+
|
| 255 |
+
mergedIndex.push( index.getX( j ) + indexOffset );
|
| 256 |
+
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
indexOffset += geometries[ i ].attributes.position.count;
|
| 260 |
+
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
mergedGeometry.setIndex( mergedIndex );
|
| 264 |
+
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
// merge attributes
|
| 268 |
+
|
| 269 |
+
for ( const name in attributes ) {
|
| 270 |
+
|
| 271 |
+
const mergedAttribute = mergeAttributes( attributes[ name ] );
|
| 272 |
+
|
| 273 |
+
if ( ! mergedAttribute ) {
|
| 274 |
+
|
| 275 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the ' + name + ' attribute.' );
|
| 276 |
+
return null;
|
| 277 |
+
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
mergedGeometry.setAttribute( name, mergedAttribute );
|
| 281 |
+
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
// merge morph attributes
|
| 285 |
+
|
| 286 |
+
for ( const name in morphAttributes ) {
|
| 287 |
+
|
| 288 |
+
const numMorphTargets = morphAttributes[ name ][ 0 ].length;
|
| 289 |
+
|
| 290 |
+
if ( numMorphTargets === 0 ) break;
|
| 291 |
+
|
| 292 |
+
mergedGeometry.morphAttributes = mergedGeometry.morphAttributes || {};
|
| 293 |
+
mergedGeometry.morphAttributes[ name ] = [];
|
| 294 |
+
|
| 295 |
+
for ( let i = 0; i < numMorphTargets; ++ i ) {
|
| 296 |
+
|
| 297 |
+
const morphAttributesToMerge = [];
|
| 298 |
+
|
| 299 |
+
for ( let j = 0; j < morphAttributes[ name ].length; ++ j ) {
|
| 300 |
+
|
| 301 |
+
morphAttributesToMerge.push( morphAttributes[ name ][ j ][ i ] );
|
| 302 |
+
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
const mergedMorphAttribute = mergeAttributes( morphAttributesToMerge );
|
| 306 |
+
|
| 307 |
+
if ( ! mergedMorphAttribute ) {
|
| 308 |
+
|
| 309 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the ' + name + ' morphAttribute.' );
|
| 310 |
+
return null;
|
| 311 |
+
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
mergedGeometry.morphAttributes[ name ].push( mergedMorphAttribute );
|
| 315 |
+
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
return mergedGeometry;
|
| 321 |
+
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
/**
|
| 325 |
+
* Merges a set of attributes into a single instance. All attributes must have compatible properties and types.
|
| 326 |
+
* Instances of {@link InterleavedBufferAttribute} are not supported.
|
| 327 |
+
*
|
| 328 |
+
* @param {Array<BufferAttribute>} attributes - The attributes to merge.
|
| 329 |
+
* @return {?BufferAttribute} The merged attribute. Returns `null` if the merge does not succeed.
|
| 330 |
+
*/
|
| 331 |
+
function mergeAttributes( attributes ) {
|
| 332 |
+
|
| 333 |
+
let TypedArray;
|
| 334 |
+
let itemSize;
|
| 335 |
+
let normalized;
|
| 336 |
+
let gpuType = - 1;
|
| 337 |
+
let arrayLength = 0;
|
| 338 |
+
|
| 339 |
+
for ( let i = 0; i < attributes.length; ++ i ) {
|
| 340 |
+
|
| 341 |
+
const attribute = attributes[ i ];
|
| 342 |
+
|
| 343 |
+
if ( TypedArray === undefined ) TypedArray = attribute.array.constructor;
|
| 344 |
+
if ( TypedArray !== attribute.array.constructor ) {
|
| 345 |
+
|
| 346 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes.' );
|
| 347 |
+
return null;
|
| 348 |
+
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
if ( itemSize === undefined ) itemSize = attribute.itemSize;
|
| 352 |
+
if ( itemSize !== attribute.itemSize ) {
|
| 353 |
+
|
| 354 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes.' );
|
| 355 |
+
return null;
|
| 356 |
+
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
if ( normalized === undefined ) normalized = attribute.normalized;
|
| 360 |
+
if ( normalized !== attribute.normalized ) {
|
| 361 |
+
|
| 362 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes.' );
|
| 363 |
+
return null;
|
| 364 |
+
|
| 365 |
+
}
|
| 366 |
+
|
| 367 |
+
if ( gpuType === - 1 ) gpuType = attribute.gpuType;
|
| 368 |
+
if ( gpuType !== attribute.gpuType ) {
|
| 369 |
+
|
| 370 |
+
console.error( 'THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes.' );
|
| 371 |
+
return null;
|
| 372 |
+
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
arrayLength += attribute.count * itemSize;
|
| 376 |
+
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
const array = new TypedArray( arrayLength );
|
| 380 |
+
const result = new BufferAttribute( array, itemSize, normalized );
|
| 381 |
+
let offset = 0;
|
| 382 |
+
|
| 383 |
+
for ( let i = 0; i < attributes.length; ++ i ) {
|
| 384 |
+
|
| 385 |
+
const attribute = attributes[ i ];
|
| 386 |
+
if ( attribute.isInterleavedBufferAttribute ) {
|
| 387 |
+
|
| 388 |
+
const tupleOffset = offset / itemSize;
|
| 389 |
+
for ( let j = 0, l = attribute.count; j < l; j ++ ) {
|
| 390 |
+
|
| 391 |
+
for ( let c = 0; c < itemSize; c ++ ) {
|
| 392 |
+
|
| 393 |
+
const value = attribute.getComponent( j, c );
|
| 394 |
+
result.setComponent( j + tupleOffset, c, value );
|
| 395 |
+
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
}
|
| 399 |
+
|
| 400 |
+
} else {
|
| 401 |
+
|
| 402 |
+
array.set( attribute.array, offset );
|
| 403 |
+
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
offset += attribute.count * itemSize;
|
| 407 |
+
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
if ( gpuType !== undefined ) {
|
| 411 |
+
|
| 412 |
+
result.gpuType = gpuType;
|
| 413 |
+
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
return result;
|
| 417 |
+
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
/**
|
| 421 |
+
* Performs a deep clone of the given buffer attribute.
|
| 422 |
+
*
|
| 423 |
+
* @param {BufferAttribute} attribute - The attribute to clone.
|
| 424 |
+
* @return {BufferAttribute} The cloned attribute.
|
| 425 |
+
*/
|
| 426 |
+
function deepCloneAttribute( attribute ) {
|
| 427 |
+
|
| 428 |
+
if ( attribute.isInstancedInterleavedBufferAttribute || attribute.isInterleavedBufferAttribute ) {
|
| 429 |
+
|
| 430 |
+
return deinterleaveAttribute( attribute );
|
| 431 |
+
|
| 432 |
+
}
|
| 433 |
+
|
| 434 |
+
if ( attribute.isInstancedBufferAttribute ) {
|
| 435 |
+
|
| 436 |
+
return new InstancedBufferAttribute().copy( attribute );
|
| 437 |
+
|
| 438 |
+
}
|
| 439 |
+
|
| 440 |
+
return new BufferAttribute().copy( attribute );
|
| 441 |
+
|
| 442 |
+
}
|
| 443 |
+
|
| 444 |
+
/**
|
| 445 |
+
* Interleaves a set of attributes and returns a new array of corresponding attributes that share a
|
| 446 |
+
* single {@link InterleavedBuffer} instance. All attributes must have compatible types.
|
| 447 |
+
*
|
| 448 |
+
* @param {Array<BufferAttribute>} attributes - The attributes to interleave.
|
| 449 |
+
* @return {?Array<InterleavedBufferAttribute>} An array of interleaved attributes. If interleave does not succeed, the method returns `null`.
|
| 450 |
+
*/
|
| 451 |
+
function interleaveAttributes( attributes ) {
|
| 452 |
+
|
| 453 |
+
// Interleaves the provided attributes into an InterleavedBuffer and returns
|
| 454 |
+
// a set of InterleavedBufferAttributes for each attribute
|
| 455 |
+
let TypedArray;
|
| 456 |
+
let arrayLength = 0;
|
| 457 |
+
let stride = 0;
|
| 458 |
+
|
| 459 |
+
// calculate the length and type of the interleavedBuffer
|
| 460 |
+
for ( let i = 0, l = attributes.length; i < l; ++ i ) {
|
| 461 |
+
|
| 462 |
+
const attribute = attributes[ i ];
|
| 463 |
+
|
| 464 |
+
if ( TypedArray === undefined ) TypedArray = attribute.array.constructor;
|
| 465 |
+
if ( TypedArray !== attribute.array.constructor ) {
|
| 466 |
+
|
| 467 |
+
console.error( 'AttributeBuffers of different types cannot be interleaved' );
|
| 468 |
+
return null;
|
| 469 |
+
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
arrayLength += attribute.array.length;
|
| 473 |
+
stride += attribute.itemSize;
|
| 474 |
+
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
// Create the set of buffer attributes
|
| 478 |
+
const interleavedBuffer = new InterleavedBuffer( new TypedArray( arrayLength ), stride );
|
| 479 |
+
let offset = 0;
|
| 480 |
+
const res = [];
|
| 481 |
+
const getters = [ 'getX', 'getY', 'getZ', 'getW' ];
|
| 482 |
+
const setters = [ 'setX', 'setY', 'setZ', 'setW' ];
|
| 483 |
+
|
| 484 |
+
for ( let j = 0, l = attributes.length; j < l; j ++ ) {
|
| 485 |
+
|
| 486 |
+
const attribute = attributes[ j ];
|
| 487 |
+
const itemSize = attribute.itemSize;
|
| 488 |
+
const count = attribute.count;
|
| 489 |
+
const iba = new InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, attribute.normalized );
|
| 490 |
+
res.push( iba );
|
| 491 |
+
|
| 492 |
+
offset += itemSize;
|
| 493 |
+
|
| 494 |
+
// Move the data for each attribute into the new interleavedBuffer
|
| 495 |
+
// at the appropriate offset
|
| 496 |
+
for ( let c = 0; c < count; c ++ ) {
|
| 497 |
+
|
| 498 |
+
for ( let k = 0; k < itemSize; k ++ ) {
|
| 499 |
+
|
| 500 |
+
iba[ setters[ k ] ]( c, attribute[ getters[ k ] ]( c ) );
|
| 501 |
+
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
}
|
| 505 |
+
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
return res;
|
| 509 |
+
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
/**
|
| 513 |
+
* Returns a new, non-interleaved version of the given attribute.
|
| 514 |
+
*
|
| 515 |
+
* @param {InterleavedBufferAttribute} attribute - The interleaved attribute.
|
| 516 |
+
* @return {BufferAttribute} The non-interleaved attribute.
|
| 517 |
+
*/
|
| 518 |
+
function deinterleaveAttribute( attribute ) {
|
| 519 |
+
|
| 520 |
+
const cons = attribute.data.array.constructor;
|
| 521 |
+
const count = attribute.count;
|
| 522 |
+
const itemSize = attribute.itemSize;
|
| 523 |
+
const normalized = attribute.normalized;
|
| 524 |
+
|
| 525 |
+
const array = new cons( count * itemSize );
|
| 526 |
+
let newAttribute;
|
| 527 |
+
if ( attribute.isInstancedInterleavedBufferAttribute ) {
|
| 528 |
+
|
| 529 |
+
newAttribute = new InstancedBufferAttribute( array, itemSize, normalized, attribute.meshPerAttribute );
|
| 530 |
+
|
| 531 |
+
} else {
|
| 532 |
+
|
| 533 |
+
newAttribute = new BufferAttribute( array, itemSize, normalized );
|
| 534 |
+
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
for ( let i = 0; i < count; i ++ ) {
|
| 538 |
+
|
| 539 |
+
newAttribute.setX( i, attribute.getX( i ) );
|
| 540 |
+
|
| 541 |
+
if ( itemSize >= 2 ) {
|
| 542 |
+
|
| 543 |
+
newAttribute.setY( i, attribute.getY( i ) );
|
| 544 |
+
|
| 545 |
+
}
|
| 546 |
+
|
| 547 |
+
if ( itemSize >= 3 ) {
|
| 548 |
+
|
| 549 |
+
newAttribute.setZ( i, attribute.getZ( i ) );
|
| 550 |
+
|
| 551 |
+
}
|
| 552 |
+
|
| 553 |
+
if ( itemSize >= 4 ) {
|
| 554 |
+
|
| 555 |
+
newAttribute.setW( i, attribute.getW( i ) );
|
| 556 |
+
|
| 557 |
+
}
|
| 558 |
+
|
| 559 |
+
}
|
| 560 |
+
|
| 561 |
+
return newAttribute;
|
| 562 |
+
|
| 563 |
+
}
|
| 564 |
+
|
| 565 |
+
/**
|
| 566 |
+
* Deinterleaves all attributes on the given geometry.
|
| 567 |
+
*
|
| 568 |
+
* @param {BufferGeometry} geometry - The geometry to deinterleave.
|
| 569 |
+
*/
|
| 570 |
+
function deinterleaveGeometry( geometry ) {
|
| 571 |
+
|
| 572 |
+
const attributes = geometry.attributes;
|
| 573 |
+
const morphTargets = geometry.morphTargets;
|
| 574 |
+
const attrMap = new Map();
|
| 575 |
+
|
| 576 |
+
for ( const key in attributes ) {
|
| 577 |
+
|
| 578 |
+
const attr = attributes[ key ];
|
| 579 |
+
if ( attr.isInterleavedBufferAttribute ) {
|
| 580 |
+
|
| 581 |
+
if ( ! attrMap.has( attr ) ) {
|
| 582 |
+
|
| 583 |
+
attrMap.set( attr, deinterleaveAttribute( attr ) );
|
| 584 |
+
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
attributes[ key ] = attrMap.get( attr );
|
| 588 |
+
|
| 589 |
+
}
|
| 590 |
+
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
for ( const key in morphTargets ) {
|
| 594 |
+
|
| 595 |
+
const attr = morphTargets[ key ];
|
| 596 |
+
if ( attr.isInterleavedBufferAttribute ) {
|
| 597 |
+
|
| 598 |
+
if ( ! attrMap.has( attr ) ) {
|
| 599 |
+
|
| 600 |
+
attrMap.set( attr, deinterleaveAttribute( attr ) );
|
| 601 |
+
|
| 602 |
+
}
|
| 603 |
+
|
| 604 |
+
morphTargets[ key ] = attrMap.get( attr );
|
| 605 |
+
|
| 606 |
+
}
|
| 607 |
+
|
| 608 |
+
}
|
| 609 |
+
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
/**
|
| 613 |
+
* Returns the amount of bytes used by all attributes to represent the geometry.
|
| 614 |
+
*
|
| 615 |
+
* @param {BufferGeometry} geometry - The geometry.
|
| 616 |
+
* @return {number} The estimate bytes used.
|
| 617 |
+
*/
|
| 618 |
+
function estimateBytesUsed( geometry ) {
|
| 619 |
+
|
| 620 |
+
// Return the estimated memory used by this geometry in bytes
|
| 621 |
+
// Calculate using itemSize, count, and BYTES_PER_ELEMENT to account
|
| 622 |
+
// for InterleavedBufferAttributes.
|
| 623 |
+
let mem = 0;
|
| 624 |
+
for ( const name in geometry.attributes ) {
|
| 625 |
+
|
| 626 |
+
const attr = geometry.getAttribute( name );
|
| 627 |
+
mem += attr.count * attr.itemSize * attr.array.BYTES_PER_ELEMENT;
|
| 628 |
+
|
| 629 |
+
}
|
| 630 |
+
|
| 631 |
+
const indices = geometry.getIndex();
|
| 632 |
+
mem += indices ? indices.count * indices.itemSize * indices.array.BYTES_PER_ELEMENT : 0;
|
| 633 |
+
return mem;
|
| 634 |
+
|
| 635 |
+
}
|
| 636 |
+
|
| 637 |
+
/**
|
| 638 |
+
* Returns a new geometry with vertices for which all similar vertex attributes (within tolerance) are merged.
|
| 639 |
+
*
|
| 640 |
+
* @param {BufferGeometry} geometry - The geometry to merge vertices for.
|
| 641 |
+
* @param {number} [tolerance=1e-4] - The tolerance value.
|
| 642 |
+
* @return {BufferGeometry} - The new geometry with merged vertices.
|
| 643 |
+
*/
|
| 644 |
+
function mergeVertices( geometry, tolerance = 1e-4 ) {
|
| 645 |
+
|
| 646 |
+
tolerance = Math.max( tolerance, Number.EPSILON );
|
| 647 |
+
|
| 648 |
+
// Generate an index buffer if the geometry doesn't have one, or optimize it
|
| 649 |
+
// if it's already available.
|
| 650 |
+
const hashToIndex = {};
|
| 651 |
+
const indices = geometry.getIndex();
|
| 652 |
+
const positions = geometry.getAttribute( 'position' );
|
| 653 |
+
const vertexCount = indices ? indices.count : positions.count;
|
| 654 |
+
|
| 655 |
+
// next value for triangle indices
|
| 656 |
+
let nextIndex = 0;
|
| 657 |
+
|
| 658 |
+
// attributes and new attribute arrays
|
| 659 |
+
const attributeNames = Object.keys( geometry.attributes );
|
| 660 |
+
const tmpAttributes = {};
|
| 661 |
+
const tmpMorphAttributes = {};
|
| 662 |
+
const newIndices = [];
|
| 663 |
+
const getters = [ 'getX', 'getY', 'getZ', 'getW' ];
|
| 664 |
+
const setters = [ 'setX', 'setY', 'setZ', 'setW' ];
|
| 665 |
+
|
| 666 |
+
// Initialize the arrays, allocating space conservatively. Extra
|
| 667 |
+
// space will be trimmed in the last step.
|
| 668 |
+
for ( let i = 0, l = attributeNames.length; i < l; i ++ ) {
|
| 669 |
+
|
| 670 |
+
const name = attributeNames[ i ];
|
| 671 |
+
const attr = geometry.attributes[ name ];
|
| 672 |
+
|
| 673 |
+
tmpAttributes[ name ] = new attr.constructor(
|
| 674 |
+
new attr.array.constructor( attr.count * attr.itemSize ),
|
| 675 |
+
attr.itemSize,
|
| 676 |
+
attr.normalized
|
| 677 |
+
);
|
| 678 |
+
|
| 679 |
+
const morphAttributes = geometry.morphAttributes[ name ];
|
| 680 |
+
if ( morphAttributes ) {
|
| 681 |
+
|
| 682 |
+
if ( ! tmpMorphAttributes[ name ] ) tmpMorphAttributes[ name ] = [];
|
| 683 |
+
morphAttributes.forEach( ( morphAttr, i ) => {
|
| 684 |
+
|
| 685 |
+
const array = new morphAttr.array.constructor( morphAttr.count * morphAttr.itemSize );
|
| 686 |
+
tmpMorphAttributes[ name ][ i ] = new morphAttr.constructor( array, morphAttr.itemSize, morphAttr.normalized );
|
| 687 |
+
|
| 688 |
+
} );
|
| 689 |
+
|
| 690 |
+
}
|
| 691 |
+
|
| 692 |
+
}
|
| 693 |
+
|
| 694 |
+
// convert the error tolerance to an amount of decimal places to truncate to
|
| 695 |
+
const halfTolerance = tolerance * 0.5;
|
| 696 |
+
const exponent = Math.log10( 1 / tolerance );
|
| 697 |
+
const hashMultiplier = Math.pow( 10, exponent );
|
| 698 |
+
const hashAdditive = halfTolerance * hashMultiplier;
|
| 699 |
+
for ( let i = 0; i < vertexCount; i ++ ) {
|
| 700 |
+
|
| 701 |
+
const index = indices ? indices.getX( i ) : i;
|
| 702 |
+
|
| 703 |
+
// Generate a hash for the vertex attributes at the current index 'i'
|
| 704 |
+
let hash = '';
|
| 705 |
+
for ( let j = 0, l = attributeNames.length; j < l; j ++ ) {
|
| 706 |
+
|
| 707 |
+
const name = attributeNames[ j ];
|
| 708 |
+
const attribute = geometry.getAttribute( name );
|
| 709 |
+
const itemSize = attribute.itemSize;
|
| 710 |
+
|
| 711 |
+
for ( let k = 0; k < itemSize; k ++ ) {
|
| 712 |
+
|
| 713 |
+
// double tilde truncates the decimal value
|
| 714 |
+
hash += `${ ~ ~ ( attribute[ getters[ k ] ]( index ) * hashMultiplier + hashAdditive ) },`;
|
| 715 |
+
|
| 716 |
+
}
|
| 717 |
+
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
// Add another reference to the vertex if it's already
|
| 721 |
+
// used by another index
|
| 722 |
+
if ( hash in hashToIndex ) {
|
| 723 |
+
|
| 724 |
+
newIndices.push( hashToIndex[ hash ] );
|
| 725 |
+
|
| 726 |
+
} else {
|
| 727 |
+
|
| 728 |
+
// copy data to the new index in the temporary attributes
|
| 729 |
+
for ( let j = 0, l = attributeNames.length; j < l; j ++ ) {
|
| 730 |
+
|
| 731 |
+
const name = attributeNames[ j ];
|
| 732 |
+
const attribute = geometry.getAttribute( name );
|
| 733 |
+
const morphAttributes = geometry.morphAttributes[ name ];
|
| 734 |
+
const itemSize = attribute.itemSize;
|
| 735 |
+
const newArray = tmpAttributes[ name ];
|
| 736 |
+
const newMorphArrays = tmpMorphAttributes[ name ];
|
| 737 |
+
|
| 738 |
+
for ( let k = 0; k < itemSize; k ++ ) {
|
| 739 |
+
|
| 740 |
+
const getterFunc = getters[ k ];
|
| 741 |
+
const setterFunc = setters[ k ];
|
| 742 |
+
newArray[ setterFunc ]( nextIndex, attribute[ getterFunc ]( index ) );
|
| 743 |
+
|
| 744 |
+
if ( morphAttributes ) {
|
| 745 |
+
|
| 746 |
+
for ( let m = 0, ml = morphAttributes.length; m < ml; m ++ ) {
|
| 747 |
+
|
| 748 |
+
newMorphArrays[ m ][ setterFunc ]( nextIndex, morphAttributes[ m ][ getterFunc ]( index ) );
|
| 749 |
+
|
| 750 |
+
}
|
| 751 |
+
|
| 752 |
+
}
|
| 753 |
+
|
| 754 |
+
}
|
| 755 |
+
|
| 756 |
+
}
|
| 757 |
+
|
| 758 |
+
hashToIndex[ hash ] = nextIndex;
|
| 759 |
+
newIndices.push( nextIndex );
|
| 760 |
+
nextIndex ++;
|
| 761 |
+
|
| 762 |
+
}
|
| 763 |
+
|
| 764 |
+
}
|
| 765 |
+
|
| 766 |
+
// generate result BufferGeometry
|
| 767 |
+
const result = geometry.clone();
|
| 768 |
+
for ( const name in geometry.attributes ) {
|
| 769 |
+
|
| 770 |
+
const tmpAttribute = tmpAttributes[ name ];
|
| 771 |
+
|
| 772 |
+
result.setAttribute( name, new tmpAttribute.constructor(
|
| 773 |
+
tmpAttribute.array.slice( 0, nextIndex * tmpAttribute.itemSize ),
|
| 774 |
+
tmpAttribute.itemSize,
|
| 775 |
+
tmpAttribute.normalized,
|
| 776 |
+
) );
|
| 777 |
+
|
| 778 |
+
if ( ! ( name in tmpMorphAttributes ) ) continue;
|
| 779 |
+
|
| 780 |
+
for ( let j = 0; j < tmpMorphAttributes[ name ].length; j ++ ) {
|
| 781 |
+
|
| 782 |
+
const tmpMorphAttribute = tmpMorphAttributes[ name ][ j ];
|
| 783 |
+
|
| 784 |
+
result.morphAttributes[ name ][ j ] = new tmpMorphAttribute.constructor(
|
| 785 |
+
tmpMorphAttribute.array.slice( 0, nextIndex * tmpMorphAttribute.itemSize ),
|
| 786 |
+
tmpMorphAttribute.itemSize,
|
| 787 |
+
tmpMorphAttribute.normalized,
|
| 788 |
+
);
|
| 789 |
+
|
| 790 |
+
}
|
| 791 |
+
|
| 792 |
+
}
|
| 793 |
+
|
| 794 |
+
// indices
|
| 795 |
+
|
| 796 |
+
result.setIndex( newIndices );
|
| 797 |
+
|
| 798 |
+
return result;
|
| 799 |
+
|
| 800 |
+
}
|
| 801 |
+
|
| 802 |
+
/**
|
| 803 |
+
* Returns a new indexed geometry based on `TrianglesDrawMode` draw mode.
|
| 804 |
+
* This mode corresponds to the `gl.TRIANGLES` primitive in WebGL.
|
| 805 |
+
*
|
| 806 |
+
* @param {BufferGeometry} geometry - The geometry to convert.
|
| 807 |
+
* @param {number} drawMode - The current draw mode.
|
| 808 |
+
* @return {BufferGeometry} The new geometry using `TrianglesDrawMode`.
|
| 809 |
+
*/
|
| 810 |
+
function toTrianglesDrawMode( geometry, drawMode ) {
|
| 811 |
+
|
| 812 |
+
if ( drawMode === TrianglesDrawMode ) {
|
| 813 |
+
|
| 814 |
+
console.warn( 'THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles.' );
|
| 815 |
+
return geometry;
|
| 816 |
+
|
| 817 |
+
}
|
| 818 |
+
|
| 819 |
+
if ( drawMode === TriangleFanDrawMode || drawMode === TriangleStripDrawMode ) {
|
| 820 |
+
|
| 821 |
+
let index = geometry.getIndex();
|
| 822 |
+
|
| 823 |
+
// generate index if not present
|
| 824 |
+
|
| 825 |
+
if ( index === null ) {
|
| 826 |
+
|
| 827 |
+
const indices = [];
|
| 828 |
+
|
| 829 |
+
const position = geometry.getAttribute( 'position' );
|
| 830 |
+
|
| 831 |
+
if ( position !== undefined ) {
|
| 832 |
+
|
| 833 |
+
for ( let i = 0; i < position.count; i ++ ) {
|
| 834 |
+
|
| 835 |
+
indices.push( i );
|
| 836 |
+
|
| 837 |
+
}
|
| 838 |
+
|
| 839 |
+
geometry.setIndex( indices );
|
| 840 |
+
index = geometry.getIndex();
|
| 841 |
+
|
| 842 |
+
} else {
|
| 843 |
+
|
| 844 |
+
console.error( 'THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.' );
|
| 845 |
+
return geometry;
|
| 846 |
+
|
| 847 |
+
}
|
| 848 |
+
|
| 849 |
+
}
|
| 850 |
+
|
| 851 |
+
//
|
| 852 |
+
|
| 853 |
+
const numberOfTriangles = index.count - 2;
|
| 854 |
+
const newIndices = [];
|
| 855 |
+
|
| 856 |
+
if ( drawMode === TriangleFanDrawMode ) {
|
| 857 |
+
|
| 858 |
+
// gl.TRIANGLE_FAN
|
| 859 |
+
|
| 860 |
+
for ( let i = 1; i <= numberOfTriangles; i ++ ) {
|
| 861 |
+
|
| 862 |
+
newIndices.push( index.getX( 0 ) );
|
| 863 |
+
newIndices.push( index.getX( i ) );
|
| 864 |
+
newIndices.push( index.getX( i + 1 ) );
|
| 865 |
+
|
| 866 |
+
}
|
| 867 |
+
|
| 868 |
+
} else {
|
| 869 |
+
|
| 870 |
+
// gl.TRIANGLE_STRIP
|
| 871 |
+
|
| 872 |
+
for ( let i = 0; i < numberOfTriangles; i ++ ) {
|
| 873 |
+
|
| 874 |
+
if ( i % 2 === 0 ) {
|
| 875 |
+
|
| 876 |
+
newIndices.push( index.getX( i ) );
|
| 877 |
+
newIndices.push( index.getX( i + 1 ) );
|
| 878 |
+
newIndices.push( index.getX( i + 2 ) );
|
| 879 |
+
|
| 880 |
+
} else {
|
| 881 |
+
|
| 882 |
+
newIndices.push( index.getX( i + 2 ) );
|
| 883 |
+
newIndices.push( index.getX( i + 1 ) );
|
| 884 |
+
newIndices.push( index.getX( i ) );
|
| 885 |
+
|
| 886 |
+
}
|
| 887 |
+
|
| 888 |
+
}
|
| 889 |
+
|
| 890 |
+
}
|
| 891 |
+
|
| 892 |
+
if ( ( newIndices.length / 3 ) !== numberOfTriangles ) {
|
| 893 |
+
|
| 894 |
+
console.error( 'THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.' );
|
| 895 |
+
|
| 896 |
+
}
|
| 897 |
+
|
| 898 |
+
// build final geometry
|
| 899 |
+
|
| 900 |
+
const newGeometry = geometry.clone();
|
| 901 |
+
newGeometry.setIndex( newIndices );
|
| 902 |
+
newGeometry.clearGroups();
|
| 903 |
+
|
| 904 |
+
return newGeometry;
|
| 905 |
+
|
| 906 |
+
} else {
|
| 907 |
+
|
| 908 |
+
console.error( 'THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:', drawMode );
|
| 909 |
+
return geometry;
|
| 910 |
+
|
| 911 |
+
}
|
| 912 |
+
|
| 913 |
+
}
|
| 914 |
+
|
| 915 |
+
/**
|
| 916 |
+
* Calculates the morphed attributes of a morphed/skinned BufferGeometry.
|
| 917 |
+
*
|
| 918 |
+
* Helpful for Raytracing or Decals (i.e. a `DecalGeometry` applied to a morphed Object with a `BufferGeometry`
|
| 919 |
+
* will use the original `BufferGeometry`, not the morphed/skinned one, generating an incorrect result.
|
| 920 |
+
* Using this function to create a shadow `Object3`D the `DecalGeometry` can be correctly generated).
|
| 921 |
+
*
|
| 922 |
+
* @param {Mesh|Line|Points} object - The 3D object to compute morph attributes for.
|
| 923 |
+
* @return {Object} An object with original position/normal attributes and morphed ones.
|
| 924 |
+
*/
|
| 925 |
+
function computeMorphedAttributes( object ) {
|
| 926 |
+
|
| 927 |
+
const _vA = new Vector3();
|
| 928 |
+
const _vB = new Vector3();
|
| 929 |
+
const _vC = new Vector3();
|
| 930 |
+
|
| 931 |
+
const _tempA = new Vector3();
|
| 932 |
+
const _tempB = new Vector3();
|
| 933 |
+
const _tempC = new Vector3();
|
| 934 |
+
|
| 935 |
+
const _morphA = new Vector3();
|
| 936 |
+
const _morphB = new Vector3();
|
| 937 |
+
const _morphC = new Vector3();
|
| 938 |
+
|
| 939 |
+
function _calculateMorphedAttributeData(
|
| 940 |
+
object,
|
| 941 |
+
attribute,
|
| 942 |
+
morphAttribute,
|
| 943 |
+
morphTargetsRelative,
|
| 944 |
+
a,
|
| 945 |
+
b,
|
| 946 |
+
c,
|
| 947 |
+
modifiedAttributeArray
|
| 948 |
+
) {
|
| 949 |
+
|
| 950 |
+
_vA.fromBufferAttribute( attribute, a );
|
| 951 |
+
_vB.fromBufferAttribute( attribute, b );
|
| 952 |
+
_vC.fromBufferAttribute( attribute, c );
|
| 953 |
+
|
| 954 |
+
const morphInfluences = object.morphTargetInfluences;
|
| 955 |
+
|
| 956 |
+
if ( morphAttribute && morphInfluences ) {
|
| 957 |
+
|
| 958 |
+
_morphA.set( 0, 0, 0 );
|
| 959 |
+
_morphB.set( 0, 0, 0 );
|
| 960 |
+
_morphC.set( 0, 0, 0 );
|
| 961 |
+
|
| 962 |
+
for ( let i = 0, il = morphAttribute.length; i < il; i ++ ) {
|
| 963 |
+
|
| 964 |
+
const influence = morphInfluences[ i ];
|
| 965 |
+
const morph = morphAttribute[ i ];
|
| 966 |
+
|
| 967 |
+
if ( influence === 0 ) continue;
|
| 968 |
+
|
| 969 |
+
_tempA.fromBufferAttribute( morph, a );
|
| 970 |
+
_tempB.fromBufferAttribute( morph, b );
|
| 971 |
+
_tempC.fromBufferAttribute( morph, c );
|
| 972 |
+
|
| 973 |
+
if ( morphTargetsRelative ) {
|
| 974 |
+
|
| 975 |
+
_morphA.addScaledVector( _tempA, influence );
|
| 976 |
+
_morphB.addScaledVector( _tempB, influence );
|
| 977 |
+
_morphC.addScaledVector( _tempC, influence );
|
| 978 |
+
|
| 979 |
+
} else {
|
| 980 |
+
|
| 981 |
+
_morphA.addScaledVector( _tempA.sub( _vA ), influence );
|
| 982 |
+
_morphB.addScaledVector( _tempB.sub( _vB ), influence );
|
| 983 |
+
_morphC.addScaledVector( _tempC.sub( _vC ), influence );
|
| 984 |
+
|
| 985 |
+
}
|
| 986 |
+
|
| 987 |
+
}
|
| 988 |
+
|
| 989 |
+
_vA.add( _morphA );
|
| 990 |
+
_vB.add( _morphB );
|
| 991 |
+
_vC.add( _morphC );
|
| 992 |
+
|
| 993 |
+
}
|
| 994 |
+
|
| 995 |
+
if ( object.isSkinnedMesh ) {
|
| 996 |
+
|
| 997 |
+
object.applyBoneTransform( a, _vA );
|
| 998 |
+
object.applyBoneTransform( b, _vB );
|
| 999 |
+
object.applyBoneTransform( c, _vC );
|
| 1000 |
+
|
| 1001 |
+
}
|
| 1002 |
+
|
| 1003 |
+
modifiedAttributeArray[ a * 3 + 0 ] = _vA.x;
|
| 1004 |
+
modifiedAttributeArray[ a * 3 + 1 ] = _vA.y;
|
| 1005 |
+
modifiedAttributeArray[ a * 3 + 2 ] = _vA.z;
|
| 1006 |
+
modifiedAttributeArray[ b * 3 + 0 ] = _vB.x;
|
| 1007 |
+
modifiedAttributeArray[ b * 3 + 1 ] = _vB.y;
|
| 1008 |
+
modifiedAttributeArray[ b * 3 + 2 ] = _vB.z;
|
| 1009 |
+
modifiedAttributeArray[ c * 3 + 0 ] = _vC.x;
|
| 1010 |
+
modifiedAttributeArray[ c * 3 + 1 ] = _vC.y;
|
| 1011 |
+
modifiedAttributeArray[ c * 3 + 2 ] = _vC.z;
|
| 1012 |
+
|
| 1013 |
+
}
|
| 1014 |
+
|
| 1015 |
+
const geometry = object.geometry;
|
| 1016 |
+
const material = object.material;
|
| 1017 |
+
|
| 1018 |
+
let a, b, c;
|
| 1019 |
+
const index = geometry.index;
|
| 1020 |
+
const positionAttribute = geometry.attributes.position;
|
| 1021 |
+
const morphPosition = geometry.morphAttributes.position;
|
| 1022 |
+
const morphTargetsRelative = geometry.morphTargetsRelative;
|
| 1023 |
+
const normalAttribute = geometry.attributes.normal;
|
| 1024 |
+
const morphNormal = geometry.morphAttributes.position;
|
| 1025 |
+
|
| 1026 |
+
const groups = geometry.groups;
|
| 1027 |
+
const drawRange = geometry.drawRange;
|
| 1028 |
+
let i, j, il, jl;
|
| 1029 |
+
let group;
|
| 1030 |
+
let start, end;
|
| 1031 |
+
|
| 1032 |
+
const modifiedPosition = new Float32Array( positionAttribute.count * positionAttribute.itemSize );
|
| 1033 |
+
const modifiedNormal = new Float32Array( normalAttribute.count * normalAttribute.itemSize );
|
| 1034 |
+
|
| 1035 |
+
if ( index !== null ) {
|
| 1036 |
+
|
| 1037 |
+
// indexed buffer geometry
|
| 1038 |
+
|
| 1039 |
+
if ( Array.isArray( material ) ) {
|
| 1040 |
+
|
| 1041 |
+
for ( i = 0, il = groups.length; i < il; i ++ ) {
|
| 1042 |
+
|
| 1043 |
+
group = groups[ i ];
|
| 1044 |
+
|
| 1045 |
+
start = Math.max( group.start, drawRange.start );
|
| 1046 |
+
end = Math.min( ( group.start + group.count ), ( drawRange.start + drawRange.count ) );
|
| 1047 |
+
|
| 1048 |
+
for ( j = start, jl = end; j < jl; j += 3 ) {
|
| 1049 |
+
|
| 1050 |
+
a = index.getX( j );
|
| 1051 |
+
b = index.getX( j + 1 );
|
| 1052 |
+
c = index.getX( j + 2 );
|
| 1053 |
+
|
| 1054 |
+
_calculateMorphedAttributeData(
|
| 1055 |
+
object,
|
| 1056 |
+
positionAttribute,
|
| 1057 |
+
morphPosition,
|
| 1058 |
+
morphTargetsRelative,
|
| 1059 |
+
a, b, c,
|
| 1060 |
+
modifiedPosition
|
| 1061 |
+
);
|
| 1062 |
+
|
| 1063 |
+
_calculateMorphedAttributeData(
|
| 1064 |
+
object,
|
| 1065 |
+
normalAttribute,
|
| 1066 |
+
morphNormal,
|
| 1067 |
+
morphTargetsRelative,
|
| 1068 |
+
a, b, c,
|
| 1069 |
+
modifiedNormal
|
| 1070 |
+
);
|
| 1071 |
+
|
| 1072 |
+
}
|
| 1073 |
+
|
| 1074 |
+
}
|
| 1075 |
+
|
| 1076 |
+
} else {
|
| 1077 |
+
|
| 1078 |
+
start = Math.max( 0, drawRange.start );
|
| 1079 |
+
end = Math.min( index.count, ( drawRange.start + drawRange.count ) );
|
| 1080 |
+
|
| 1081 |
+
for ( i = start, il = end; i < il; i += 3 ) {
|
| 1082 |
+
|
| 1083 |
+
a = index.getX( i );
|
| 1084 |
+
b = index.getX( i + 1 );
|
| 1085 |
+
c = index.getX( i + 2 );
|
| 1086 |
+
|
| 1087 |
+
_calculateMorphedAttributeData(
|
| 1088 |
+
object,
|
| 1089 |
+
positionAttribute,
|
| 1090 |
+
morphPosition,
|
| 1091 |
+
morphTargetsRelative,
|
| 1092 |
+
a, b, c,
|
| 1093 |
+
modifiedPosition
|
| 1094 |
+
);
|
| 1095 |
+
|
| 1096 |
+
_calculateMorphedAttributeData(
|
| 1097 |
+
object,
|
| 1098 |
+
normalAttribute,
|
| 1099 |
+
morphNormal,
|
| 1100 |
+
morphTargetsRelative,
|
| 1101 |
+
a, b, c,
|
| 1102 |
+
modifiedNormal
|
| 1103 |
+
);
|
| 1104 |
+
|
| 1105 |
+
}
|
| 1106 |
+
|
| 1107 |
+
}
|
| 1108 |
+
|
| 1109 |
+
} else {
|
| 1110 |
+
|
| 1111 |
+
// non-indexed buffer geometry
|
| 1112 |
+
|
| 1113 |
+
if ( Array.isArray( material ) ) {
|
| 1114 |
+
|
| 1115 |
+
for ( i = 0, il = groups.length; i < il; i ++ ) {
|
| 1116 |
+
|
| 1117 |
+
group = groups[ i ];
|
| 1118 |
+
|
| 1119 |
+
start = Math.max( group.start, drawRange.start );
|
| 1120 |
+
end = Math.min( ( group.start + group.count ), ( drawRange.start + drawRange.count ) );
|
| 1121 |
+
|
| 1122 |
+
for ( j = start, jl = end; j < jl; j += 3 ) {
|
| 1123 |
+
|
| 1124 |
+
a = j;
|
| 1125 |
+
b = j + 1;
|
| 1126 |
+
c = j + 2;
|
| 1127 |
+
|
| 1128 |
+
_calculateMorphedAttributeData(
|
| 1129 |
+
object,
|
| 1130 |
+
positionAttribute,
|
| 1131 |
+
morphPosition,
|
| 1132 |
+
morphTargetsRelative,
|
| 1133 |
+
a, b, c,
|
| 1134 |
+
modifiedPosition
|
| 1135 |
+
);
|
| 1136 |
+
|
| 1137 |
+
_calculateMorphedAttributeData(
|
| 1138 |
+
object,
|
| 1139 |
+
normalAttribute,
|
| 1140 |
+
morphNormal,
|
| 1141 |
+
morphTargetsRelative,
|
| 1142 |
+
a, b, c,
|
| 1143 |
+
modifiedNormal
|
| 1144 |
+
);
|
| 1145 |
+
|
| 1146 |
+
}
|
| 1147 |
+
|
| 1148 |
+
}
|
| 1149 |
+
|
| 1150 |
+
} else {
|
| 1151 |
+
|
| 1152 |
+
start = Math.max( 0, drawRange.start );
|
| 1153 |
+
end = Math.min( positionAttribute.count, ( drawRange.start + drawRange.count ) );
|
| 1154 |
+
|
| 1155 |
+
for ( i = start, il = end; i < il; i += 3 ) {
|
| 1156 |
+
|
| 1157 |
+
a = i;
|
| 1158 |
+
b = i + 1;
|
| 1159 |
+
c = i + 2;
|
| 1160 |
+
|
| 1161 |
+
_calculateMorphedAttributeData(
|
| 1162 |
+
object,
|
| 1163 |
+
positionAttribute,
|
| 1164 |
+
morphPosition,
|
| 1165 |
+
morphTargetsRelative,
|
| 1166 |
+
a, b, c,
|
| 1167 |
+
modifiedPosition
|
| 1168 |
+
);
|
| 1169 |
+
|
| 1170 |
+
_calculateMorphedAttributeData(
|
| 1171 |
+
object,
|
| 1172 |
+
normalAttribute,
|
| 1173 |
+
morphNormal,
|
| 1174 |
+
morphTargetsRelative,
|
| 1175 |
+
a, b, c,
|
| 1176 |
+
modifiedNormal
|
| 1177 |
+
);
|
| 1178 |
+
|
| 1179 |
+
}
|
| 1180 |
+
|
| 1181 |
+
}
|
| 1182 |
+
|
| 1183 |
+
}
|
| 1184 |
+
|
| 1185 |
+
const morphedPositionAttribute = new Float32BufferAttribute( modifiedPosition, 3 );
|
| 1186 |
+
const morphedNormalAttribute = new Float32BufferAttribute( modifiedNormal, 3 );
|
| 1187 |
+
|
| 1188 |
+
return {
|
| 1189 |
+
|
| 1190 |
+
positionAttribute: positionAttribute,
|
| 1191 |
+
normalAttribute: normalAttribute,
|
| 1192 |
+
morphedPositionAttribute: morphedPositionAttribute,
|
| 1193 |
+
morphedNormalAttribute: morphedNormalAttribute
|
| 1194 |
+
|
| 1195 |
+
};
|
| 1196 |
+
|
| 1197 |
+
}
|
| 1198 |
+
|
| 1199 |
+
/**
|
| 1200 |
+
* Merges the {@link BufferGeometry#groups} for the given geometry.
|
| 1201 |
+
*
|
| 1202 |
+
* @param {BufferGeometry} geometry - The geometry to modify.
|
| 1203 |
+
* @return {BufferGeometry} - The updated geometry
|
| 1204 |
+
*/
|
| 1205 |
+
function mergeGroups( geometry ) {
|
| 1206 |
+
|
| 1207 |
+
if ( geometry.groups.length === 0 ) {
|
| 1208 |
+
|
| 1209 |
+
console.warn( 'THREE.BufferGeometryUtils.mergeGroups(): No groups are defined. Nothing to merge.' );
|
| 1210 |
+
return geometry;
|
| 1211 |
+
|
| 1212 |
+
}
|
| 1213 |
+
|
| 1214 |
+
let groups = geometry.groups;
|
| 1215 |
+
|
| 1216 |
+
// sort groups by material index
|
| 1217 |
+
|
| 1218 |
+
groups = groups.sort( ( a, b ) => {
|
| 1219 |
+
|
| 1220 |
+
if ( a.materialIndex !== b.materialIndex ) return a.materialIndex - b.materialIndex;
|
| 1221 |
+
|
| 1222 |
+
return a.start - b.start;
|
| 1223 |
+
|
| 1224 |
+
} );
|
| 1225 |
+
|
| 1226 |
+
// create index for non-indexed geometries
|
| 1227 |
+
|
| 1228 |
+
if ( geometry.getIndex() === null ) {
|
| 1229 |
+
|
| 1230 |
+
const positionAttribute = geometry.getAttribute( 'position' );
|
| 1231 |
+
const indices = [];
|
| 1232 |
+
|
| 1233 |
+
for ( let i = 0; i < positionAttribute.count; i += 3 ) {
|
| 1234 |
+
|
| 1235 |
+
indices.push( i, i + 1, i + 2 );
|
| 1236 |
+
|
| 1237 |
+
}
|
| 1238 |
+
|
| 1239 |
+
geometry.setIndex( indices );
|
| 1240 |
+
|
| 1241 |
+
}
|
| 1242 |
+
|
| 1243 |
+
// sort index
|
| 1244 |
+
|
| 1245 |
+
const index = geometry.getIndex();
|
| 1246 |
+
|
| 1247 |
+
const newIndices = [];
|
| 1248 |
+
|
| 1249 |
+
for ( let i = 0; i < groups.length; i ++ ) {
|
| 1250 |
+
|
| 1251 |
+
const group = groups[ i ];
|
| 1252 |
+
|
| 1253 |
+
const groupStart = group.start;
|
| 1254 |
+
const groupLength = groupStart + group.count;
|
| 1255 |
+
|
| 1256 |
+
for ( let j = groupStart; j < groupLength; j ++ ) {
|
| 1257 |
+
|
| 1258 |
+
newIndices.push( index.getX( j ) );
|
| 1259 |
+
|
| 1260 |
+
}
|
| 1261 |
+
|
| 1262 |
+
}
|
| 1263 |
+
|
| 1264 |
+
geometry.dispose(); // Required to force buffer recreation
|
| 1265 |
+
geometry.setIndex( newIndices );
|
| 1266 |
+
|
| 1267 |
+
// update groups indices
|
| 1268 |
+
|
| 1269 |
+
let start = 0;
|
| 1270 |
+
|
| 1271 |
+
for ( let i = 0; i < groups.length; i ++ ) {
|
| 1272 |
+
|
| 1273 |
+
const group = groups[ i ];
|
| 1274 |
+
|
| 1275 |
+
group.start = start;
|
| 1276 |
+
start += group.count;
|
| 1277 |
+
|
| 1278 |
+
}
|
| 1279 |
+
|
| 1280 |
+
// merge groups
|
| 1281 |
+
|
| 1282 |
+
let currentGroup = groups[ 0 ];
|
| 1283 |
+
|
| 1284 |
+
geometry.groups = [ currentGroup ];
|
| 1285 |
+
|
| 1286 |
+
for ( let i = 1; i < groups.length; i ++ ) {
|
| 1287 |
+
|
| 1288 |
+
const group = groups[ i ];
|
| 1289 |
+
|
| 1290 |
+
if ( currentGroup.materialIndex === group.materialIndex ) {
|
| 1291 |
+
|
| 1292 |
+
currentGroup.count += group.count;
|
| 1293 |
+
|
| 1294 |
+
} else {
|
| 1295 |
+
|
| 1296 |
+
currentGroup = group;
|
| 1297 |
+
geometry.groups.push( currentGroup );
|
| 1298 |
+
|
| 1299 |
+
}
|
| 1300 |
+
|
| 1301 |
+
}
|
| 1302 |
+
|
| 1303 |
+
return geometry;
|
| 1304 |
+
|
| 1305 |
+
}
|
| 1306 |
+
|
| 1307 |
+
/**
|
| 1308 |
+
* Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
|
| 1309 |
+
* non-indexed geometry. Returns the geometry with smooth normals everywhere except
|
| 1310 |
+
* faces that meet at an angle greater than the crease angle.
|
| 1311 |
+
*
|
| 1312 |
+
* @param {BufferGeometry} geometry - The geometry to modify.
|
| 1313 |
+
* @param {number} [creaseAngle=Math.PI/3] - The crease angle in radians.
|
| 1314 |
+
* @return {BufferGeometry} - The updated geometry
|
| 1315 |
+
*/
|
| 1316 |
+
function toCreasedNormals( geometry, creaseAngle = Math.PI / 3 /* 60 degrees */ ) {
|
| 1317 |
+
|
| 1318 |
+
const creaseDot = Math.cos( creaseAngle );
|
| 1319 |
+
const hashMultiplier = ( 1 + 1e-10 ) * 1e2;
|
| 1320 |
+
|
| 1321 |
+
// reusable vectors
|
| 1322 |
+
const verts = [ new Vector3(), new Vector3(), new Vector3() ];
|
| 1323 |
+
const tempVec1 = new Vector3();
|
| 1324 |
+
const tempVec2 = new Vector3();
|
| 1325 |
+
const tempNorm = new Vector3();
|
| 1326 |
+
const tempNorm2 = new Vector3();
|
| 1327 |
+
|
| 1328 |
+
// hashes a vector
|
| 1329 |
+
function hashVertex( v ) {
|
| 1330 |
+
|
| 1331 |
+
const x = ~ ~ ( v.x * hashMultiplier );
|
| 1332 |
+
const y = ~ ~ ( v.y * hashMultiplier );
|
| 1333 |
+
const z = ~ ~ ( v.z * hashMultiplier );
|
| 1334 |
+
return `${x},${y},${z}`;
|
| 1335 |
+
|
| 1336 |
+
}
|
| 1337 |
+
|
| 1338 |
+
// BufferGeometry.toNonIndexed() warns if the geometry is non-indexed
|
| 1339 |
+
// and returns the original geometry
|
| 1340 |
+
const resultGeometry = geometry.index ? geometry.toNonIndexed() : geometry;
|
| 1341 |
+
const posAttr = resultGeometry.attributes.position;
|
| 1342 |
+
const vertexMap = {};
|
| 1343 |
+
|
| 1344 |
+
// find all the normals shared by commonly located vertices
|
| 1345 |
+
for ( let i = 0, l = posAttr.count / 3; i < l; i ++ ) {
|
| 1346 |
+
|
| 1347 |
+
const i3 = 3 * i;
|
| 1348 |
+
const a = verts[ 0 ].fromBufferAttribute( posAttr, i3 + 0 );
|
| 1349 |
+
const b = verts[ 1 ].fromBufferAttribute( posAttr, i3 + 1 );
|
| 1350 |
+
const c = verts[ 2 ].fromBufferAttribute( posAttr, i3 + 2 );
|
| 1351 |
+
|
| 1352 |
+
tempVec1.subVectors( c, b );
|
| 1353 |
+
tempVec2.subVectors( a, b );
|
| 1354 |
+
|
| 1355 |
+
// add the normal to the map for all vertices
|
| 1356 |
+
const normal = new Vector3().crossVectors( tempVec1, tempVec2 ).normalize();
|
| 1357 |
+
for ( let n = 0; n < 3; n ++ ) {
|
| 1358 |
+
|
| 1359 |
+
const vert = verts[ n ];
|
| 1360 |
+
const hash = hashVertex( vert );
|
| 1361 |
+
if ( ! ( hash in vertexMap ) ) {
|
| 1362 |
+
|
| 1363 |
+
vertexMap[ hash ] = [];
|
| 1364 |
+
|
| 1365 |
+
}
|
| 1366 |
+
|
| 1367 |
+
vertexMap[ hash ].push( normal );
|
| 1368 |
+
|
| 1369 |
+
}
|
| 1370 |
+
|
| 1371 |
+
}
|
| 1372 |
+
|
| 1373 |
+
// average normals from all vertices that share a common location if they are within the
|
| 1374 |
+
// provided crease threshold
|
| 1375 |
+
const normalArray = new Float32Array( posAttr.count * 3 );
|
| 1376 |
+
const normAttr = new BufferAttribute( normalArray, 3, false );
|
| 1377 |
+
for ( let i = 0, l = posAttr.count / 3; i < l; i ++ ) {
|
| 1378 |
+
|
| 1379 |
+
// get the face normal for this vertex
|
| 1380 |
+
const i3 = 3 * i;
|
| 1381 |
+
const a = verts[ 0 ].fromBufferAttribute( posAttr, i3 + 0 );
|
| 1382 |
+
const b = verts[ 1 ].fromBufferAttribute( posAttr, i3 + 1 );
|
| 1383 |
+
const c = verts[ 2 ].fromBufferAttribute( posAttr, i3 + 2 );
|
| 1384 |
+
|
| 1385 |
+
tempVec1.subVectors( c, b );
|
| 1386 |
+
tempVec2.subVectors( a, b );
|
| 1387 |
+
|
| 1388 |
+
tempNorm.crossVectors( tempVec1, tempVec2 ).normalize();
|
| 1389 |
+
|
| 1390 |
+
// average all normals that meet the threshold and set the normal value
|
| 1391 |
+
for ( let n = 0; n < 3; n ++ ) {
|
| 1392 |
+
|
| 1393 |
+
const vert = verts[ n ];
|
| 1394 |
+
const hash = hashVertex( vert );
|
| 1395 |
+
const otherNormals = vertexMap[ hash ];
|
| 1396 |
+
tempNorm2.set( 0, 0, 0 );
|
| 1397 |
+
|
| 1398 |
+
for ( let k = 0, lk = otherNormals.length; k < lk; k ++ ) {
|
| 1399 |
+
|
| 1400 |
+
const otherNorm = otherNormals[ k ];
|
| 1401 |
+
if ( tempNorm.dot( otherNorm ) > creaseDot ) {
|
| 1402 |
+
|
| 1403 |
+
tempNorm2.add( otherNorm );
|
| 1404 |
+
|
| 1405 |
+
}
|
| 1406 |
+
|
| 1407 |
+
}
|
| 1408 |
+
|
| 1409 |
+
tempNorm2.normalize();
|
| 1410 |
+
normAttr.setXYZ( i3 + n, tempNorm2.x, tempNorm2.y, tempNorm2.z );
|
| 1411 |
+
|
| 1412 |
+
}
|
| 1413 |
+
|
| 1414 |
+
}
|
| 1415 |
+
|
| 1416 |
+
resultGeometry.setAttribute( 'normal', normAttr );
|
| 1417 |
+
return resultGeometry;
|
| 1418 |
+
|
| 1419 |
+
}
|
| 1420 |
+
|
| 1421 |
+
export {
|
| 1422 |
+
computeMikkTSpaceTangents,
|
| 1423 |
+
mergeGeometries,
|
| 1424 |
+
mergeAttributes,
|
| 1425 |
+
deepCloneAttribute,
|
| 1426 |
+
deinterleaveAttribute,
|
| 1427 |
+
deinterleaveGeometry,
|
| 1428 |
+
interleaveAttributes,
|
| 1429 |
+
estimateBytesUsed,
|
| 1430 |
+
mergeVertices,
|
| 1431 |
+
toTrianglesDrawMode,
|
| 1432 |
+
computeMorphedAttributes,
|
| 1433 |
+
mergeGroups,
|
| 1434 |
+
toCreasedNormals
|
| 1435 |
+
};
|
zh.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>AWSM:智能体世界仿真与建图 — Phygital AI</title><meta name="description" content="把真实空间,变成虚实融合智能体可以使用的世界。"><meta property="og:type" content="article"><meta property="og:locale" content="zh_CN"><meta property="og:title" content="AWSM:智能体世界仿真与建图"><meta property="og:description" content="把真实空间,变成虚实融合智能体可以使用的世界。"><meta property="og:image" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/assets/teaser_originals.png"><meta property="og:url" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/zh.html"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="AWSM:智能体世界仿真与建图"><meta name="twitter:description" content="把真实空间,变成虚实融合智能体可以使用的世界。"><meta name="twitter:image" content="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/assets/teaser_originals.png"><link rel="canonical" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/zh.html"><link rel="alternate" hreflang="zh-CN" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/zh.html"><link rel="alternate" hreflang="en" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><link rel="stylesheet" href="style.css?v=cbba47743ba2"><link rel="stylesheet" href="editorial.css?v=462f0ffc2b51"><script type="importmap">{"imports":{"three":"./vendor/three/three.module.js"}}</script><script src="app.js?v=d70db3a6816b" defer></script><script type="module" src="scene-compare.js?v=bd749465e05d"></script><link rel="stylesheet" href="office.css?v=2e8c4a2f0718"><link rel="alternate" hreflang="x-default" href="https://phygital-ai.github.io/agentic-world-simulation-and-mapping/"><meta property="article:published_time" content="2026-10-01"></head>
|
| 2 |
+
<body data-lang="zh"><a class="skip" href="#main">跳到正文</a><nav><a class="brand" href="index.html">PHYGITAL AI / AWSM</a><div><a href="zh.html" aria-current='page'>中文</a><a href="index.html" >EN</a><a href="https://github.com/wentingw/AWSM" target="_blank" rel="noopener noreferrer">GitHub ↗</a></div></nav><header><p class="title-name">智能体世界仿真与建图</p><div class="title-lockup"><h1 aria-label="AWSM: 智能体世界仿真与建图">AWSM</h1><p class="pronunciation">读作 “awesome”</p></div><p class="lead">把真实空间,变成<strong class="tagline-emphasis">虚实融合智能体可以使用的世界。</strong></p><p class="brand-note">Phygital = physical(物理)+ digital(数字),即虚实融合。</p><p class="publication-date">发布于 <time datetime="2026-10-01">2026年10月1日</time></p></header>
|
| 3 |
+
<div class="hero" id="overview-video"><video controls playsinline preload="metadata" poster="assets/awsm-promo-v5-poster.jpg" aria-label="AWSM 介绍视频"><source src="assets/awsm-promo-v5.mp4" type="video/mp4"><a href="assets/awsm-promo-v5.mp4">AWSM 介绍视频</a></video><div class="project-links" role="group" aria-label="AWSM 项目资源"><a class="project-resource" href="https://github.com/wentingw/AWSM" target="_blank" rel="noopener noreferrer" aria-label="GitHub(在新窗口打开)" title="GitHub(在新窗口打开)"><img src="assets/icons/github.svg" width="24" height="24" alt="">GitHub<svg class="project-external-arrow" viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 12 12 4M4 4h8v8"/></svg></a><span class="project-resource"><img src="assets/icons/huggingface.svg" width="24" height="24" alt="">Hugging Face (Coming soon)</span></div></div><div class="layout"><aside class="toc"><p>ON THIS PAGE</p><a href="#results">概览</a><a href="#motivation">研究动机</a><a href="#workflow">工作流</a><a href="#more-results">结果与分析</a><a href="#embodied-demo">具身演示</a><a href="#related-work">相关工作</a><a href="#limitations">局限性</a><a href="#citation">引用</a><a href="#references">参考文献</a></aside><main id="main">
|
| 4 |
+
<section id="results"><p class="section-tag">01 / OVERVIEW</p><aside class="tldr"><strong>TL;DR</strong><p>AWSM 让大模型智能体将视觉观测转化为可编辑的 3D 场景,并以估计的相机位姿与深度进行几何锚定,其中包括融合 IMU 的视觉惯性约束,将几何与真实物理尺度绑定。在一个受控的 Isaac Sim 场景中,四条重建路线检验的不只是视觉合理性,更是空间忠实度:经配准的纯 RGB 路线 M1 与真值位姿条件路线 M4 对比,双向表面误差降低约 81%,180 个评估视角上的模型深度绝对相对误差(AbsRel)降低约 54%。多机器人 demo 进一步展示基于重建地图的目标导航与任务执行:沿预设路线前往地���上已标记的前台,并在那里排队。下一步是提升效率与精度、形成可复用的仿真就绪资产,并进一步与虚实融合智能体(phygital agents)集成,支持持久空间记忆、寻物与交互。</p></aside><h2>一个场景可以看起来合理,却在空间上是错的。</h2><p class="standfirst">Agentic 重建由大模型检查观测、调用建模工具,并迭代构建和验证可编辑场景。挑战不只是生成一个令人信服的房间,还在于保留尺度、形状与空间关系,让结果在渲染之外仍然有用。AWSM 研究如何用几何证据约束这一过程,让输出成为下游智能体更忠实的空间参照。</p><p>我们对 NVIDIA Isaac Sim 中的 World Lobby 仿真场景,沿四条完整工程路径进行重建:从纯 RGB 建模,逐步加入估计位姿、深度与真实相机位姿。每条路径交付的是冻结的 Blender 场景,而不只是点云或新视角渲染器。实验关注的不是谁生成了最漂亮的单帧,而是几何证据究竟带来了什么、没有解决什么,以及哪些误差会穿过对象化建模继续存在。</p><div class="insight-strip"><div><strong>0.376 → 0.072 m</strong><span>双向表面误差</span><small class="metric-reduction">相对降低约 81% · M1 → M4</small></div><div><strong>16.44% → 7.60%</strong><span>模型深度绝对相对误差(AbsRel)· 180 个评估视角</span><small class="metric-reduction">相对降低约 54% · M1 → M4</small></div></div><p class="metric-caveat">单场景 M1 → M4 诊断性对比:M1 使用真值辅助的 Sim(3) 配准,M4 使用真值相机位姿。相对降幅比较的是完整管线,而非 IMU 的独立贡献。</p></section>
|
| 5 |
+
<section id="motivation"><p class="section-tag">02 / MOTIVATION</p><h2>从看起来合理的重建,到可以使用的空间参照</h2><p>负责重建的智能体可以搭建一个看似合理的房间,却重建错转角、距离或通道。对具身智能体而言,这些不只是视觉缺陷,还会改变目标的位置与身体可以通过的路线。几何锚定,是在信息可用时以位姿、深度与米制证据约束建模过程,而非仅依赖视觉合理性。关键问题是:这些约束如何在观测转化为可编辑对象的过程中得到保留?</p><p>前台任务让这种联系变得具体:在重建地图中标记目标、设定路线,再由机器人控制器执行。本文用“场景表示”指可编辑的对象与几何,用“地图”描述它在导航中的作用,用“仿真资产”描述它与仿真器的集成。AWSM 中的“世界”指这种可复用的空间环境,而非学习得到的动力学预测模型。连接导航、记忆、交互与仿真的持久空间基础是长期目标;当前实验和 demo 分别研究其几何基础,并展示一种下游用途。</p><aside class="claim"><strong>研究问题</strong><p>逐步增强的几何证据,如何改变一个对象化可编辑世界的忠实度,以及它仍然保留的失败模式?</p></aside><h3>本文贡献</h3><ol class="contributions"><li>对几何锚定的 agentic 重建开展四路线研究:固定场景、同一组 180 帧 RGB 输入、建模目标与可编辑输出格式,比较具有不同几何证据的完整管线。</li><li>将轨迹误差、原生深度、最终场景深度、表面几何和渲染外观分开评测,并提供冻结 Blend/GLB 资产、可复现评测子集、公开哈希与交互式对照。</li><li>通过基于地图的多机器人仿真示例,将重建场景连接到目标标记、预设路线和控制器执行;它展示下游用途,而非不同重建路线之间的受控导航对比。</li></ol><div id="scale-and-sensors" class="analysis-block grounding-block"><h3>几何锚定:真实尺度是必要约束,但不是全部答案</h3>
|
| 6 |
+
<p>纯单目投影几何存在全局尺度歧义;学习型米制深度提供有用先验,却不是对每个真实尺寸的独立测量。标定 RGB-D、已知基线或长度,以及视觉惯性估计,都可以提供米制约束。IMU 融合能在运动激励充分、初始化、偏置估计、时间同步与标定可靠时恢复米制运动;IMU 不是直接测距传感器,“带 IMU”不等于“尺度一定准确”。</p>
|
| 7 |
+
<p>尺度、局部形状、相机位姿和可通行连通性需要分别检查。弯曲转角被简化成直角,不能只靠缩放修复。位姿条件可以改善深度重建,但 DA3 消融和本文 M2/M3 的结果都不支持“所有深度指标必然同步改善”;下文四条路线是完整系统比较,而非只切换 IMU 的单变量实验。</p>
|
| 8 |
+
<p class="inline-sources"><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">VINS-Mono</a> · <a href="https://arxiv.org/html/2511.10647v1#S7.SS2.SSS3" target="_blank" rel="noopener">DA3 位姿条件消融</a></p></div></section>
|
| 9 |
+
<section id="workflow"><p class="section-tag">03 / WORKFLOW</p><h2>一个 agentic 工作流,四条重建路线</h2><p>负责重建的智能体遵循共同的“观察—构建—验证”���环:检查可用证据,编写 Blender Python 构建对象,渲染检查视图,并在冻结评测前迭代修改。这里的 agentic 指这种工具驱动的建模过程;下游机器人控制器承担另一种角色。</p><p>四条路径使用相同的 180 张 RGB 身份和相同的 Astra–Blender 建模目标。M1 检验没有米制测量时视觉先验能走多远;M2 加入 RGB-only ViPE 位姿与 pose-conditioned DA3 深度;M3 使用 ORB-SLAM3 单目惯性位姿与同类 DA3 观测;M4 提供 GT 相机位姿,用于诊断剩余建模误差,但建模时不读取 GT 网格或 GT 深度。</p><figure class="table-figure" id="table-1" data-table-key="table1"><figcaption><span>Table 1.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 1"></div></figure><h3>Agentic 重建闭环</h3><div class="workflow-strip"><div><strong>01 · 观察</strong><span>检查全部 180 张 RGB;在允许的方法中读取位姿条件下的 DA3 几何。</span></div><div><strong>02 · 建模</strong><span>编写 Blender Python,将房间拆解为命名对象、材质、相机与碰撞代理。</span></div><div><strong>03 · 验证</strong><span>在固定修订相机上比较成对 RGB 与 optical-Z 渲染,并在固定版本预算内修改。</span></div><div><strong>04 · 冻结</strong><span>在作者看到任何 GT 评分前,导出 Blend/GLB、manifest、语义 ID 与哈希。</span></div><div><strong>05 · 评测</strong><span>在同一冻结协议下分别测量位姿、原生深度、模型深度、表面距离与外观。</span></div></div><p>所有场景冻结后才引入真值。M2/M3 只使用一次全局 SE(3) 配准,尺度固定为 1;不进行 mesh ICP 或逐视角拟合。M1 没有原生米制轨迹,其模型空间指标使用由 5 个手工相机关联得到、冻结不变的 GT-assisted Sim(3),因此只能解释形状与显示误差,不能视为米制恢复。</p><aside class="notice"><strong>M1 diagnostic limitation.</strong> 其 Sim(3) 配准后的几何与深度数值描述 GT-assisted 显示配准后的形状,不代表原生米制恢复。</aside></section>
|
| 10 |
+
<section id="more-results"><p class="section-tag">04 / RESULTS AND ANALYSIS</p><h2>比排行榜更重要的三个发现</h2><article class="finding"><p class="finding-kicker">FINDING 01</p><h3>1. 更好的位姿不会机械地带来更好的原生深度</h3><p>M3 的轨迹优于 M2:ATE 从 0.167 m 降至 0.121 m,旋转误差从 0.31° 降至 0.19°;但 M3 的原生 DA3 AbsRel 反而略差(20.38% 对 19.06%)。经过建模后,排序再次反转:M3 的模型深度 AbsRel 为 8.37%,优于 M2 的 9.29%。上游指标与最终场景忠实度相关,却不能彼此替代。</p></article><figure class="table-figure" id="table-2" data-table-key="table2"><figcaption><span>Table 2.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 2"></div></figure><figure id="figure-1"><img loading="lazy" src="assets/figure14_abc.png" alt="Trajectory, native depth, and model depth"><figcaption><span>Figure 1.</span> 上游轨迹与原生深度的排序,并不会一一映射为冻结场景的深度排序。</figcaption></figure><article class="finding"><p class="finding-kicker">FINDING 02</p><h3>2. 几何证据把“合理布局”约束成更忠实的空间</h3><p>在声明配准且不使用 mesh ICP 的条件下,双向表面误差从纯 RGB 诊断基线的 0.376 m,依次降至 ViPE 的 0.118 m、ORB-SLAM3 的 0.082 m 与 GT 位姿的 0.072 m。M4 在本案例中拥有最强几何,而 M3 依靠估计轨迹已经缩小了大部分差距。</p></article><figure class="table-figure" id="table-3" data-table-key="table3"><figcaption><span>Table 3.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 3"></div></figure><article class="finding finding-comparison"><p class="finding-kicker">FINDING 03</p><h3>3. 定性比较</h3></article><div class="analysis-block"><h3>不只看汇总指标,也检查重建场景</h3><p>在共享相机中将每个重建与 GT 对照:先从 M1 观察语义上合理的房间如何偏离米制布局;再比较 M2/M3,寻找几何改善但 RGB 相似度未同步提升的区域;最后检查 M4,把相机位姿不再是瓶颈后仍然存在的建模与材质误差分离出来。</p><figure id="figure-2"><img loading="lazy" src="assets/fixed_five_view_comparison_m1_m4.jpg" alt="M1 to M4 and input GT across five fixed views"><figcaption><span>Figure 2.</span> M1–M4 与输入 GT 在五个固定视角下的并排比较。</figcaption></figure><figure class="scene-comparison" id="figure-3" data-state="idle"><h3>旋转、缩放,检查冻结场景</h3>
|
| 11 |
+
<div class="scene-toolbar"><label class="method-control">重建方法 / GT<select id="model-select"><option value="M1">M1</option><option value="M2">M2</option><option value="M3">M3</option><option value="M4" selected>M4</option><option value="GT">GT</option></select></label><label>显示方式<select id="scene-mode"><option value="compare">中轴线对比 GT</option><option value="single">单独查看所选场景</option></select></label><button id="scene-reset" type="button">重置视角</button></div>
|
| 12 |
+
<div class="scene-stage"><span class="scene-label scene-label-left">M4</span><span class="scene-label scene-label-right">GT</span><button class="scene-divider" type="button" role="slider" aria-label="Comparison divider" aria-valuemin="2" aria-valuemax="98" aria-valuenow="50"></button><input id="scene-split" class="scene-split" type="range" min="2" max="98" value="50" aria-label="Comparison split"><p class="scene-status">滚动到此处加载三维对比。</p></div><button id="scene-retry" class="scene-retry" type="button">重试</button>
|
| 13 |
+
<figcaption><span>Figure 3.</span> 所选冻结模型与 GT 共用同一相机和完整 viewport;网页运行时隐藏顶棚与四周墙体,以相同剖视方式检查,源模型文件保持不变。</figcaption></figure><figure class="fixed-comparison" id="figure-4"><div class="controlrow"><label>方法<select id="compare-method" disabled><option value="M1">M1</option><option value="M2">M2</option><option value="M3">M3</option><option value="M4">M4</option></select></label><label>固定视角<select id="compare-frame" disabled><option value="0">0</option><option value="36">36</option><option value="72">72</option><option value="108">108</option><option value="144">144</option></select></label></div><div class="compare-pair"><div><img id="compare-pred" src="assets/fixed_views/M1/000.png" alt="Selected frozen model rendering"><p id="compare-label" class="compare-subcaption">M1 / 视角 0</p></div><div><img id="compare-gt" src="assets/fixed_views/GT/000.png" alt="Input GT RGB"><p class="compare-subcaption">INPUT / GT RGB</p></div></div><figcaption><span>Figure 4.</span> 同一所选视角下的冻结模型渲染与输入 GT RGB。</figcaption></figure><p>网页只在运行时隐藏顶棚与四周墙体,以便剖视检查;运行时配准与显示选择不会修改可下载的冻结 GLB 或 Blend 文件。</p></div><div class="analysis-block"><h3>几何锚定改变了什么,又没有解决什么</h3><h4>建模像一种结构化、同时有损的正则化</h4><p>在共享的 180 视角协议下,M2–M4 的最终场景深度都显著接近 GT:相较原生 DA3,AbsRel 约下降 51–60%。一种可能解释是,对象级聚合抑制了局部不一致预测;但这仍是假说,而非受控因果结论。同一种抽象也可能删除真实表面与细节。</p><h4>测量约束生成,却不会自动解决外观</h4><p>几何最强的路径并未统治 PSNR 或 SSIM。位姿消除了一类不确定性,外观仍受材质估计、照明、物体细节与渲染器差异支配。只评 RGB 会漏掉空间进步,只评几何也会漏掉感知失败。</p><h4>100 视角检查衡量一致性,而不是未见视角泛化</h4><p>Table 7 使用一组固定随机种子的 100 个相机,它们从固定 5 帧之外的 175 张建模帧中抽取。这些视角相对固定检查是额外视角,但其 RGB 在建模阶段可见。在该集合上,M4 的深度 AbsRel 最低(7.47%),M3 的 RMSE 最低(1.090 m)。</p><figure id="figure-5"><img loading="lazy" src="assets/model_depth_error_five_views_m1_m4.png" alt="Model-depth error at five fixed evaluation views"><figcaption><span>Figure 5.</span> 固定 5 视角检查中的模型深度误差;青绿色表示缺失或无效预测。</figcaption></figure><figure class="table-figure" id="table-6" data-table-key="table6"><figcaption><span>Table 6.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 6"></div></figure><figure class="table-figure" id="table-7" data-table-key="table7"><figcaption><span>Table 7.</span> <span class="table-title"></span></figcaption><div class="table-scroll table-mount" role="region" tabindex="0" aria-label="Table 7"></div></figure></div><div id="office-cafe" class="analysis-block external-case"><h3>走出仿真大厅:手机采集空间中还剩下什么?</h3><p>Office Café 不是 World Lobby 基准的第二次运行,也不构成同协议的定量验证。它是一个真实采集的外部案例,用于展示对象化场景、求解后的原视频相机轨迹、视频—模型对照与物理回放如何组合成一个可检查的空间产物。作者观察到的一类失败是:真实的弯曲转角被简化成方正结构。它提醒我们区分局部形状与全局尺度——尺度正确并不能自动修复形状错误;这里将其作为定性观察,而非另一组定量结果。</p><p class="office-links"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener">全屏打开模型 ↗</a><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener">打开摇晃实验 ↗</a></p><div class="office-external"><h4>打开原始交互网页</h4><div class="office-external-grid"><figure class="office-external-card"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" target="_blank" rel="noopener noreferrer"><img loading="lazy" src="assets/office-cafe/office-pmodel-poster.jpg" alt="交互模型: 来自已发布模型渲染视频的本地预览。"></a><figcaption><strong>交互模型</strong><p>来自已发布模型渲染视频的本地预览。</p><button type="button" data-office-external="https://office-cafe-vipe.hiwtishere.chatgpt.site/?lang=en" aria-controls="office-external-slot">加载外部网页 · 请求英文版</button></figcaption></figure><figure class="office-external-card"><a href="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" target="_blank" rel="noopener noreferrer"><img loading="lazy" src="assets/office-cafe/office-shake-heavy-poster.jpg" alt="摇晃实验: 来自已发布较强摇晃回放的本地预览。"></a><figcaption><strong>摇晃实验</strong><p>来自已发布较强摇晃回放的本地预览。</p><button type="button" data-office-external="https://office-cafe-vipe.hiwtishere.chatgpt.site/shake?lang=en" aria-controls="office-external-slot">加载外部网页 · 请求英文版</button></figcaption></figure></div><p class="office-external-note">链接通过 lang=en 请求英文,实际语言与可用性由外站控制。这里展示的是本地内容预览,并非外站页面截图。若嵌入不可用,可使用全屏外链,或查看下方本地模型与视频。</p><div id="office-external-slot" class="office-external-slot" hidden></div></div><div class="office-model-grid"><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/scene.glb" aria-label="可旋转查看的 Office Café 原有模型"></div><figcaption><strong>原有模型</strong><span>输入为视频与估计深度;拖动旋转、右键平移、滚轮缩放。</span></figcaption></figure><figure class="office-model-card"><div class="office-model-stage" data-src="assets/office-cafe/atlas-scene.glb" aria-label="可旋转查看的 Office Café 旧模型"></div><figcaption><strong>旧模型</strong><span>输入仅为视频;该旧版布局未按 ViPE 扫描重新标定。</span></figcaption></figure></div><p class="office-model-note">两个模型默认采用俯视剖切视图,仅在显示时裁去上部遮挡,以展示室内布局;点击“剖切视图”可切换完整模型,“重置视角”可恢复总览。原始坐标、材质和模型文件保持不变。联动旋转用于观察布局,不代表几何配准。</p><div class="office-video-grid office-video-sync"><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-input-poster.jpg" src="assets/office-cafe/office-input-web.mp4?v=4915b934b5f9" aria-label="输入视频"></video><figcaption><strong>输入视频</strong><span>原始手机拍摄视频。</span></figcaption></figure><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-pmodel-poster.jpg" src="assets/office-cafe/office-pmodel-web.mp4?v=3b03fe58a192" aria-label="程序化模型"></video><figcaption><strong>程序化模型</strong><span>沿原视频相机轨迹渲染的模型。</span></figcaption></figure><figure class="office-video-card"><video data-synced-video muted preload="metadata" playsinline poster="assets/office-cafe/office-scan-poster.jpg" src="assets/office-cafe/office-scan-web.mp4?v=861a074637b4" aria-label="点云"></video><figcaption><strong>点云</strong><span>沿相同轨迹渲染的扫描点云。</span></figcaption></figure></div>
|
| 14 |
+
<div class="office-video-controls"><button class="office-video-play" type="button" aria-label="播放全部三个视频" aria-pressed="false">▶</button><input class="office-video-progress" type="range" min="0" max="1000" value="0" aria-label="三个视频的共同播放进度"><output class="office-video-time">00:00 / 01:10</output><p class="office-video-status" role="status" aria-live="polite">同步播放 · 70.1 秒 · 30 fps</p></div><div class="office-video-grid"><figure class="office-video-card office-video-card-wide"><video controls preload="metadata" playsinline poster="assets/office-cafe/office-shake-heavy-poster.jpg" src="assets/office-cafe/office-shake-heavy.mp4"></video><figcaption><strong>较强地震效果</strong><span>场景中的物体均可交互,柜门可以打开;此段展示较强摇晃下的物理响应。</span></figcaption></figure></div><script type="module" src="office-models.js?v=8752a7cc4f64"></script></div></section>
|
| 15 |
+
<section id="embodied-demo" class="embodied-demo">
|
| 16 |
+
<p class="section-tag">DEMO / MAP-BASED EMBODIED EXECUTION</p><h2>一张重建地图,一个目标,一次具身执行。</h2><p>这个 demo 在 NVIDIA Isaac Sim 中将重建连接到下游使用:在导航地图中标出前台,设定路线,再让无人机、人形、四足和轮式机器人执行任务。同一个空间参照连接目标、路径约束与运动控制:���可以查看的重建场景,走向可以用于行动的地图。</p>
|
| 17 |
+
<blockquote class="mission-command"><span>任务意图:</span>让机器人前往前台,并在那里排成一列。</blockquote>
|
| 18 |
+
<ol class="mission-flow" aria-label="任务流程"><li><span>01</span>任务指令</li><li><span>02</span>地图上定位前台</li><li><span>03</span>设定导航路线</li><li><span>04</span>控制器执行</li></ol>
|
| 19 |
+
<figure class="demo-film"><video controls playsinline preload="none" poster="assets/embodied-demo/navigation-214924-poster.png" width="1280" height="720" aria-label="四机器人地图导航演示"><source src="assets/embodied-demo/four-robots-214924-156s-phone.mp4" type="video/mp4">浏览器无法播放此视频,请使用下方下载链接。</video><figcaption>基于重建地图的仿真导航 · 预设路线 · 仿真器位姿反馈。作者确认,本演示已完成人工审阅。</figcaption></figure>
|
| 20 |
+
<div class="demo-links"><a href="assets/embodied-demo/four-robots-214924-156s-phone.mp4" download>下载手机版 · 11.65 MB · 2:36</a><a href="assets/embodied-demo/four-robots-214924-156s-hd.mp4" download>下载高清版 · 49.69 MB · 2:36</a><a href="data/embodied_demo.json">运行与视频记录 ↗</a></div>
|
| 21 |
+
<figure class="demo-map" id="demo-route-map"><a href="assets/embodied-demo/planned-route-156s.png" target="_blank" rel="noopener"><img loading="lazy" src="assets/embodied-demo/planned-route-156s.png" width="1920" height="1080" alt="标出前台与航点的四机器人路线设计图;静态设计,非执行轨迹"></a><figcaption><span>导航地图。</span> 在重建场景中标出前台与规划路线。这是静态设计图,而非实跑轨迹;点击查看原尺寸地图。</figcaption></figure>
|
| 22 |
+
<details class="demo-protocol"><summary>演示条件与范围</summary><p>上方指令说明任务意图,不代表本次演示实现了语言到计划的自动解析。路线人工设定,并同时参考 M4 重建地图和原始几何筛选;这不是只依赖重建图的规划 benchmark。</p><p>成片为 156 秒、1× 原速:场景(0–6秒)、重建(6–12秒)、路线设计(12–18秒)、导航(18–156秒)。导航来自新运行 <code>20260930-214924</code>,略去开头等待的 12.32 秒,后续终点保持过程不在本剪辑中。地图是静态路线设计图,不是实测执行轨迹。</p><p>本 demo 不评测在线视觉定位、学习型指令理解、记忆检索或真实机器人迁移。这些是独立能力,不改变本演示所表达的“利用重建地图执行导航任务”。</p><p>人工展示审阅与下方保留的历史自动检查属于不同验证层次,不改变其原始判定。</p><p><a href="evidence/embodied-demo-audit.json">历史自动检查记录 ↗</a></p></details>
|
| 23 |
+
</section>
|
| 24 |
+
<section id="related-work"><p class="section-tag">05 / RELATED WORK</p><h2>从几何测量到可编辑 Real2Sim</h2><p>AWSM 连接两类角色:负责构建可编辑场景的智能体,以及将它作为空间参照使用的下游智能体。SLAM 与视觉惯性估计提供位姿和米制约束,ViPE 与 Depth Anything 3 提供几何观测。同期工作 AHa-3D 探索视频驱动、工具辅助的 Real2Sim,包括从视频估计相机与三维参照。我们的重点是几何锚定:将额外的物理测量,尤其是融合 IMU 的视觉惯性位姿与米制约束,引入智能体场景构建,而不只依赖视频推断的证据。四路线对比评估的是重建系统,并非 IMU 独立作用的消融实验;demo 展示的是地图应用,而不是完整的自主具身系统。</p><p>因此,我们的评测同时覆盖接口两端:上游系统作为测量管线接受检验,Blender 输出则作为持久化空间产物接受检验;这不同于孤立地评估位姿、深度或新视角合成。</p><span class="inline-sources"><a href="https://research.nvidia.com/labs/toronto-ai/vipe/" target="_blank" rel="noopener">ViPE</a> · <a href="https://arxiv.org/abs/2007.11898" target="_blank" rel="noopener">ORB-SLAM3</a> · <a href="https://arxiv.org/abs/2511.10647" target="_blank" rel="noopener">Depth Anything 3</a> · <a href="https://kevinxu02.github.io/real2sim-indoor-site/" target="_blank" rel="noopener">AHa-3D</a></span><div id="spatial-foundation" class="analysis-block spatial-foundation"><p class="section-tag">研究方向</p><h3>走向虚实融合智能体可持续使用的空间</h3><p>当前输出是可编辑的场景快照,demo 展示了针对特定场景的仿真集成。长期目标是把几何锚定的 agentic 重建发展为可复用流程,构建并维护虚实融合智能体能够使用的空间。保存可编辑资产是起点,不等于已经验证长期地图维护;以下方向是在当前证据基础上的延伸。</p><div class="capability-grid"><div><h4>导航</h4><p>在同一几何坐标中表达目标、自由空间与不同机器人的通行净空。更忠实的重建可以减少地图失配,可靠导航还需要定位与实时观测。</p></div><div><h4>记忆与多模态检索</h4><p>将对象身��、位置和源视图关联,让语言、图像与过去的观察指向同一个地点。检索到对象与安全到达对象,需要分别评测。</p></div><div><h4>交互与长期维护</h4><p>编辑对象属性与关系,重访变化区域,保留证据和版本。持久记忆应区分实际观察、推断补全和未知空间,而非把所有生成内容都当作事实。</p></div><div><h4>仿真与学习</h4><p>从当前特定场景的集成,走向可复用的仿真就绪导出流程,检查尺度、碰撞几何与物理参数。它可支持任务预演、场景变体和训练;是否降低策略 sim-to-real 差距,仍需单独检验。</p></div></div><p>并非每次寻物都需要完整网格:Memory Over Maps 用带位姿 RGB-D 关键帧按需定位,3D-Mem 与任务相关场景图也探索了不同记忆和表示方式。我们主张混合路线:保留视觉证据,细化任务相关几何,在有价值的地方构建可编辑仿真资产。下一步的关键问题是:什么时候证据已经足够支持行动,什么时候 agent 应重新观察并更新地图?</p><p>近期重点是提升重建效率与精度、形成可复用的仿真就绪场景生成流程,以及进一步与虚实融合智能体集成,让重建智能体的建模与修正循环连接到下游智能体的导航、记忆和交互需求。</p><p class="inline-sources"><a href="https://arxiv.org/abs/2603.20530" target="_blank" rel="noopener">Memory Over Maps</a> · <a href="https://arxiv.org/abs/2411.17735" target="_blank" rel="noopener">3D-Mem</a> · <a href="https://arxiv.org/abs/2404.13696" target="_blank" rel="noopener">Clio</a> · <a href="https://arxiv.org/abs/2404.06609" target="_blank" rel="noopener">GOAT-Bench</a></p></div></section>
|
| 25 |
+
<section id="limitations"><p class="section-tag">06 / LIMITATIONS</p><h2>边界本身也是结果的一部分</h2><ul class="limits-list"><li>一个合成场景、每条路径一次工程运行,不能建立一般优越性或统计显著性。</li><li>四条路径是完整系统,而非严格的单变量消融;M2 与 M3 的差异不能只归因于 IMU。</li><li>M4 使用 GT 相机位姿,是诊断路线,不是可部署基线,也不是理论上界。</li><li>M1 模型空间指标依赖 GT-assisted Sim(3),不能与原生米制恢复混为一谈。</li><li>100 视角外观与深度集合包含建模 RGB 输入,不是 held-out novel-view benchmark。</li><li>外观指标混合了几何、材质、照明与渲染误差;M4 revision 4 尚未完成完整独立视觉复审。</li><li>前台 demo 展示基于地图的仿真执行,不是 M1–M4 的受控导航对比。路线预先设定,定位使用仿真器位姿;具体范围见演示条件。</li><li>多模态空间记忆、长期地图维护与策略 sim-to-real 差距的降低是研究目标,不是这段四机器人视频已量化的结果。本页也没有 Office Café 拐角的同视角 GT 定量测量。</li><li>历史下游文档对同一 M4 Blend 哈希使用了不同的深度前端描述。本页冻结表格与资产保持不变;将旧任务收益归因于 DA3 之前,需要核对上游方法命名,详见来源说明。</li></ul><p>所有表格都由冻结资产生成;公开 manifest 提供模型哈希、配准、固定视角与固定随机评测索引。</p><div class="asset-downloads"><p><strong>M1</strong> <a href="models/M1/scene.blend" download>scene.blend ↓</a> · <a href="models/M1/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M1/manifest.json">manifest ↗</a></p><p><strong>M2</strong> <a href="models/M2/scene.blend" download>scene.blend ↓</a> · <a href="models/M2/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M2/manifest.json">manifest ↗</a></p><p><strong>M3</strong> <a href="models/M3/scene.blend" download>scene.blend ↓</a> · <a href="models/M3/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M3/manifest.json">manifest ↗</a></p><p><strong>M4</strong> <a href="models/M4/scene.blend" download>scene.blend ↓</a> · <a href="models/M4/scene.glb" download>scene.glb ↓</a> · <a href="evidence/M4/manifest.json">manifest ↗</a></p></div><p class="evidence-links"><a href="data/tables_1_7.json">Tables JSON</a> · <a href="data/scene_comparison.json">Scene manifest</a> · <a href="data/fixed_views.json">Fixed views</a> · <a href="evidence/publication_manifest.json">Publication manifest</a> · <a href="evidence/SHA256SUMS">SHA256</a></p><p><a href="evidence/provenance-note.md">版本与资产来源说明 ↗</a></p></section>
|
| 26 |
+
<section id="citation"><p class="section-tag">07 / CITATION</p><h2>引用本文</h2><p>如果本研究的受控实验、冻结资产或评测协议对你的工作有帮助,请引用下面的交互式研究文章。</p><pre class="citation-block"><code>@misc{awsm_2026,
|
| 27 |
+
title = {{AWSM}: Agentic World Simulation and Mapping},
|
| 28 |
+
author = {{Phygital AI}},
|
| 29 |
+
year = {2026},
|
| 30 |
+
howpublished = {Interactive research article},
|
| 31 |
+
url = {https://phygital-ai.github.io/agentic-world-simulation-and-mapping/},
|
| 32 |
+
note = {Reconstruction benchmarks, editable scene assets, and map-based embodied demonstration}
|
| 33 |
+
}</code></pre><a class="citation-download" href="data/awsm.bib" download="awsm.bib">下载 BibTeX 引用 <span aria-hidden="true">↓</span></a></section>
|
| 34 |
+
<section id="references"><p class="section-tag">08 / REFERENCES</p><h2>参考文献</h2><ol class="references-list"><li><a href="https://kevinxu02.github.io/real2sim-indoor-site/" target="_blank" rel="noopener">AHa-3D: Agentic Tool Use for Real2Sim with GPT-6 Astra.</a></li><li><a href="https://arxiv.org/abs/2508.10934" target="_blank" rel="noopener">ViPE: Video Pose Engine for camera motion and near-metric geometry.</a></li><li><a href="https://arxiv.org/abs/2007.11898" target="_blank" rel="noopener">Campos et al. ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual–Inertial, and Multimap SLAM. IEEE Transactions on Robotics, 2021.</a></li><li><a href="https://arxiv.org/abs/2511.10647" target="_blank" rel="noopener">Depth Anything 3: Recovering the Visual Space from Any Views.</a></li><li><a href="https://doi.org/10.1109/TIP.2003.819861" target="_blank" rel="noopener">Wang et al. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE Transactions on Image Processing, 2004.</a></li><li><a href="https://arxiv.org/abs/1801.03924" target="_blank" rel="noopener">Zhang et al. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. CVPR, 2018.</a></li><li><a href="https://www.blender.org/" target="_blank" rel="noopener">Blender Foundation. Blender: Free and Open Source 3D Creation Suite.</a></li><li><a href="https://arxiv.org/abs/1708.03852" target="_blank" rel="noopener">Qin et al. VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator. TRO, 2018.</a></li><li><a href="https://arxiv.org/abs/2509.13414" target="_blank" rel="noopener">Keetha et al. MapAnything: Universal Feed-Forward Metric 3D Reconstruction. 2025.</a></li><li><a href="https://arxiv.org/abs/2603.20530" target="_blank" rel="noopener">Zhou et al. Memory Over Maps: 3D Object Localization Without Reconstruction. 2026.</a></li><li><a href="https://arxiv.org/abs/2411.17735" target="_blank" rel="noopener">Yang et al. 3D-Mem: 3D Scene Memory for Embodied Exploration and Reasoning. 2024.</a></li><li><a href="https://arxiv.org/abs/2404.06609" target="_blank" rel="noopener">Khanna et al. GOAT-Bench: A Benchmark for Multi-Modal Lifelong Navigation. CVPR, 2024.</a></li><li><a href="https://arxiv.org/abs/2309.16650" target="_blank" rel="noopener">ConceptGraphs: Open-Vocabulary 3D Scene Graphs for Perception and Planning. ICRA, 2024.</a></li><li><a href="https://arxiv.org/abs/2404.13696" target="_blank" rel="noopener">Clio: Real-time Task-Driven Open-Set 3D Scene Graphs. RA-L, 2024.</a></li></ol></section><noscript>JavaScript is required for tables and interactive figures.</noscript></main></div><footer>Phygital AI · AWSM · frozen evidence, editable outputs · <a href="index.html">English</a></footer></body></html>
|