You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm generating a single triangle test using the code below and running into ACCESSOR_VECTOR3_NON_UNIT in the glTF validator on https://gltf-viewer.donmccurdy.com/
I think this is because normalX, normalY, and normalZ are not specified for any of the vertices, but this library still adds NORMAL data to the model. The normals are supposed to be unit vectors.
This seems like a valid issue report for this project. normalX, normalY, and normalZ should probably be changed to be undefined by default, and if normals are not defined across all vertices, the NORMAL data should be left out.
That sounds like a great explanation on what needs to be done. I have since reporting figured out a solution using @gltf-transform/core, if I wouldn't have, I'd try make a PR with the fix from your comment. - Needed to build something that could generate a model for web from a LandXML surface (used in civil engineering).
Thank you
Hey, I'm generating a single triangle test using the code below and running into ACCESSOR_VECTOR3_NON_UNIT in the glTF validator on https://gltf-viewer.donmccurdy.com/
Am I doing something wrong?
Produced *.gltf file extracted using glTF VS code extension:
Error report:
The text was updated successfully, but these errors were encountered: