Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Tangent and Binormal After Conversion #294

Open
xtassin opened this issue Oct 10, 2022 · 0 comments
Open

Wrong Tangent and Binormal After Conversion #294

xtassin opened this issue Oct 10, 2022 · 0 comments

Comments

@xtassin
Copy link

xtassin commented Oct 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant