# Problems with 3d-tiles generated in blender

**URL:** <https://community.cesium.com/t/problems-with-3d-tiles-generated-in-blender/15893>\
**Category:** Cesium ion\
**Created:** [October 28, 2021, 8:11am UTC](https://community.cesium.com/t/problems-with-3d-tiles-generated-in-blender/15893 "2021-10-28T08:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakon](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hakon/32/3476_2.png) [@hakon](https://community.cesium.com/u/hakon)\
**Post date:** [October 28, 2021, 8:11am UTC](https://community.cesium.com/t/problems-with-3d-tiles-generated-in-blender/15893/1 "2021-10-28T08:11:58Z")

</div>

Hi!

I have some IFC-models I would like to integrate into Cesium. Unfortunately this is not possible to do directly. The strategy I have used so far, is to:

- Import the IFC-model into blender with the help of the addon BlenderBim (see [https://blenderbim.org/](https://blenderbim.org/))
- Export the model as a glb/gltf file
- Upload it to Cesium ION, and let Cesium ION convert it to 3D-tiles
- Use Cesium ION’s GUI to georeference the model, or “Adjust Tileset Location” as it says

I have also tried to use the Cesium ION blender add-on ([Blender – Cesium](https://cesium.com/learn/ion/integrations-learn/integrations-blender/)), but this I think is equivalent to the strategy I have outlined.

**To my problem:**

If I use a premade 3D-tiles dataset such as OSM-buildings (which is already tiled and available from Cesium ION), and I click on buildings within the Cesium client, an infobox opens up, with information about the properties of the building.  
With my 3D-tiles made from IFC-files however, nothing happens.

To try to find out what is going on, I started console.log-ing a few things.  
It seems like Cesium represents my 3D-tiles differently than OSM-buildings:

I tried to print out the selected entity, using the “selecteEntityChanged” event:

```auto
viewer.selectedEntityChanged.addEventListener((e) => {
    console.log('entity changed');
    console.log(e);
});

```

When I click on one of the buildings from OSM-buildings, the result in chrome development tools is like this:

 ![entity_osm_buildings](https://global.discourse-cdn.com/cesium/original/3X/7/3/739bf9a81af247cb453835b5ebdbde05464c31f5.png)

When I click on my building however, the result is like this:  
 ![entity_my_3d_tiles](https://global.discourse-cdn.com/cesium/original/3X/9/4/94023021ca3adc6e2ef81335ed00d0c492cd90f5.png)

I have also tried to use a direct leftClickEvent to find out what is going on:

```auto
const originalLeftClickHandler = viewer.screenSpaceEventHandler.getInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(
    movement
) {
    originalLeftClickHandler(movement);
    var pickedFeature = viewer.scene.pick(movement.position);

    console.log('pickedFeatured', pickedFeature);
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);

```

This is the result for OSM-buildings in chrome development tools:

 ![picked_feature_osm](https://global.discourse-cdn.com/cesium/original/3X/e/8/e8055f1d24b2cecbb667636d7ef773584de0ee2b.png)

And this is the result clicking on my 3d-tiles:

 ![picked_feature_my3d](https://global.discourse-cdn.com/cesium/original/2X/2/24f65360b4aa56e29e84252129b209e2671d8316.png)

Thanks alot for any help figuring out what the problem is!

---

<div class="post-metadata">

**Author:** ![Matt\_Boyd-Surka](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_boyd-surka/32/5511_2.png) [@Matt\_Boyd-Surka](https://community.cesium.com/u/Matt_Boyd-Surka)\
**Post date:** [November 12, 2021, 7:44pm UTC](https://community.cesium.com/t/problems-with-3d-tiles-generated-in-blender/15893/2 "2021-11-12T19:44:05Z")

</div>

Hi @hakon, thanks for your question and welcome to the forum. Cesium does not currently support per-building metadata for multiple buildings within a single model. In order to get the behavior you’re looking for, you would need to export your buildings as [KML/COLLADA or CityGML](https://community.cesium.com/t/split-a-large-model-into-multiple-buildings-with-individual-metadata/15187/2). These are available as export options in many software packages. If you upload the data to ion as KML/COLLADA or CityGML, the per-building metadata will be preserved, and you’ll see it come up on click.

Let us know if you give that a try and if you encounter any further issues!

Thanks,  
Matt
