OpenCOLLADA icon indicating copy to clipboard operation
OpenCOLLADA copied to clipboard

Writer stops if `newparam` is declared after its use in `technique`

Open lasalvavida opened this issue 6 years ago • 3 comments

From: https://github.com/KhronosGroup/COLLADA2GLTF/issues/196

I'm not sure if this is valid COLLADA or not, but I can't find anything in the spec explicitly forbidding it.

I think the more pressing issue is that the model was exported from Maya and can't be read by OpenCOLLADA.

lasalvavida avatar Jul 19 '18 15:07 lasalvavida

the schema is authoritative - spec may have issues in fact, there are many bugs opened against the COLLADA spec awaiting Khronos attention for a few years now.

for this specific issue, please use an xml validator with the schema https://www.khronos.org/files/collada_schema_1_4_1.xsd

another tool of interest is the deaValidator distributed here

RemiArnaud avatar Jul 19 '18 18:07 RemiArnaud

@mcbarnes - FYI

RemiArnaud avatar Jul 19 '18 18:07 RemiArnaud

FYI -

@lasalvavida Thank you for your response. Just FYI, Collada 1.4 Spec does enforce newparam appear before technique.

https://www.khronos.org/files/collada_spec_1_4.pdf 8-75, profile_COMMON, Child Elements: Child elements must appear in the following order if present...

Seems like this is a Maya exporter issue. I would still expect OpenCOLLADA to call the IWriter cancel function with a message about the error which it does not appear to do.

lasalvavida avatar Jul 23 '18 15:07 lasalvavida