Hey all,
I'm now using ArcGIS to build a 3D map, I downloaded the gltl model from the web and injected it inside the project.
Then I want to use this model as the symbol, I checked the API that in Mesh has the method called 'createFromGLTF', then I tried to load the gltl model into the mesh and then draw it on the map, but it doesn't work.
Can you help me to check what's the problem? or how to use the mesh component? The document is not too clear about that.
The model I used is here:
Avro Lancaster - Download Free 3D model by helijah (@helijah) - Sketchfab
thanks..
Mesh.createFromGLTF(
new Point({
x: 58.226,
y: 28.271,
}),
'/scene.gltf',
).then(mesh => {
let graphic = new Graphic({
geometry: mesh,
symbol: {
type: 'mesh-3d',
symbolLayers: [{ type: 'fill' }],
},
});
view.graphics.add(graphic);
});