接此;
https://blog.csdn.net/bcbobo21cn/article/details/111305160
根据资料gltf格式模型可以直接在cesium上加载;
网上搜索gltf,下载一个模型来看一下;
下来看一下是后缀名为skp,试一下加载;
代码如下;
<script>
var viewer = new Cesium.Viewer("cesiumContainer");
var entity = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(114.33,30.35),
model : {
uri : 'ff1.skp'
}
});
viewer.trackedEntity = entity;
</script>
没有;只有此地的底图;
然后下一个后缀为gltf的文件看下;
<script>
var viewer = new Cesium.Viewer("cesiumContainer");
var entity = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(114.33,30.35),
model : {
uri : './policecar/scene.gltf'
}
});
viewer.trackedEntity = entity;
</script>
看一下有了;直接定位过去,模型出来;