# Problems with glTF converter under windows

**URL:** <https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405>\
**Category:** CesiumJS\
**Created:** [August 7, 2014, 2:42pm UTC](https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405 "2014-08-07T14:42:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier\_Dalang](https://avatars.discourse-cdn.com/v4/letter/o/41988e/32.png) [@Olivier\_Dalang](https://community.cesium.com/u/Olivier_Dalang)\
**Post date:** [August 7, 2014, 2:42pm UTC](https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405/1 "2014-08-07T14:42:10Z")

</div>

Hi !

I'm trying to use the glTF converter to display 3D models in Cesium, but I encounter several problems.

1. The online converter creates a file containing "HTTP Error 503. The service is unavailable.", even if the provided Collada file seems valid (opens well in Blender).

> **[Convert and Host Your Models as glTF on Cesium ion | cesium.com](https://cesium.com/blog/2019/09/17/ion-gltf/)**
>
> Starting today, you can upload OBJ, COLLADA, glTF, or FBX models to Cesium ion for conversion and hosting as glTF. This gives you the ability to manage mode...

2. The 0.8 windows build archive contains no .exe file. Is it corrupt ?

> **[KhronosGroup/glTF](https://github.com/KhronosGroup/glTF/wiki/Converter-builds)**
>
> glTF – Runtime 3D Asset Delivery. Contribute to KhronosGroup/glTF development by creating an account on GitHub.

3a. The 0.7 windows build seems to work (if I add msvcp120.dll and msvcr120.dll in the folder), but the .gltf file that it creates contains some absolute links, which get me a "RuntimeError: Failed to load external shader" error on the server:  
&nbsp;&nbsp;&nbsp;&nbsp;"bufferView\_29": {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"buffer": "\\Users\\XXX\\YYY\\ZZZ",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"byteLength": 67140,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"byteOffset": 0,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"target": 34963  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},  
Plus I didn't expect any external links since I don't have any images. The sample .gltf provided with Cesium don't have such external links.

3b. When I correct the absolute links to relative links, I still get  
"RangeError: Invalid typed array length" in Cesium.  
I guess this comes from incompatibilities between the 0.7 converter and cesium 1.0 ?

3c. I thought it may be to purpose of the -b (bundle) option to package everything neatly. But it crashes (collada2gltf.exe has stopped working) when I run the command :  
&nbsp;&nbsp;&nbsp;&nbsp;collada2gltf.exe -f D:\Users\path\input.dae -b D:\Users\path\output

Here's my folder :

> **[Dropbox - Error](https://www.dropbox.com/sh/lvogaftydrkl6tm/AABhQFBdtuOLbiFFdTr7Go1Fa)**
>
> Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

  
The \_source folder contains the .dae file I'm trying to convert, all the other files are the result of 3b.

Any help would be greatly appreciated !!

Best regards and thanks for Cesium !

Olivier

---

<div class="post-metadata">

**Author:** ![Olivier\_Dalang](https://avatars.discourse-cdn.com/v4/letter/o/41988e/32.png) [@Olivier\_Dalang](https://community.cesium.com/u/Olivier_Dalang)\
**Post date:** [August 13, 2014, 10:58am UTC](https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405/2 "2014-08-13T10:58:51Z")

</div>

Hi,

Still trying but still no luck... I even tried to compile under Windows and Ubuntu, but it doesn't seem to work out of the box...

Under windows, I get (after some warnings) this error:  
GLTF.h(43) : fatal error C1083: Cannot open include file: 'cstdint': No such file or directory

Under ubuntu 14.04, I seem to run into that C++11 problem, I followed the links on the wiki but wasn't able to complete the steps...

Honestly, I'd prefer not to dig too far into building from source (not used to do it), and would much rather be able to use binaries or at least the web tool. I'm a bit frustrated since I'm not able to do anything with my 3D models inside Cesium for now. Do you have an idea on when I can expect some improvements on this ?

Thanks !

Olivier

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [August 13, 2014, 2:08pm UTC](https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405/3 "2014-08-13T14:08:39Z")

</div>

The online converter seems to be working fine. Are you still having issues with it? How big is this model? It could be the server is rejecting it due to size. Can you post it somewhere for us to look at?

For problems with building from [https://github.com/KhronosGroup/glTF](https://github.com/KhronosGroup/glTF), you should contact the maintainers or open an issue there; since that is a separate repository from Cesium.

---

<div class="post-metadata">

**Author:** ![Scott\_Hunter](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/scott_hunter/32/2006_2.png) [@Scott\_Hunter](https://community.cesium.com/u/Scott_Hunter)\
**Post date:** [August 13, 2014, 2:44pm UTC](https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405/4 "2014-08-13T14:44:46Z")

</div>

I checked on the server and the model conversion service had crashed and stopped itself. I’ve started it back up now. There may be something wrong with your model that is crashing the server. Can you provide the model you are trying to convert?

---

<div class="post-metadata">

**Author:** ![Olivier\_Dalang](https://avatars.discourse-cdn.com/v4/letter/o/41988e/32.png) [@Olivier\_Dalang](https://community.cesium.com/u/Olivier_Dalang)\
**Post date:** [August 13, 2014, 2:49pm UTC](https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405/5 "2014-08-13T14:49:10Z")

</div>

Hi,

Thanks for the answer.

I tested again with some more models, including some found on internet, and some indeed work as expected.

Here are two models causing problems :

[https://www.dropbox.com/s/mp0t9klxd0xnbnm/test.dae](https://www.dropbox.com/s/mp0t9klxd0xnbnm/test.dae) (just a cube and a cone, saved with blender)

[https://www.dropbox.com/s/eq9lhtop5ihrr2i/fondaco\_dei\_tedeschi\_2000.dae](https://www.dropbox.com/s/eq9lhtop5ihrr2i/fondaco_dei_tedeschi_2000.dae) (a bit more complex model, but only one object, and still about 10’000 polys only, saved with cinema4d)

Best regards,

Olivier

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/tom/32/1994_2.png) [@tom](https://community.cesium.com/u/tom)\
**Post date:** [August 13, 2014, 7:08pm UTC](https://community.cesium.com/t/problems-with-gltf-converter-under-windows/1405/6 "2014-08-13T19:08:07Z")

</div>

There is an issue with COLLADA v1.5 models. It is currently being looked at but for now only 1.4 models can be converted.
