vision modify..
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user