fanLocal.three.ts 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. import * as THREE from 'three';
  2. import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer.js';
  3. import { animateCamera, getTextCanvas, renderVideo, updateAxisCenter } from '/@/utils/threejs/util';
  4. import UseThree from '../../../../utils/threejs/useThree';
  5. import fcFan from './fcfanLocal.three';
  6. import fmFan from './fmfanLocal.three';
  7. import Smoke from '/@/views/vent/comment/threejs/Smoke';
  8. import gsap from 'gsap';
  9. import useEvent from '../../../../utils/threejs/useEvent';
  10. // import * as dat from 'dat.gui';
  11. // const gui = new dat.GUI();
  12. // gui.domElement.style = 'position:absolute;top:100px;left:10px;z-index:99999999999999';
  13. const modelName = 'jbfj-hd';
  14. // 模型对象、 文字对象
  15. let model: UseThree | undefined,
  16. group: THREE.Object3D | undefined,
  17. fcFanObj: fcFan | undefined,
  18. fmFanObj: fmFan | undefined,
  19. player1,
  20. fanType,
  21. topSmoke: Smoke | undefined,
  22. downSmoke: Smoke | undefined,
  23. topLife: number | undefined,
  24. downLife: number | undefined,
  25. playerStartClickTime1 = new Date().getTime();
  26. const { mouseDownFn, mousemoveFn, mouseUpFn } = useEvent();
  27. // 打灯光
  28. const addLight = () => {
  29. const directionalLight = new THREE.DirectionalLight(0xffffff, 1.2);
  30. directionalLight.position.set(-564, 602, -261);
  31. group?.add(directionalLight);
  32. // directionalLight.target = group;
  33. // const spotLight = new THREE.SpotLight();
  34. // spotLight.angle = Math.PI / 16;
  35. // spotLight.penumbra = 0;
  36. // spotLight.castShadow = true;
  37. // spotLight.position.set(0, 463, 687);
  38. // scene.add(spotLight);
  39. // spotLight.shadow.camera.near = 0.5; // default
  40. // spotLight.shadow.camera.far = 1000; // default
  41. // spotLight.shadow.focus = 1;
  42. // spotLight.shadow.bias = -0.000002;
  43. // spotLight.target = group;
  44. // const pointLight6 = new THREE.PointLight(0xffffff, 1, 500);
  45. // pointLight6.position.set(-131, 64, -1);
  46. // pointLight6.shadow.bias = 0.05;
  47. // group?.add(pointLight6);
  48. // gui.add(directionalLight.position, 'x', -1000, 1000);
  49. // gui.add(directionalLight.position, 'y', -1000, 1000);
  50. // gui.add(directionalLight.position, 'z', -1000, 1000);
  51. // gui.add(pointLight6.position, 'x', -500, 500);
  52. // gui.add(pointLight6.position, 'y', -500, 500);
  53. // gui.add(pointLight6.position, 'z', -500, 500);
  54. // gui.add(pointLight6, 'distance', 0, 500);
  55. };
  56. // 重置摄像头
  57. const resetCamera = () => {
  58. model.camera.position.set(0, -1000, 100);
  59. model.camera.far = 1000;
  60. model.orbitControls?.update();
  61. model.camera.updateProjectionMatrix();
  62. };
  63. // 设置模型位置
  64. const setModalPosition = () => {
  65. if (!group) return;
  66. group.position.set(0, 10, -50);
  67. group.rotation.y = Math.PI / 2;
  68. };
  69. const setControls = () => {
  70. model.orbitControls.panSpeed = 0.5;
  71. model.orbitControls.rotateSpeed = 0.5;
  72. model.orbitControls.maxPolarAngle = Math.PI / 2.4;
  73. model.orbitControls.minPolarAngle = Math.PI / 3;
  74. };
  75. // 切换局部通风机类型
  76. export const setModelType = (type) => {
  77. fanType = type;
  78. return new Promise((resolve) => {
  79. // 显示双道风窗
  80. let childGroup;
  81. if (fanType === 'fm' && fcFanObj && fcFanObj.group) {
  82. if (group.getObjectByName('jbfj-fc')) {
  83. group.remove(fcFanObj.group);
  84. }
  85. childGroup = fmFanObj.group;
  86. (group?.getObjectByName('text5')).visible = false;
  87. (group?.getObjectByName('text4')).visible = true;
  88. } else if (fanType === 'fc' && fmFanObj && fmFanObj.group) {
  89. // 显示单道风窗
  90. if (group.getObjectByName('jbfj-fm')) {
  91. group.remove(fmFanObj.group);
  92. }
  93. childGroup = fcFanObj.group;
  94. (group?.getObjectByName('text5')).visible = true;
  95. (group?.getObjectByName('text4')).visible = false;
  96. }
  97. setTimeout(async () => {
  98. if (childGroup) group?.add(childGroup);
  99. const oldCameraPosition = { x: 615, y: 275, z: 744 };
  100. await animateCamera(oldCameraPosition, { x: 0, y: 0, z: 0 }, { x: 0.08, y: 21.73, z: 78.45 }, { x: 0.13, y: -0.82, z: 0.236 }, model, 0.8);
  101. resolve(null);
  102. }, 300);
  103. });
  104. };
  105. /* 添加监控数据 */
  106. export const addText = (selectData) => {
  107. if (!group) {
  108. return;
  109. }
  110. const textArr = [
  111. {
  112. text: `煤矿巷道远程局部风机系统`,
  113. font: 'normal 30px Arial',
  114. color: '#009900',
  115. strokeStyle: '#002200',
  116. x: 50,
  117. y: 110,
  118. },
  119. {
  120. text: `供风距离(m):`,
  121. font: 'normal 30px Arial',
  122. color: '#009900',
  123. strokeStyle: '#002200',
  124. x: 0,
  125. y: 165,
  126. },
  127. {
  128. text: `${selectData.flength ? selectData.flength : '-'}`,
  129. font: 'normal 30px Arial',
  130. color: '#009900',
  131. strokeStyle: '#002200',
  132. x: 290,
  133. y: 165,
  134. },
  135. {
  136. text: `风筒直径(m): `,
  137. font: 'normal 30px Arial',
  138. color: '#009900',
  139. strokeStyle: '#002200',
  140. x: 0,
  141. y: 220,
  142. },
  143. {
  144. text: ` ${selectData.fsectarea ? selectData.fsectarea : '-'}`,
  145. font: 'normal 30px Arial',
  146. color: '#009900',
  147. strokeStyle: '#002200',
  148. x: 280,
  149. y: 220,
  150. },
  151. {
  152. text: `故障诊断:`,
  153. font: 'normal 30px Arial',
  154. color: '#009900',
  155. strokeStyle: '#002200',
  156. x: 0,
  157. y: 275,
  158. },
  159. {
  160. text: `${selectData.warnLevel_str ? selectData.warnLevel_str : '-'}`,
  161. font: 'normal 30px Arial',
  162. color: '#009900',
  163. strokeStyle: '#002200',
  164. x: 280,
  165. y: 275,
  166. },
  167. {
  168. text: `国能神东煤炭集团监制`,
  169. font: 'normal 28px Arial',
  170. color: '#009900',
  171. strokeStyle: '#002200',
  172. x: 80, //20 煤炭科学技术研究院有限公司研制
  173. y: 325,
  174. },
  175. ];
  176. getTextCanvas(526, 346, textArr, '').then((canvas: HTMLCanvasElement) => {
  177. const textMap = new THREE.CanvasTexture(canvas); // 关键一步
  178. const textMaterial = new THREE.MeshBasicMaterial({
  179. // 关于材质并未讲解 实操即可熟悉 这里是漫反射类似纸张的材质,对应的就有高光类似金属的材质.
  180. map: textMap, // 设置纹理贴图
  181. transparent: true,
  182. side: THREE.FrontSide, // 这里是双面渲染的意思
  183. });
  184. textMaterial.blending = THREE.CustomBlending;
  185. const monitorPlane = group.getObjectByName('monitorText');
  186. if (monitorPlane) {
  187. monitorPlane.material = textMaterial;
  188. } else {
  189. const planeGeometry = new THREE.PlaneGeometry(526, 346); // 平面3维几何体PlaneGeometry
  190. const planeMesh = new THREE.Mesh(planeGeometry, textMaterial);
  191. planeMesh.name = 'monitorText';
  192. planeMesh.scale.set(0.0135, 0.0135, 0.0135);
  193. planeMesh.rotation.y = -Math.PI / 2;
  194. planeMesh.position.set(-84.79, 0.82, 17.01);
  195. group.add(planeMesh);
  196. }
  197. });
  198. };
  199. // // css3D文字
  200. export const addCssText = () => {
  201. if (!group) return;
  202. if (!group.getObjectByName('text1')) {
  203. const element = document.getElementById('inputBox') as HTMLElement;
  204. if (element) {
  205. const fanLocalCSS3D = new CSS3DObject(element);
  206. fanLocalCSS3D.name = 'text1';
  207. fanLocalCSS3D.scale.set(0.04, 0.04, 0.04);
  208. fanLocalCSS3D.rotation.y = -Math.PI / 2;
  209. fanLocalCSS3D.position.set(-85.68, 5.97, -17.74);
  210. group.add(fanLocalCSS3D);
  211. }
  212. }
  213. if (!group.getObjectByName('text2')) {
  214. const element = document.getElementById('outBox') as HTMLElement;
  215. if (element) {
  216. const fanLocalCSS3D = new CSS3DObject(element);
  217. fanLocalCSS3D.name = 'text2';
  218. fanLocalCSS3D.scale.set(0.1, 0.1, 0.1);
  219. fanLocalCSS3D.rotation.y = -Math.PI / 2;
  220. fanLocalCSS3D.position.set(74.63, 13.54, 3.84);
  221. group.add(fanLocalCSS3D);
  222. }
  223. }
  224. if (!group.getObjectByName('text3')) {
  225. const element = document.getElementById('returnBox') as HTMLElement;
  226. if (element) {
  227. const fanLocalCSS3D = new CSS3DObject(element);
  228. fanLocalCSS3D.name = 'text3';
  229. fanLocalCSS3D.scale.set(0.1, 0.1, 0.1);
  230. fanLocalCSS3D.rotation.y = -Math.PI / 2;
  231. fanLocalCSS3D.position.set(35.28, 10.05, -37.23);
  232. group.add(fanLocalCSS3D);
  233. }
  234. }
  235. if (!group.getObjectByName('text4')) {
  236. const element = document.getElementById('gateBox') as HTMLElement;
  237. if (element) {
  238. // element.innerHTML = '';
  239. const fanLocalCSS3D = new CSS3DObject(element);
  240. fanLocalCSS3D.name = 'text4';
  241. fanLocalCSS3D.scale.set(0.04, 0.04, 0.04);
  242. fanLocalCSS3D.rotation.y = -Math.PI / 2;
  243. fanLocalCSS3D.position.set(-73.13, 8.44, -23.52);
  244. group.add(fanLocalCSS3D);
  245. }
  246. }
  247. if (!group.getObjectByName('text5')) {
  248. const element = document.getElementById('windownBox') as HTMLElement;
  249. if (element) {
  250. // element.innerHTML = '';
  251. const fanLocalCSS3D = new CSS3DObject(element);
  252. fanLocalCSS3D.name = 'text5';
  253. fanLocalCSS3D.scale.set(0.07, 0.07, 0.07);
  254. fanLocalCSS3D.rotation.y = -Math.PI / 2;
  255. fanLocalCSS3D.position.set(-28.44, 9.78, -40.42);
  256. group.add(fanLocalCSS3D);
  257. }
  258. }
  259. };
  260. // export const playSmoke = (controlType, deviceType, frequency, state) => {
  261. // if (frequency) {
  262. // setSmokeFrequency(deviceType, frequency);
  263. // }
  264. // if (controlType === 'startSmoke') {
  265. // runFly(deviceType, state);
  266. // }
  267. // };
  268. export const playSmoke = (selectData) => {
  269. console.log('selectData[Fan1fHz]------------》', selectData['Fan1fHz'], Number(selectData['Fan1fHz']));
  270. if (selectData['Fan1StartStatus'] == 1) {
  271. // 主风机打开
  272. // setSmokeFrequency('top', Number(selectData['Fan1fHz']) || 40);
  273. setSmokeFrequency('top', 40);
  274. runFly('top', 'open');
  275. } else {
  276. // 备风机关闭
  277. runFly('top', 'close');
  278. }
  279. if (selectData['Fan2StartStatus'] == 1) {
  280. // 备风机打开
  281. // setSmokeFrequency('down', Number(selectData['Fan2fHz']) || 40);
  282. setSmokeFrequency('down', 40);
  283. runFly('down', 'open');
  284. } else {
  285. // 备风机关闭
  286. runFly('down', 'close');
  287. }
  288. // if (frequency) {
  289. // setSmokeFrequency(deviceType, frequency);
  290. // }
  291. // if (controlType === 'startSmoke') {
  292. // runFly(deviceType, state);
  293. // }
  294. };
  295. const initFly = async () => {
  296. const topCurve = [
  297. {
  298. path0: new THREE.Vector3(-89.84, 2.359, 4.91),
  299. path1: new THREE.Vector3(-85.678, 2.359, 3.61),
  300. isSpread: true,
  301. spreadDirection: -1, //
  302. },
  303. {
  304. path0: new THREE.Vector3(-85.678, 2.352, 3.66),
  305. path1: new THREE.Vector3(-85.636, 2.353, -3.829),
  306. isSpread: false,
  307. spreadDirection: 0,
  308. },
  309. {
  310. path0: new THREE.Vector3(-85.636, 2.353, -3.829),
  311. path1: new THREE.Vector3(-85.636, 1.026, -5.881),
  312. isSpread: false,
  313. spreadDirection: 0,
  314. },
  315. {
  316. path0: new THREE.Vector3(-85.636, 1.026, -5.881),
  317. path1: new THREE.Vector3(-85.618, 0.887, -12.862),
  318. isSpread: false,
  319. spreadDirection: 0,
  320. },
  321. {
  322. path0: new THREE.Vector3(-85.618, 0.827, -12.962),
  323. path1: new THREE.Vector3(80.404, 0.827, -12.962),
  324. isSpread: false,
  325. spreadDirection: 0,
  326. },
  327. {
  328. path0: new THREE.Vector3(80.404, 0.827, -12.962),
  329. path1: new THREE.Vector3(93.164, 0.85, -12.962),
  330. isSpread: true,
  331. spreadDirection: 1, // 1是由小变大,-1是由大变小
  332. },
  333. ];
  334. const downCurve = [
  335. {
  336. path0: new THREE.Vector3(-94.84, -0.388, 3.61),
  337. path1: new THREE.Vector3(-85.678, -0.393, 3.61),
  338. isSpread: true,
  339. spreadDirection: -1, //
  340. },
  341. {
  342. path0: new THREE.Vector3(-85.678, -0.393, 3.275),
  343. path1: new THREE.Vector3(-85.636, -0.392, -3.829),
  344. isSpread: false,
  345. spreadDirection: 0,
  346. },
  347. {
  348. path0: new THREE.Vector3(-85.636, -0.392, -3.829),
  349. path1: new THREE.Vector3(-85.636, 0.926, -5.881),
  350. isSpread: false,
  351. spreadDirection: 0,
  352. },
  353. {
  354. path0: new THREE.Vector3(-85.636, 1.026, -5.881),
  355. path1: new THREE.Vector3(-85.618, 0.887, -12.862),
  356. isSpread: false,
  357. spreadDirection: 0,
  358. },
  359. {
  360. path0: new THREE.Vector3(-85.618, 0.887, -12.962),
  361. path1: new THREE.Vector3(80.404, 0.887, -12.962),
  362. isSpread: false,
  363. spreadDirection: 0,
  364. },
  365. {
  366. path0: new THREE.Vector3(80.404, 0.887, -12.962),
  367. path1: new THREE.Vector3(93.164, 0.91, -12.962),
  368. isSpread: true,
  369. spreadDirection: 1, // 1是由小变大,-1是由大变小
  370. },
  371. ];
  372. if (!topSmoke) {
  373. topSmoke = new Smoke('/model/img/texture-smoke.png', '#ffffff', 0, 0.8, 0.5, 400);
  374. topSmoke.setPath(topCurve);
  375. await topSmoke.setPoints();
  376. group?.add(topSmoke.points);
  377. }
  378. if (!downSmoke) {
  379. downSmoke = new Smoke('/model/img/texture-smoke.png', '#ffffff', 0, 0.8, 0.5, 400);
  380. downSmoke.setPath(downCurve);
  381. await downSmoke.setPoints();
  382. group?.add(downSmoke.points);
  383. }
  384. };
  385. const runFly = (deviceType, state) => {
  386. if (state === 'open') {
  387. if (deviceType === 'top') {
  388. if (downSmoke && downSmoke.frameId) {
  389. downSmoke.stopSmoke();
  390. }
  391. if (topSmoke && !topSmoke.frameId) {
  392. topSmoke.startSmoke();
  393. }
  394. } else {
  395. if (topSmoke && topSmoke.frameId) {
  396. topSmoke.stopSmoke();
  397. }
  398. if (downSmoke && !downSmoke.frameId) {
  399. downSmoke.startSmoke();
  400. }
  401. }
  402. } else {
  403. if (deviceType === 'top') {
  404. if (topSmoke && topSmoke.frameId) {
  405. topSmoke.stopSmoke();
  406. }
  407. } else {
  408. if (downSmoke && downSmoke.frameId) {
  409. downSmoke.stopSmoke();
  410. }
  411. }
  412. }
  413. };
  414. // 调频 30-50 (life 300 - 800) , 25 = (800 - 300)/ 20
  415. const setSmokeFrequency = (deviceType, frequency) => {
  416. const life = (frequency - 30) * 25;
  417. let duration = 0;
  418. let smoke;
  419. if (deviceType === 'top') {
  420. if (topLife == life) {
  421. return;
  422. }
  423. topLife = life;
  424. smoke = topSmoke;
  425. duration = (Math.abs(life - smoke.life) / 500) * 25;
  426. } else {
  427. if (downLife == life) {
  428. return;
  429. }
  430. downLife = life;
  431. smoke = downSmoke;
  432. duration = (Math.abs(life - smoke.life) / 500) * 25;
  433. }
  434. if (smoke) {
  435. gsap.to(smoke, {
  436. life: life,
  437. duration: duration,
  438. ease: 'easeInCubic',
  439. overwrite: true,
  440. });
  441. }
  442. };
  443. const clearFly = () => {
  444. if (topSmoke) topSmoke.clearSmoke();
  445. if (downSmoke) downSmoke.clearSmoke();
  446. };
  447. // 初始化事件
  448. const startAnimation = () => {
  449. // 定义鼠标点击事件
  450. model.canvasContainer?.addEventListener('mousedown', mouseEvent.bind(null));
  451. model.canvasContainer?.addEventListener('pointerup', mouseUp);
  452. };
  453. // 鼠标点击、松开事件
  454. const mouseEvent = (event) => {
  455. if (event.button == 0) {
  456. model?.canvasContainer?.addEventListener('mousemove', mousemove);
  457. mouseDownFn(<UseThree>model, <THREE.Object3D>group, event, (intersects) => {
  458. intersects.find((intersect) => {
  459. const mesh = intersect.object;
  460. if (mesh.name === 'player1') {
  461. if (new Date().getTime() - playerStartClickTime1 < 400) {
  462. // 双击,视频放大
  463. if (player1) {
  464. player1.requestFullscreen();
  465. }
  466. }
  467. playerStartClickTime1 = new Date().getTime();
  468. return true;
  469. }
  470. });
  471. });
  472. console.log('摄像头控制信息', model?.orbitControls, model?.camera);
  473. }
  474. };
  475. const mouseUp = () => {
  476. if (!model) return;
  477. mouseUpFn(model);
  478. model.canvasContainer?.removeEventListener('mousemove', mousemove);
  479. };
  480. const mousemove = () => {
  481. mousemoveFn();
  482. };
  483. export const mountedThree = (playerVal1) => {
  484. player1 = playerVal1;
  485. return new Promise((resolve) => {
  486. // model = new UseThree('#fanLocal3D', '#fanLocal3DCSS');
  487. model = new UseThree('#fanLocal3D');
  488. model.setEnvMap('test1');
  489. model.renderer.toneMappingExposure = 1.0;
  490. if (model.renderer) {
  491. model.renderer.sortObjects = true;
  492. }
  493. resetCamera();
  494. model.setGLTFModel([modelName]).then(async (gltf) => {
  495. group = <THREE.Object3D>gltf[0];
  496. const Fengtongbu01 = group?.getObjectByName('Cylinder1054') as THREE.Mesh;
  497. if (Fengtongbu01) {
  498. const textMaterial = new THREE.MeshBasicMaterial({
  499. color: '#000',
  500. transparent: true,
  501. opacity: 0.3,
  502. side: THREE.DoubleSide, // 这里是双面渲染的意思
  503. });
  504. Fengtongbu01.material = textMaterial;
  505. Fengtongbu01.renderOrder = 300;
  506. }
  507. model?.scene?.add(group);
  508. setModalPosition();
  509. setControls();
  510. await initFly();
  511. model?.animate();
  512. addLight(model?.scene);
  513. // fcFanObj = new fcFan(model);
  514. // await fcFanObj.mountedThree();
  515. // fmFanObj = new fmFan(model);
  516. // await fmFanObj.mountedThree();
  517. const videoPlayer1 = document.getElementById('jb-player1')?.getElementsByClassName('vjs-tech')[0];
  518. if (videoPlayer1) {
  519. const mesh = renderVideo(group, videoPlayer1, 'player1');
  520. if (mesh) {
  521. mesh.scale.set(0.222, 0.19, 0.2);
  522. mesh.position.set(-84.87, 0.298, 24.76);
  523. mesh.rotation.y = -Math.PI / 2;
  524. group.add(mesh);
  525. }
  526. } else {
  527. const textArr = [
  528. {
  529. text: `无信号输入`,
  530. font: 'normal 40px Arial',
  531. color: '#009900',
  532. strokeStyle: '#002200',
  533. x: 170,
  534. y: 40,
  535. },
  536. ];
  537. getTextCanvas(560, 346, textArr, '').then((canvas: HTMLCanvasElement) => {
  538. const textMap = new THREE.CanvasTexture(canvas); // 关键一步
  539. const textMaterial = new THREE.MeshBasicMaterial({
  540. map: textMap, // 设置纹理贴图
  541. transparent: true,
  542. side: THREE.DoubleSide, // 这里是双面渲染的意思
  543. });
  544. textMaterial.blending = THREE.CustomBlending;
  545. const monitorPlane = group?.getObjectByName('noPlayer');
  546. if (monitorPlane) {
  547. monitorPlane.material = textMaterial;
  548. } else {
  549. const planeGeometry = new THREE.PlaneGeometry(100, 100); // 平面3维几何体PlaneGeometry
  550. const planeMesh = new THREE.Mesh(planeGeometry, textMaterial);
  551. if (!videoPlayer1) {
  552. planeMesh.name = 'noPlayer';
  553. planeMesh.scale.set(0.07, 0.05, 0.07);
  554. planeMesh.position.set(-84.82, -1.53, 24.94);
  555. planeMesh.rotation.y = -Math.PI / 2;
  556. group?.add(planeMesh.clone());
  557. }
  558. }
  559. });
  560. }
  561. startAnimation();
  562. resolve(model);
  563. });
  564. });
  565. };
  566. export const destroy = () => {
  567. if (model) {
  568. model.isRender = false;
  569. console.log('场景销毁后信息----------->', model.renderer?.info);
  570. clearFly();
  571. topSmoke = undefined;
  572. downSmoke = undefined;
  573. if (fcFanObj) fcFanObj.destroy();
  574. if (fmFanObj) fmFanObj.destroy();
  575. group = undefined;
  576. model.destroy();
  577. model = undefined;
  578. }
  579. };