人生啊人生 10 hónapja
szülő
commit
efbeb381f4
1 módosított fájl, 9 hozzáadás és 70 törlés
  1. 9 70
      src/components/student/CourseChapter3d.vue

+ 9 - 70
src/components/student/CourseChapter3d.vue

@@ -104,7 +104,7 @@ const callbackLoadEndEvent = (json : { 'roleChoiceOpenBool' : true }) => {
     if (json["roleChoiceOpenBool"] === true) {
         // ############################## 隐藏其他按钮界面等
         threeWorld().loadSuccess = false;
-        
+        initScene();
         return;
     }
 
@@ -138,78 +138,17 @@ const callbackCameraVisualAngleJsonToLookEvent = (json : any) => {
  * 3d加载完成优先切换到默认的视角
  */
 const initScene = () => {
-
-    // console.log(
-    //     "initScene = () => {",
-    //     threeWorld().obj.newIframe,
-    //     threeWorld().obj.newIframe.getCameraVisualAngleGetList()
-    // );
     
-    // @ts-ignore
-    threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("检测车");
-    // @ts-ignore
-    threeWorld().obj.newIframe.roleShow(false);
-
-    // 清空3d背景
-    // @ts-ignore
-    threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.clearColor = {
-        "r" : 0, "g" : 0, "b" : 0, "a" : 0
-    };
-
-    groundNoRemove();
-
-    typeEvent(props.config?.threeDimensionalConfig);
-
-    // 触发自动点击逻辑
-    // @ts-ignore
-    threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().screenClickNumEvent();
-
-}
-
-/**
- * 将所有设置为地面的,改为不设置为地面
- */
-const groundNoRemove = () => {
+    // // @ts-ignore
+    // threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("检测车");
+    // // @ts-ignore
+    // threeWorld().obj.newIframe.roleShow(false);
     
-    // @ts-ignore
-    for (const key in threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.ModelObjEdit.find().meshListIdToJson) {
-        
-        if (
-            // @ts-ignore
-            threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.ModelObjEdit.find().meshListIdToJson[key]['isGround'] == true
-        ) {
-            // 通过更新材质的参数,来更新
-            // @ts-ignore
-            threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.ModelObjEdit.find().objOneMeshListIdToJsonUpdate(
-                key,
-                {
-                    
-                    "isGround" : false,
-                }
-            );
-        }
-        
-    }
-
-    // @ts-ignore
-    for (let i = 0; i < threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.meshes.length; i++) {
-        // @ts-ignore
-        let objMesh = threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene.meshes[i];
-        // console.log(
-        //     "myIsGround",
-        //     objMesh["myIsGround"]
-        // );
-        // if (objMesh["myIsGround"] == true) {
-        //     delete objMesh["myIsGround"];
-        // }
-
-        delete objMesh["myIsGround"];
-    }
+    // typeEvent(props.config?.threeDimensionalConfig);
 
-    // @ts-ignore
-    threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.Role.find().isGroundList = {};
-    // @ts-ignore
-    threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.ModelObjEdit.find().myIsGroundConfigNum = 0;
+    // // 触发自动点击逻辑
+    // // @ts-ignore
+    // threeWorld().obj.newIframe.objIframe.ChengGuangYuanJing.CommonVal.find().screenClickNumEvent();
 
 }