# Loading local vtk generated glTF files

**URL:** <https://community.cesium.com/t/loading-local-vtk-generated-gltf-files/11806>\
**Category:** CesiumJS\
**Created:** [December 16, 2020, 11:04pm UTC](https://community.cesium.com/t/loading-local-vtk-generated-gltf-files/11806 "2020-12-16T23:04:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leopessanha](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/leopessanha/32/3450_2.png) [@leopessanha](https://community.cesium.com/u/leopessanha)\
**Post date:** [December 16, 2020, 11:04pm UTC](https://community.cesium.com/t/loading-local-vtk-generated-gltf-files/11806/1 "2020-12-16T23:04:51Z")

</div>

Hi,

I am working with Cesium to visualize some georeferenced ParaView results.  
VTK has a native glTF exporter.

I’ve exported a simple Cube from ParaView and was able to show it in Cesium just fine with this piece of code.

```auto

    var cube = viewer.entities.add({
      name: "Cube",
      position: position,
      model: {
        uri: './Source/Assets/Images/Models/cube.glTF',
        scale: 100,
        minimumPixelSize: 128,
        maximumScale: 10000,
      },
    });
    viewer.zoomTo(cube);

```

Then, exported this follow scene with same parameters: [glyphs.gltf](https://community.cesium.com/uploads/short-url/bH1x3FzTGbvq6TNml6X6IPOw28Q.gltf) (1.3 MB)  
Checked to see if it’s a valid glTF in [https://gltf-viewer.donmccurdy.com/](https://gltf-viewer.donmccurdy.com/), and it’s fine.

Try to load it in Cesium, but to no success.  
Changing 3D object’s scale in ParaView or in Cesium didn’t help

Does someone have a light to shine in this matter?

thanks in advance, and good holidays =)

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [December 22, 2020, 11:50pm UTC](https://community.cesium.com/t/loading-local-vtk-generated-gltf-files/11806/2 "2020-12-22T23:50:33Z")

</div>

Hello,

Although the model loads in other viewers, it looks like the glTF might be invalid by the strict definition of the spec. I tried running it through the glTF validator here and it failed: [glTF Validator](https://github.khronos.org/glTF-Validator/)  
This is likely why it is not showing up in Cesium. Sorry I don’t have other suggestions for fixing this.

Best regards,

Hannah

---

<div class="post-metadata">

**Author:** ![leopessanha](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/leopessanha/32/3450_2.png) [@leopessanha](https://community.cesium.com/u/leopessanha)\
**Post date:** [February 4, 2021, 3:04pm UTC](https://community.cesium.com/t/loading-local-vtk-generated-gltf-files/11806/3 "2021-02-04T15:04:00Z")

</div>

Thank you for the suggestion, Hannah!

The geometry was not centered around the origin. That’s why it was ‘not showing up’ in Cesium.  
(it was showing but in a random place)

After all, the glTF files generated through the VTK exporter are valid =)

While researching for a web mapper, I saw that Cesium accepts the following:  
 **![](https://global.discourse-cdn.com/cesium/original/3X/c/e/ce51c5d184600b6609e7774d3e3af2d517d76f23.png)**

I have tried to load .dae and .fbx files the same way as the glTF but to no success.

Is there a difference in the process for other extensions?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dzung](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dzung/32/2996_2.png) [@dzung](https://community.cesium.com/u/dzung)\
**Post date:** [February 4, 2021, 10:47pm UTC](https://community.cesium.com/t/loading-local-vtk-generated-gltf-files/11806/4 "2021-02-04T22:47:28Z")

</div>

The process should be the same for fbx and dae file. Do you mind sharing here or in [support@cesium.com](mailto:support@cesium.com) the asset ids of the models that you failed to upload?

---

<div class="post-metadata">

**Author:** ![leopessanha](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/leopessanha/32/3450_2.png) [@leopessanha](https://community.cesium.com/u/leopessanha)\
**Post date:** [February 7, 2021, 11:22pm UTC](https://community.cesium.com/t/loading-local-vtk-generated-gltf-files/11806/5 "2021-02-07T23:22:07Z")

</div>

Hi, Dzung!

They are local files, only through ‘Cesium Ion’ models have an asset id, right?
