glTF-Validator
glTF-Validator copied to clipboard
Validator fails for COLOR_0 in MorphTargets
In gLTF Specification 2.0.1 it says "Client implementations MAY optionally support morphed TEXCOORD_n and/or COLOR_n attributes." but validator fails to validate these optional attributes.
This is going to be addressed in the upcoming release.
Also, I think the validator should detect that, if Color morph targets are used, the Element type should be restricted to floating point values.
The reason is because since morph targets store relative values, it would be possible to have negative values in the morph target, which cannot be encoded to unsigned integers.
Out of curiosity, is there someone using morph colours as relative values though? Or even morph in colours?
I do use colours in morph, but similarly to how any 2d painting apps operate, as absolute replacement (along with an alpha value as layer opacity).
I know the spec says otherwise, but I doubt much thoughts have been given on this subject since vertex colours in morph is not widely used.
The original issue has been fixed.
In a case when all morph target deltas are positive, an exporter should be allowed to use smaller components. Since the validator cannot know the original values, it wouldn't be able to detect an error there.
Any hope to get it fixed?