您好,请问怎么利用webgl将本地的S3M模型,通过S3MInstanceCollection添加到场景中?
有搜到如下,将本地s3m模型添加到场景中,虽然没报错,但是不显示,请问还能怎样加载本地s3m模型?
//加载s3m参考
var urls = [ //加载模型信息
'../../.././src/index/programme/SampleData/car/qiche1.s3m'
];
var labelAdded = false;
var Factor = urls.length;
var keymap = {};
for (var i = 0; i < Factor; i++) {
var url = urls[i];
keymap[url] = [];
}
var layer = new window.Cesium.DynamicLayer3D(scene.context, urls);
scene.primitives.add(layer);
window.viewer.zoomTo(layer);