人生啊人生 1 周之前
父节点
当前提交
d077a0f99b
共有 1 个文件被更改,包括 19 次插入1 次删除
  1. 19 1
      src/components/ThreeWorldEventQingXiCheAndQv/ThreeWorldEventMainQingXiCheAndQv.vue

+ 19 - 1
src/components/ThreeWorldEventQingXiCheAndQv/ThreeWorldEventMainQingXiCheAndQv.vue

@@ -18,7 +18,7 @@ import { WindowVideoRemoveColorStore } from "@/components/WindowQingXiCheAndQv/s
 import { QingXiCheAndQvComClipPlaneMeshEvent } from "./js/QingXiCheAndQvComClipPlaneMeshEvent.js";
 import { QingXiCheAdnQvCarEventStep } from "./js/QingXiCheAdnQvCarEventStep.js";
 import { QingXiCheAndQvProcessEventStore } from "./event/store/QingXiCheAndQvProcessEventStore.js";
-
+import { CommonGuiDbListTwo } from "../../utils/common/CommonGuiDbListTwo.js";
 
 /**
  * 平时开发3d代码逻辑可以写这里
@@ -160,6 +160,24 @@ const callbackLoadEndEvent = (json) => {
     WindowEvent.find().ComStore["WindowCountdownStore"] = WindowCountdownStore;
     WindowEvent.find().ComStore["WindowVideoRemoveColorStore"] = WindowVideoRemoveColorStore;
 
+    // 初始化GUI会用到的对象
+    CommonGuiDbListTwo.find().objScene = CommonVal().obj.CommonValQingXiCheAndQv.objIframe.ChengGuangYuanJing.CommonVal.find().objScene;
+    CommonGuiDbListTwo.find().objEngine = CommonVal().obj.CommonValQingXiCheAndQv.objIframe.ChengGuangYuanJing.CommonVal.find().objEngine;
+    CommonGuiDbListTwo.find().BABYLON = CommonVal().obj.CommonValQingXiCheAndQv.objIframe.BABYLON;
+
+    // 配置自定义背景图
+    CommonGuiDbListTwo.find().bgImgConfig = {
+        "url" : new URL("../../utils/common/bg.webp", import.meta.url).href,
+        "width" : 409,
+        "height" : 304,
+    }
+
+    // console.log(
+    //     "三维场景初始化 ==========",
+    //     CommonGuiDbListTwo.find().bgImgConfig,
+    //     CommonVal().obj.CommonValQingXiCheAndQv.objIframe.ChengGuangYuanJing.CommonVal.find().objEngine
+    // );
+
     configMusicEvent();
     configVideoEvent();