Solved

Collada to glb or gltf


Hello!

I have a rvz file with some windows and I have to export them to gltf to visualize them on Cesium.

With FME I can export them to Collada: now I must convert the resulting 1000 .dae files, in glb or gltf.

There's a weblink where I can translate them by a single drag and drop: https://cesiumjs.org/convertmodel.html and there's another link from where I downloaded the .exe file for windows: https://github.com/KhronosGroup/glTF/releases.

Maybe there's the possibility, thanks to FMEFunctionCaller, to ask FME to run the collada2gltf.exe and read the .dae, translate them and finally save them in a specific folder, but I don't know how to write the string.

Any idea? thank you

icon

Best answer by geosander 1 July 2016, 13:32

View original

3 replies

Badge

You would actually need to use the SystemCaller transformer for this.

@sander_s thank you for the advise, it almost worked but probably the exe has some bugs, so I wonder if it's possible to run the online translator, which never had problems.

 

I mean the converter you can find at this link: https://cesiumjs.org/convertmodel.html (it works with a simple drag and drop)
Badge

@sander_s thank you for the advise, it almost worked but probably the exe has some bugs, so I wonder if it's possible to run the online translator, which never had problems.

 

I mean the converter you can find at this link: https://cesiumjs.org/convertmodel.html (it works with a simple drag and drop)

Thanks for excepting my answer, even if it didn't work for you (or did it now?).

 

Are you sure you entered the correct command for the SystemCaller? It's sometimes a bit a pain to get it right, escaping certain characters and so on... (see documentation).

 

 

Anyway, you cannot call this website from FME workbench. It's not an API that would except POST/PUT methods so you can upload something using the HTTPCaller transformer and get a response, but it's made using pure JavaScript (and only allows for models up to 10MB, I noticed in the code).

 

I guess that's also the best for the Cesium people, else everyone would throw hundreds of files at their conversion service and their site would become unresponsive (or they'd pay a fortune on hosting) ;)

Reply