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.
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.
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
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.
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).
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.
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.