vision modify..

This commit is contained in:
2026-08-04 08:56:47 +09:00
parent 97d6a0219f
commit 951d07cf31
10 changed files with 108 additions and 24 deletions
+8 -3
View File
@@ -153,6 +153,11 @@
align-items:center;
gap:6px;
}
#splatToggle {
display:inline-flex;
align-items:center;
justify-content:center;
}
#cameraPresetSelect {
min-width:86px;
padding:0 24px 0 9px;
@@ -292,8 +297,8 @@
<script type="importmap">
{
"imports": {
"three": "/vendor/three/build/three.module.js",
"three/addons/": "/vendor/three/examples/jsm/",
"three": "../vendor/three/build/three.module.js",
"three/addons/": "../vendor/three/examples/jsm/",
"@mkkellogg/gaussian-splats-3d": "./vendor/gaussian-splats-3d.module.js"
}
}
@@ -977,7 +982,7 @@ async function loadMkMiniModel(sdfPose = { x:0, y:0, z:0, roll:0, pitch:0, yaw:0
const initialBounds = new THREE.Box3().setFromObject(model);
const initialSize = initialBounds.getSize(new THREE.Vector3());
const largestDimension = Math.max(initialSize.x, initialSize.y, initialSize.z, 0.001);
model.scale.setScalar(0.62 / largestDimension);
model.scale.setScalar(0.66 / largestDimension);
model.updateMatrixWorld(true);
const normalizedBounds = new THREE.Box3().setFromObject(model);