ACCESSOR_VECTOR3_NON_UNIT Error When Converting JSON Format gltf Files to Binary Format glb #1467
Unanswered
mnakaji1-avail
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I suspect the contents of the .gltf and .glb files are identical, but that perhaps the validation is not checking the binary data in the external .bin of the .gltf. Could look more closely if files could be attached as a .ZIP, but I suspect this is not the issue. Because the model contains zero-length vertex tangents, two options would be:
If you're not sure that you need the tangents, I would go with (a). Most models do not need them in my experience, but they're helpful as a fix if you see certain problems with a normal map. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I make a program that loads a set of JSON glTF files, manipulates them using glTF Transform, and downloads the binary glb files. It reads the each files using FileReader, creates a JSONDocument, makes it a Document using WebIO.readJSON(), and then unpartitions() .
const jsonDocument: JSONDocument = { json: {} as GLTF.IGLTF, resources: {}, }; //... load gltf files... const webIO = new WebIO({ credentials: "include" }) .registerExtensions([...KHRONOS_EXTENSIONS]); await document.transform(unpartition()); //..document to glb and download
i use gltf.report to check the resulting glb file, i got many ACCESSOR_VECTOR3_NON_UNIT errors. On the other hand, when i download the document as a glTF file using partition() instead of glb, i didn't get a validation error. How can I make the gltf file glb so that it does not get a validation error?
validation errors sample
errors continues.
Thanks for any tips.
Beta Was this translation helpful? Give feedback.
All reactions