我决定不从Babylonjs 基础来讲了 直接整合cesium与babylonjs可视化来讲
我整合一个类库 后续不断更新中
```javascript
npm i @haibalai/cesium-babylonjs
```
初始化cesium-babylonjs 类库, viewer 是 Cesium 的 viewer对象
```
import { BabylonMapManager } from "@haibalai/cesium-babylonjs";
BabylonMapManager.init(viewer);
```
添加贴地plane
```
import { BabylonMapManager } from "@haibalai/cesium-babylonjs";
const box = BABYLON.MeshBuilder.CreateBox("box", { size: 100 , sideOrientation: BABYLON.Mesh.DOUBLESIDE});
BabylonMapManager.addToMap(box,[113.87629508972168, 22.544824222364753, 100]);
let ground = BABYLON.Mesh.CreateGround("ground1", 2048,2048,500);
const material = new BABYLON.StandardMaterial("material");
Cesium 与 Babylon.js 可视化 添加贴地 - 小专栏
标签:BABYLON,babylonjs,BabylonMapManager,js,cesium,可视化,Cesium,Babylon From: https://www.cnblogs.com/haibalai/p/17217347.html