google / usd_from_gltf

Apache License 2.0
547 stars 85 forks source link

GLTF_ERROR_BAD_SEMANTIC error when encountering (allowed) application specific attributes #59

Open silvainSayduck opened 4 years ago

silvainSayduck commented 4 years ago

According to the glTF 2.0 specs, application-specific attributes are allowed (as long as they start with an underscore):

Valid attribute semantic property names include POSITION, NORMAL, TANGENT, TEXCOORD_0, TEXCOORD_1, COLOR_0, JOINTS_0, and WEIGHTS_0. Application-specific semantics must start with an underscore, e.g., _TEMPERATURE.

However, the converter refuses conversion when encountering such an attribute, for example _UV3. It returns the following error and stops the conversion:

ERROR: meshes[4].primitives[0].attributes: Unrecognized attribute semantic: _UV3 [GLTF_ERROR_BAD_SEMANTIC]