使用产品:iserver 10c 810 操作系统:win10 x64
数据类型: 文件型
问题详细描述:加载gltf模型,无法获取模型的modelMatrix参数,从而无法修改模型的高度
问题重现步骤:
1.加载gltf模型var url02 = "./SampleData/gltf/man/jrx02.gltf";
var gltf02 = viewer.entities.add({
name: "gltf02",
position: new Cesium.Cartesian3.fromDegrees(-0.0195, 0.0155, 1462),
model: {
uri: url02
}
});
viewer.zoomTo(gltf02);
2.控制台gltf02.modelMatrix显示为undefined
3.获取倍率,修改模型高度
const scale = Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1, 1, 4), new Cesium.Matrix4)
gltf02.modelMatrix = Cesium.Matrix4.multiply(gltf02.modelMatrix, scale, gltf02.modelMatrix)