Convert kmz dae to glTF

1,730 views
Skip to first unread message

alegarreta

unread,
May 27, 2014, 12:57:58 PM5/27/14
to cesiu...@googlegroups.com
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

Patrick Cozzi

unread,
May 27, 2014, 8:12:50 PM5/27/14
to cesiu...@googlegroups.com
Can you share the original COLLADA and converted glTF models?

Thanks,
Patrick

alegarreta

unread,
May 28, 2014, 4:23:04 AM5/28/14
to cesiu...@googlegroups.com
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
gn82_eOF.zip

alegarreta

unread,
Jun 2, 2014, 10:13:14 AM6/2/14
to cesiu...@googlegroups.com
Hi Patrick,

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

Thanks in advance,

Aritz

Tom Fili

unread,
Jun 3, 2014, 10:48:01 AM6/3/14
to cesiu...@googlegroups.com
Your zip file exposed a bug in the converter. We have updated the website to fix the issue.

Thanks
  Tom

alegarreta

unread,
Jun 3, 2014, 11:26:18 AM6/3/14
to cesiu...@googlegroups.com
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

Patrick Cozzi

unread,
Jun 5, 2014, 8:07:48 AM6/5/14
to cesiu...@googlegroups.com
Aritz - can you post the latest glTF file for us to have a look?

Patrick


--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/J1RtPKXN0uc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

alegarreta

unread,
Jun 5, 2014, 8:49:28 AM6/5/14
to cesiu...@googlegroups.com
Hello Patrick,

Here you have the converted zip file.

Thanks!

Aritz
glTF.zip

SMatej

unread,
Jun 9, 2014, 4:19:49 AM6/9/14
to cesiu...@googlegroups.com
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

Patrick Cozzi

unread,
Aug 5, 2014, 8:34:05 AM8/5/14
to cesiu...@googlegroups.com
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



--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/J1RtPKXN0uc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

alegarreta

unread,
Aug 6, 2014, 3:49:03 AM8/6/14
to cesiu...@googlegroups.com
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

ericf

unread,
Sep 18, 2014, 1:37:57 PM9/18/14
to cesiu...@googlegroups.com
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

Patrick Cozzi

unread,
Sep 18, 2014, 4:34:05 PM9/18/14
to cesiu...@googlegroups.com
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

ericf

unread,
Sep 19, 2014, 11:27:35 AM9/19/14
to cesiu...@googlegroups.com
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 

Patrick Cozzi

unread,
Sep 20, 2014, 7:36:06 AM9/20/14
to cesiu...@googlegroups.com
> The latest v0.8 does not document that the -e option is available.

I know, we submitted #310 a while back.

Patrick
Reply all
Reply to author
Forward
0 new messages