# Are there conditions to export glTF format correctly?

**URL:** https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714
**Category:** ParaView Support
**Created:** [March 2, 2020, 5:39am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714 "2020-03-02T05:39:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![yugo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@yugo](https://discourse.paraview.org/u/yugo)
#### Post date: [March 2, 2020, 5:39am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/1 "2020-03-02T05:39:22Z")

</div>

I drew a threshold and contour data from 3D data (Structured (Curvilinear) Grid), and I exported scene to glTF format on Paraview 5.8.0. I checked it with 3D Viewer on Windows 10, but the shape was obviously different from Render View on ParaView. The shape of a triangular polygon with a only some part of the shape were displayed.

The shepe of the Example Visualizations that exported to glTF file was displayed correctly and same as Render View on ParaView.

Are there conditions that number of polygons or other conditions to export glTF format correctly?

I plotted threshold geometry  
Type: Unstructured Grid  
Number of Cells: 26311  
Number of Points: 53647  
Memory 2.7MB

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 2, 2020, 5:48am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/2 "2020-03-02T05:48:44Z")

</div>

Can you share your .vtu and .gltf file ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 2, 2020, 6:22am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/3 "2020-03-02T06:22:28Z")

</div>

The two geometries are the same here.

 ![2020-03-02-075602_1916x1056_scrot](https://discourse.paraview.org/uploads/default/original/2X/8/84c2865dbad86fd73c2acf702cb2f0060c0d0e08.png)

---

<div class="post-metadata">

### Author: ![yugo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@yugo](https://discourse.paraview.org/u/yugo)
#### Post date: [March 2, 2020, 6:38am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/4 "2020-03-02T06:38:28Z")

</div>

Are Paraview and Microsoft 3D Viewer the same shape in your environment?  
Does the exported glFT format from ParaView not guarantee the shape on different software?

Microsoft 3D Viewer

> **[Microsoft 3D Viewer](https://en.wikipedia.org/wiki/Microsoft_3D_Viewer)**
>
> 3D Viewer (formerly Mixed Reality Viewer and before that, View 3D) is a 3D object viewer that was first included in Windows 10 1703. It supports the .fbx, .3mf, .obj, and .stl and many more file formats listed in features section.
> On the first launch, 3D Viewer automatically loads a "Bee.glb" file and renders an animated bee on a gray background. Users can change the viewing angle, select and watch one of the available animations (defined in the 3D file) or adjust either of the 3 light sources....

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 2, 2020, 6:41am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/5 "2020-03-02T06:41:04Z")

</div>

gltf online viewer also give something similar.  
[https://gltf.insimo.com/](https://gltf.insimo.com/)

A bug in the microsoft 3D viewer ?  
Can you share what you have in the microsoft 3D viewer ?

---

<div class="post-metadata">

### Author: ![yugo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@yugo](https://discourse.paraview.org/u/yugo)
#### Post date: [March 2, 2020, 6:44am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/6 "2020-03-02T06:44:06Z")

</div>

Thank you for your kind support.

---

<div class="post-metadata">

### Author: ![yugo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@yugo](https://discourse.paraview.org/u/yugo)
#### Post date: [March 2, 2020, 6:48am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/7 "2020-03-02T06:48:36Z")

</div>

Mirosoft 3D Viewer screen shot

 ![microsoft 3d](https://discourse.paraview.org/uploads/default/original/2X/9/954e7b360c50527541f32852c31a817b4abaffa0.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 2, 2020, 7:39am UTC](https://discourse.paraview.org/t/are-there-conditions-to-export-gltf-format-correctly/3714/8 "2020-03-02T07:39:24Z")

</div>

I reproduce the issue with 3D viewer. Since it is only failing there, it looks like a bug on their side. No idea of the reason why though.
