From f7f53b2d2efe9cb0fda406b4bf29ef2d6e71e39b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@gmail.com>
Date: 星期一, 05 一月 2026 14:31:49 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/insight/agv/AgvMain.jsx | 4 ----
zy-acs-flow/src/map/insight/agv/AgvThree.js | 43 +++++++++++--------------------------------
2 files changed, 11 insertions(+), 36 deletions(-)
diff --git a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
index 5b8e293..a550e13 100644
--- a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
+++ b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
@@ -77,10 +77,6 @@
loaderMesh.scale.set(scaleVal, scaleVal, scaleVal);
forkMesh.scale.set(scaleVal, scaleVal, scaleVal);
- bodyMesh.position.set(55, 0, 0);;
- loaderMesh.position.set(55, 150, 0);;
- forkMesh.position.set(55, 165, 0);;
-
const agvGroup = new THREE.Group();
agvGroup.add(bodyMesh);
agvGroup.add(loaderMesh);
diff --git a/zy-acs-flow/src/map/insight/agv/AgvThree.js b/zy-acs-flow/src/map/insight/agv/AgvThree.js
index 5f5aad9..bf3211d 100644
--- a/zy-acs-flow/src/map/insight/agv/AgvThree.js
+++ b/zy-acs-flow/src/map/insight/agv/AgvThree.js
@@ -103,46 +103,25 @@
initLight = () => {
const hemiLight = new THREE.HemisphereLight(0xffffff, 0xffffff, 6);
- hemiLight.color.setHSL(0.6, 1, 0.6);
- hemiLight.groundColor.setHSL(0.095, 1, 0.75);
+ hemiLight.color.setHSL(0.6, 1, 0.75);
+ hemiLight.groundColor.setHSL(0.095, 1, 0.85);
hemiLight.position.set(0, 1500, 0);
this.scene.add(hemiLight);
- const dirLight = new THREE.DirectionalLight(0xffffff, 2.5);
- dirLight.color.setHSL(0.1, 1, 0.95);
- dirLight.position.set(-10, 10, 10);
- dirLight.position.multiplyScalar(30);
+ const dirLight = new THREE.DirectionalLight(0xffffff, 4);
+ dirLight.color.setHSL(0.1, 1, 1.0);
+ dirLight.position.set(-300, 300, 300);
this.scene.add(dirLight);
- const dirLight1 = new THREE.DirectionalLight(0xffffff, 2.5);
- dirLight1.color.setHSL(0.1, 1, 0.95);
- dirLight1.position.set(10, 10, -10);
+ const dirLight1 = new THREE.DirectionalLight(0xffffff, 4);
+ dirLight1.color.setHSL(0.1, 1, 1.0);
+ dirLight1.position.set(300, 300, -300);
dirLight1.position.multiplyScalar(30);
this.scene.add(dirLight1);
+
+ const ambient = new THREE.AmbientLight(0xffffff, 1.0);
+ // this.scene.add(ambient);
}
-
- // initLight = () => {
- // const hemiLight = new THREE.HemisphereLight(0xffffff, 0xffffff, 8);
- // hemiLight.color.setHSL(0.6, 1, 0.75);
- // hemiLight.groundColor.setHSL(0.095, 1, 0.85);
- // hemiLight.position.set(0, 1500, 0);
- // this.scene.add(hemiLight);
-
- // const dirLight = new THREE.DirectionalLight(0xffffff, 4);
- // dirLight.color.setHSL(0.1, 1, 1.0);
- // dirLight.position.set(-300, 300, 300);
- // this.scene.add(dirLight);
-
- // const dirLight1 = new THREE.DirectionalLight(0xffffff, 4);
- // dirLight1.color.setHSL(0.1, 1, 1.0);
- // dirLight1.position.set(300, 300, -300);
- // dirLight1.position.multiplyScalar(30);
- // this.scene.add(dirLight1);
-
- // const ambient = new THREE.AmbientLight(0xffffff, 1.0);
- // // this.scene.add(ambient);
- // }
-
generateMesh = (fn) => {
const loader = new FBXLoader();
--
Gitblit v1.9.1