Convert kmz dae to glTF

Hello,

I downloaded 3Dobjects example (http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=3D%20Models.html&label=All) on my computer and works fine. But when I try to add new glTF, which is created by me, this don’t work fine.

I’ve a radar .kmz file with .kml, .dae and .png files. I want to create glTF with http://cesiumjs.org/convertmodel.html converter. When I get the glTF model adding only .dae and .png files. I added this new json in the code of the 3Dobjects example and this error appear: RangeError: invalid array length.

Someone knows why it could be?

Thanks,

Aritz

Can you share the original COLLADA and converted glTF models?

Thanks,

Patrick

Hi Patrick,
I share the original kmz file which work fine in Google Earth. If I change the extension from kmz to zip and drag it to COLLADA converter (http://cesiumjs.org/convertmodel.html) this response is “Bad Request”. If I removed the kml file which is inside the zip and try it again the conversion, gn82_eOF.zip file is created. I extract the files and added this new json to the code of 3Dexamples code, but when launching the application some files are not founded. I redistribute files to be possible to found all of them but this error appear: RangeError: invalid array length.

Best Regards,

Aritz

2009_06_07_23_52_31.kmz (577 KB)

gn82_eOF.zip (467 KB)

Hi Patrick,

Did you have time to watch the files which I sent?

Thanks in advance,

Aritz

Your zip file exposed a bug in the converter. We have updated the website to fix the issue.

Thanks

Tom

Thank you very much Tom!!

The website issue is fixed, but when I try to run converted glFT model in the 3Dexamples code the error still appear:
An error occurred while rendering. Rendering has stopped. RangeError: invalid array length

Do you know why it could be?

Best regards,

Aritz

Aritz - can you post the latest glTF file for us to have a look?

Patrick

Hello Patrick,

Here you have the converted zip file.

Thanks!

Aritz

glTF.zip (467 KB)

Hello,

I may have encountered a similar problem. I have tried converting a simple .dae file to glTF, but when I tried to open the downloaded .zip file an error occured.

The Error says: Cannot open file 'glTF_sphere.dae.zip'. It does not appear to be a valid archive.\nIf you downloaded this file, try downloading the file again.

I have dragged a .dae file and a zipped .dae file into the converter and I get the same result.

The files that were used are on the following link:
https://drive.google.com/folderview?id=0B2_vAGAO6eKRUlMzMmFnQk8yOFk&usp=sharing

Aritz - can you please provide the original COLLADA model? The directory structure in the zip you sent looks suspect.

Sulc - Try the latest converter, which returns a single .gltf file with embedded resources, instead of a zip. If it doesn’t work, please post your original COLLADA model (it is no longer in the google drive link).

Patrick

Hello Patrick,

I share the original kmz file which work fine in Google Earth. You can change the extension from kmz to zip and drag it to COLLADA converter.

Best regards,

Aritz

2009_06_07_23_52_31.kmz (577 KB)

Patrick,

I download the built converter from https://github.com/KhronosGroup/glTF. It produces a set of files with the gltf referencing them. I can’t get it to produce a single file.

Is your online converted based on the converter from Khronos? Did you guys post process the results to base64 encode those extra files or am I using the tool wrong?

My application produces Collada on the fly, so I would like to have a the converter on my server.

Thanks

Eric

Aritz - this looks like a bug in the converter. I submitted #329.

Eric - our model converter has a pipeline around COLLADA2GLTF, but we added embedded resources to COLLADA2GLTF. Use the -e option.

Patrick

Patrick
The latest v0.8 does not document that the -e option is available.

The option is there though and it worked great.

It also turned out that I can use the non-embedded files just fine. I just need put the dae into a folder inside my server and convert it in-place. Cesium can reach back into my server and find the bin and shader files just fine.

I perfer embeded, so I will use -e.

Thanks for the response.

Eric

The latest v0.8 does not document that the -e option is available.

I know, we submitted #310 a while back.

Patrick