collada2gltf single file gltf?

180 views
Skip to first unread message

Yan Qian

unread,
Oct 28, 2014, 5:22:20 AM10/28/14
to cesiu...@googlegroups.com

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 https://github.com/KhronosGroup/glTF/wiki/Converter-builds.

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?


Thanks in advance!


 
Reply all
Reply to author
Forward
0 new messages