When using Cesium ION models, such as the “Cesium OSM Buildings” tileset, everything functions correctly, including interactions like clicking on buildings. However, when importing a custom 3D model, it loads and is accessible within the scene, but it does not support interactions or expected behaviors within CesiumJS.
However, when we import a model our own model, CesiumJS does not interact with it properly.
The model loads, and we have access to it, but there is no interaction or expected behavior within CesiumJS(you can’t click on the model and interact with it as in example above).
Would you be able to explain more about how you’re adding the model and what sort of model it is? It could also be helpful if you’re able to provide your own minimial sandcastle that’s showing the lack of interaction you’re expecting.
As far as I know we don’t support per feature interactions “out of the box”. It can definitely be added yourself as shown in that sandcastle you linked but it doesn’t happen by default. I’m not sure if that’s what you’re requesting so if I’m assuming wrong please let me know
Hi, We upload a 3D model (Factory) to Cesium ION, where entities inside have metadata. The model is imported as a GLB file, everything is successful, the model is visible, and it can be used. However, clicking on parts of the 3D model does nothing.
Below is the code that demonstrates everything. You can click on a Cesium OSM Building (any building) and see the metadata, while the metadata from the custom 3D model does not load.
The sandcastle example was created using the Design Tiler. The Design Tiler outputs metadata using the EXT_structural_metadata extension. The sandcastle example assumes that structure to display the metadata.
It looks like your .glb was creating by exporting from Blender (“generator”: “Khronos glTF Blender I/O v4.3.47”). The metadata is in the “extras” property, which the example doesn’t have the logic to parse.
The fastest way to getting the metadata to interactively display is likely running the model through the Design Tiler.
Let us know if that works out or we need to figure out additional steps.