Page 1 of 1

0.9.1 collada export issue

PostPosted: Wed Aug 26, 2009 9:34 pm
by jules
I'm trying to import a collada object produced from version 0.9.1 (the 1.0 alpha doesn't seem to do collada exports...?) into a custom application using assimp, but it won't import. I've had a look at the output produced, and it doesn't validate according to the collada schema. Here's the output from the validator:

$ /cygdrive/i/Software/coherencytest_win32_x86.exe laura.dae
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}asset': Missing child element(s). Expected is one of ( {http://www.collada.org/2005/11/COLLADASchema}contributor, {http://www.collada.org/2005/11/COLLADASchema}created ).
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}technique', attribute 'sid': '' is not a valid value of the atomic type 'xs:NCName'.
ERROR: CHECK_schema Error msg=Element '{http://www.collada.org/2005/11/COLLADASchema}library_controllers': Missing child element(s). Expected is one of ( {http://www.collada.org/2005/11/COLLADASchema}asset, {http://www.collada.org/2005/11/COLLADASchema}controller ).
ERROR: CHECK_count Failed: expected=55854, result=111708(type=source,id=mesh-Geometry-Normals)array count != number of name in array value_count


I'm guessing these errors are why assimp's struggling to load the model. Does anyone know of a workaround, or am I just going to have to wait for collada export to be reimplemented for 1.0?

Re: 0.9.1 collada export issue

PostPosted: Thu Aug 27, 2009 5:50 am
by mflerackers
We haven't started on Collada export yet for makehuman 1.0. I took a look at the Collada spec before, and seeing it is quite the horror of 3D file formats, I can't say immediately what would be wrong.

Looking at your errors, you can try placing <created>2008-08-27T02:16:38Z</created> under the <asset> tag.

I don't know why there are technique tags in the file, usually it's for external programs, but the sid should not be empty, so maybe replace '' with something unique, like 'tech01', 'tech02', etc.

I seems <library_controllers> need a <controller> child, which needs a <skin> or <morph> which themselves need many additional tags, so maybe it's best to just remove the <library_controllers> subtree.

For the last error, it seems there are double as many elements in the array as advertised. maybe just try setting the count to 111708 instead of 55854.

Hope it works.