diff --git a/components/model/bench-table.vue b/components/model/bench-table.vue index 75e1c06..f8c9f28 100644 --- a/components/model/bench-table.vue +++ b/components/model/bench-table.vue @@ -6,7 +6,7 @@ import { degToRad } from 'three/src/math/MathUtils.js' const { camera, controls } = useTresContext() -const { scene } = await useGLTF('/models/table.glb') +const { scene } = await useGLTF('/models/urna2.glb') const object = calculateScaleToFit( scene, camera, diff --git a/components/model/bench.vue b/components/model/bench.vue index 6a600fa..50d58b6 100644 --- a/components/model/bench.vue +++ b/components/model/bench.vue @@ -6,14 +6,14 @@ import { degToRad } from 'three/src/math/MathUtils.js' const { camera, controls } = useTresContext() -const { scene } = await useGLTF('/models/bench.glb') +const { scene } = await useGLTF('/models/urna1.glb') const object = calculateScaleToFit( scene, camera, controls, 2, { - x: Math.sin(degToRad(30)), // Смещение по оси X + x: Math.sin(degToRad(0)), // Смещение по оси X y: 1, // Нет смещения по оси Y z: -Math.cos(degToRad(0)) // Смещение по оси Z } diff --git a/components/model/scene.vue b/components/model/scene.vue index 72107c4..38c1b1d 100644 --- a/components/model/scene.vue +++ b/components/model/scene.vue @@ -21,10 +21,10 @@ const controls = ref(); const controlsState = reactive({ minDistance: 0.5, - maxDistance: 5, + maxDistance: 5.0, enablePan: false, enableZoom: false, - // maxPolarAngle: Math.PI / 2 - 0.2 + //maxPolarAngle: Math.PI / 5 - 0.5 }); const changeDistance = (v = 1) => { diff --git a/public/models/urna1.glb b/public/models/urna1.glb new file mode 100644 index 0000000..044e696 Binary files /dev/null and b/public/models/urna1.glb differ diff --git a/public/models/urna2.glb b/public/models/urna2.glb new file mode 100644 index 0000000..51b4403 Binary files /dev/null and b/public/models/urna2.glb differ