KhronosGroup/COLLADA2GLTF

Wrong Tangent and Binormal After Conversion

xtassin opened this issue · 0 comments

Converting a model exported from 3DS Max using the Open Collada plugin will give a file generating errors when checked in https://gltf-viewer.donmccurdy.com/

The two reported errors are :

MESH_PRIMITIVE_INVALID_ATTRIBUTE	Invalid attribute name.	/meshes/0/primitives/0/attributes/BINORMAL
MESH_PRIMITIVE_ATTRIBUTES_ACCESSOR_INVALID_FORMAT	Invalid accessor format '{VEC3, FLOAT}' for this attribute semantic. Must be one of ('{VEC4, FLOAT}').	/meshes/0/primitives/0/attributes/TANGENT

I am using COLLADA2GLTF version 2.1.5

The command line uses to generate the file:

COLLADA2GLTF-bin.exe -b --doubleSided true -i test.dae -o test.gltf

As a note (and because I come from there), CesiumJS will fail to render the file and crash with a shader exception. (which is very troublesome since Cesium is dropping support for GLTF 1.0)

Attached, test files to demonstrate the issue (both DAE and GLB)
test.zip