Exporting a valid GLTF (was valid before import) causes GLTF validation errors #79104

Closed
opened 2020-07-20 09:40:49 +02:00 by Jonathan Clark · 13 comments

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:
315012_GLTF.zip

**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: [315012_GLTF.zip](https://archive.blender.org/developer/F8708441/315012_GLTF.zip)
Author

Added subscriber: @jclarkk

Added subscriber: @jclarkk

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Does this have anything to do with the problem reported in https://github.com/KhronosGroup/glTF-Blender-IO/issues/372 ?

Does this have anything to do with the problem reported in https://github.com/KhronosGroup/glTF-Blender-IO/issues/372 ?
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

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

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

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

This issue was referenced by 051770b36d

This issue was referenced by 051770b36de923a34a023ccd598dd315d2428f3a
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julien Duroure self-assigned this 2020-09-17 18:53:20 +02:00
Author

I've been able to reproduce this issue in Blender 2.9.0 using the attached asset. I've tried using the 'Merge vertices' option as well and it didn't help.

@JulienDuroure
@mano-wii

28798_GLTF.zip

I've been able to reproduce this issue in Blender 2.9.0 using the attached asset. I've tried using the 'Merge vertices' option as well and it didn't help. @JulienDuroure @mano-wii [28798_GLTF.zip](https://archive.blender.org/developer/F9164829/28798_GLTF.zip)
Member

@jclarkk This fix is not on 2.90, please test with 2.91 beta

@jclarkk This fix is not on 2.90, please test with 2.91 beta
Author

@JulienDuroure
I'm able to reproduce this issue with Blender 3.2.0 and while using the "Merge vertices" option in the GLTF importer.

Attached a zip file with the asset that is able to reproduce.

Simply import while selecting "Merge vertices" (Also happens without) and then export it again and you will receive GLTF validation errors.

@JulienDuroure I'm able to reproduce this issue with Blender 3.2.0 and while using the "Merge vertices" option in the GLTF importer. Attached a zip file with the asset that is able to reproduce. Simply import while selecting "Merge vertices" (Also happens without) and then export it again and you will receive GLTF validation errors.
Blender Bot added
Status
Confirmed
and removed
Status
Resolved
labels 2023-03-14 13:26:09 +01:00
Author

I should also mention that I've been able to reproduce it in Blender 3.4.1 as well.

I should also mention that I've been able to reproduce it in Blender 3.4.1 as well.
Member

Confirmed

Confirmed
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-03-30 14:44:42 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#79104
No description provided.