# Offline model converter issue

**URL:** <https://community.cesium.com/t/offline-model-converter-issue/2262>\
**Category:** CesiumJS\
**Created:** [March 30, 2015, 5:32am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262 "2015-03-30T05:32:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umar\_Sharif](https://avatars.discourse-cdn.com/v4/letter/u/bcef8e/32.png) [@Umar\_Sharif](https://community.cesium.com/u/Umar_Sharif)\
**Post date:** [March 30, 2015, 5:32am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/1 "2015-03-30T05:32:06Z")

</div>

Hi,  
I am trying to use offline model converter [COLLADA2GLTF](https://github.com/KhronosGroup/glTF/tree/master/converter/COLLADA2GLTF)

I convert my 3ds files to fbx using 3ds, them import to blender and export to dae. Online converter works fine, but when I use offline converter, it outputs following files:

\*.bin

\*.json

\*0FS.glsl

\*0VS.glsl

Why does not it outputs only gltf file. If I use\*.json file in my projects, it gives error.

Also let me know wen online converter will be available?

Thanks,

Umar

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [March 31, 2015, 12:33am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/2 "2015-03-31T00:33:52Z")

</div>

Hi Umar,

Are you sure you are using the latest version of COLLADA2GLTF?

Also see glTF Tips for Artists: [https://cesiumjs.org/2014/12/15/glTF-Tips-for-Artists/](https://cesiumjs.org/2014/12/15/glTF-Tips-for-Artists/)

And the Troubleshooting section of the Cesium 3D models tutorial: [https://cesiumjs.org/2014/03/03/Cesium-3D-Models-Tutorial/](https://cesiumjs.org/2014/03/03/Cesium-3D-Models-Tutorial/)

Patrick

---

<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:** [March 31, 2015, 1:04am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/3 "2015-03-31T01:04:22Z")

</div>

The offline converter does not create a single file by default. Pass it the -e option to do so. There is also probably a bug in the converter where it should use .gltf instead of .json even when not embedding resources with -e.

---

<div class="post-metadata">

**Author:** ![Umar\_Sharif](https://avatars.discourse-cdn.com/v4/letter/u/bcef8e/32.png) [@Umar\_Sharif](https://community.cesium.com/u/Umar_Sharif)\
**Post date:** [March 31, 2015, 5:12pm UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/4 "2015-03-31T17:12:48Z")

</div>

I have just downloaded from [https://github.com/KhronosGroup/glTF/wiki/Converter-builds](https://github.com/KhronosGroup/glTF/wiki/Converter-builds)

**V0.8** : \*SHA1: df4892809111a8c6dbff4fab6c386a24745d344e \*

_for Windows._

\*When I run, it says \*_msvcp120.dll is missing. I downloaded it._

_Now when I run .exe, application does run._

_I cannot see -e in /help_

[![](https://lh3.googleusercontent.com/-XLEZkjUpDI0/VRrVYIn-n7I/AAAAAAAAHeA/jFO5GH0JJbk/s320/Capture.JPG)](https://lh3.googleusercontent.com/-XLEZkjUpDI0/VRrVYIn-n7I/AAAAAAAAHeA/jFO5GH0JJbk/s1600/Capture.JPG)

_Thanks_

---

<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:** [March 31, 2015, 5:40pm UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/5 "2015-03-31T17:40:00Z")

</div>

I have no idea if those builds are up to date, but the option is definitely there in master, you may have to build it yourself from source. I would submit an issue to their repository: [https://github.com/KhronosGroup/glTF](https://github.com/KhronosGroup/glTF) since it’s technically a different project then Cesium they can better answer your questions.

---

<div class="post-metadata">

**Author:** ![Umar\_Sharif](https://avatars.discourse-cdn.com/v4/letter/u/bcef8e/32.png) [@Umar\_Sharif](https://community.cesium.com/u/Umar_Sharif)\
**Post date:** [April 1, 2015, 5:26am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/6 "2015-04-01T05:26:28Z")

</div>

> I am stuck. I have downloaded [GitHub - KhronosGroup/glTF: glTF – Runtime 3D Asset Delivery](https://github.com/KhronosGroup/glTF/) and cmake.exe. I have visual studio 10, but compiler does give errors. Can you please send me new .exe for offline converter.

Thanks

---

<div class="post-metadata">

**Author:** ![nosigcavok](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@nosigcavok](https://community.cesium.com/u/nosigcavok)\
**Post date:** [May 19, 2015, 7:01am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/7 "2015-05-19T07:01:43Z")

</div>

Hello

I’ve just updated my quite old build and had some issues since I always got the message: Build failed. So I investigated the code downloaded today and compared it with my older code (downloaded on April, 6).

I’m sorry if the wording is completely wrong and my approach is awful, but at least I found a solution for me that works and I thought it could also interest someone else (and I’m interested if someone else has a similar issue):

Setting:

- Mac OS X Yosemite (10.10.3)
- XCode 6.3.2 (6D2105)
- cmake: 3.2.2; pkgconfig: 0.28; pcre: 8.37; libpng: 1.6.17

I just followed the instructions here: [https://github.com/KhronosGroup/glTF/wiki/converter](https://github.com/KhronosGroup/glTF/wiki/converter)

The problem was in COLLADA2GLTF \> Sources \> collada2gltfConvert \> Source Files \> GLTFAsset.cpp on line 217; 358; 398 and 420 with an error: “Use of undeclared identifier ‘getPathDir’”

I then replace the code lines as follows:

inputURI.setPathDir(getPathDir(aURI) + getPathDir(inputURI));

``

with  
inputURI.setPathDir(aURI.getPathDir() + inputURI.getPathDir());

``

and  
std::string folder = getPathDir(outputURI);

``

with  
std::string folder = outputURI.getPathDir();

``

When I built it again it compiled without an error and the converter converts my files perfectly.

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [May 19, 2015, 11:09am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/8 "2015-05-19T11:09:29Z")

</div>

Hi Martin,

Sorry, we recently broke the build on Linux. It is now fixed in [https://github.com/KhronosGroup/glTF/pull/386](https://github.com/KhronosGroup/glTF/pull/386)

Patrick

---

<div class="post-metadata">

**Author:** ![Michael\_Lodge-Paoli1](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Michael\_Lodge-Paoli1](https://community.cesium.com/u/Michael_Lodge-Paoli1)\
**Post date:** [May 26, 2015, 2:17am UTC](https://community.cesium.com/t/offline-model-converter-issue/2262/9 "2015-05-26T02:17:34Z")

</div>

Did the new pull fix your issues on Linux?
