Load KML and GLTF to Cesium

**Hi, **

I have some problem with adding several models of spheres, which are included in attachment.

I converted this in COLLADA2GLTF converter and I got only GLTF file which contain only one model of sphere.

What should I do to get the same view in Cesium what in GE?

Thanks for any help,


Spheres_test.kmz (8.15 KB)

Cesium’s KML loader doesn’t support models yet, so unfortunately the easy solution of changing the paths to point to a glTF file instead of a COLLADA won’t work.

You could try using a ModelInstanceCollection, which is a private class that renders instanced models efficiently. However you will need to code the positions by hand which may be annoying.

Take a look at this development Sandcastle example for reference: https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=development/3D%20Models%20Instancing.html&label=Development