有工具将3dtiles转osgb吗?
for (var i = 0; i < osgbmodle.length; i++) {
var osgbpositonitem = osgbpositon[i];
var longitude = osgbpositonitem[0];
var latitude = osgbpositonitem[1];
var index = osgbpositonitem[2];
var lurl = vm.url + osgbmodle[i];
var tileset = new Cesium.Cesium3DTileset({
url: vm.url + osgbmodle[i]
});
console.log("aa"+vm.ul+osgbmodle[i]);
viewer.scene.primitives.add(tileset);
tileset.readyPromise.then(function (argument) {
var position = Cesium.Cartesian3.fromDegrees(longitude, latitude, index);
var mat = Cesium.Transforms.eastNorthUpToFixedFrame(position);
var rotationX = Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(heading)));
Cesium.Matrix4.multiply(mat, rotationX, mat);
tileset._root.transform = mat;
// tileset.maximumScreenSpaceError =maximumScreenSpaceError;
});
}
遍历加载osgb模型,只有最后一个模型加载成功。大神帮忙看看吧