arcgis javascript 中 SceneLayer 的render属性支持外部导入3d模型吗
const symbol = {
type: "point-3d", // autocasts as new PointSymbol3D()
symbolLayers: [{
type: "object", // autocasts as new ObjectSymbol3DLayer()
width: 2, // diameter of the object from east to west in meters
height: 30, // height of the object in meters
depth: 5, // diameter of the object from north to south in meters
resource: {
//primitive: "cylinder"
href: "./ludeng.glb"
},
material: {
color: "yellow"
}
}]
};
// Add the renderer to sceneLayer
sceneLayer.renderer = {
type: "simple", // autocasts as new SimpleRenderer()
symbol: symbol
};
2 个回复
许丹石
赞同来自:
注意自己的web容器是否添加了该glb模型的MIME类型
张佳期
赞同来自:
https://blog.csdn.net/lf5566fl ... 10634
要回复问题请先登录或注册
发起人
相关问题
问题状态