Page MenuHome

Exporting a valid GLTF (was valid before import) causes GLTF validation errors
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Linux-4.15.0-96-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: Mesa DRI Intel(R) UHD Graphics 620 (KBL GT2) Intel Open Source Technology Center 4.6 (Core Profile) Mesa 20.0.8

Blender Version
Broken: version: 2.83.2, branch: master, commit date: 2020-07-09 05:50, hash: 239fbf7d936f, type: Release
Also Broken: version: 2.83.0

Short description of error
I've imported a GLTF that passed the GLTF validator without any problems. Once I export, without doing any modifications, I receive GLTF validation errors:

"code": "ACCESSOR_VECTOR3_NON_UNIT",
"message": "Vector3 at accessor indices 116049..116051 is not of unit length: 0.",
"severity": 0,
"pointer": "/meshes/1/primitives/0/attributes/NORMAL"

Exact steps for others to reproduce the error

  1. Import GLTF file
  2. Select only the hierarchy of the imported object
  3. Export GLTF while selecting 'Selected Objects' in Include
  4. Test the GLTF in a GLTF validator: https://github.khronos.org/glTF-Validator/

Attached the GLTF:

Event Timeline

Note: Ticket created upstream to follow the subject: https://github.com/KhronosGroup/glTF-Blender-IO/issues/1138

Confirmed the bug, and confirmed that this is linked to https://github.com/KhronosGroup/glTF-Blender-IO/issues/372
Importing using the new option merging vertices solved the issue also

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Jul 23 2020, 1:51 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".