I’m trying to load a 3D model (vase.dae) into Cesium. First I tried the online converter, which returns a single file ‘vase.gltf’, and cesium displays it correctly.
Then I downloaded the collada2gltf tool at Converter Builds · KhronosGroup/glTF Wiki · GitHub.
The command I used was:
collada2gltf.exe -d -r -c Open3DGC -m binary -f vase.dae -o vase/vase
which results in the files included in the vase.7z attachment.
My environment is:
- collada2gltf tool version: 0.7 and 0.8, windows binary.
- Cesium version: 1.2
Cesium failed to render the converted model and reported:
An error occurred while rendering. Rendering has stopped.
TypeError: Failed to execute ‘vertexAttrib3fv’ on ‘WebGLRenderingContext’: The 2nd argument provided is either null, or an invalid Array object.
TypeError: Failed to execute ‘vertexAttrib3fv’ on ‘WebGLRenderingContext’: The 2nd argument provided is either null, or an invalid Array object.
…
I’m not where the problem lies, but I guess it has something to do with the convert tool.
I’m using this file only for testing. Actually I would like to convert a much larger file so that I can’t use the web converter, are there any convert tools I can use? How can I get a single file gltf with the offline convert tool?
The original file is at: https://drive.google.com/file/d/0B04ECJcatgcxRFRDd3c3b3FMekk/view?usp=sharing
And the converted one: https://drive.google.com/file/d/0B04ECJcatgcxaUxFeDN6TUJwSU0/view?usp=sharing
Thanks in advance!