Script which exports meshes also affects certain meshes #122058

Closed
opened 2024-05-21 18:47:00 +02:00 by Robert S · 6 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 552.12

Blender Version
Broken: version: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash: e1743a0317bc
Worked: (newest version of Blender that worked as expected)

Short description of error
image
image

Exact steps for others to reproduce the error
Export the model to GLB.

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 552.12 **Blender Version** Broken: version: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash: `e1743a0317bc` Worked: (newest version of Blender that worked as expected) **Short description of error** ![image](/attachments/c060cb61-1367-4bc4-9356-e531e9b81384) ![image](/attachments/97c42790-1b56-427c-a338-356a20c0717e) **Exact steps for others to reproduce the error** Export the model to GLB.
Robert S added the
Status
Needs Triage
Severity
Normal
Type
Report
labels 2024-05-21 18:47:00 +02:00
Member

For me, this happens with the regular glTF exporter as well, no?

Just getting this straight: this has nothing to do with your particular script, does it?

For me, this happens with the regular glTF exporter as well, no? Just getting this straight: this has nothing to do with your particular script, does it?
Philipp Oeser added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-05-22 08:06:30 +02:00
Author

Oh, yes you are correct. I just assumed it was the script since I modified that. Updated the bug report now, and I have more examples if needed, turns out.

Oh, yes you are correct. I just assumed it was the script since I modified that. Updated the bug report now, and I have more examples if needed, turns out.
Member

OK, to be precise, could you report this https://github.com/KhronosGroup/glTF-Blender-IO/issues/ then? (this is usually where GLTF stuff is handled).

You can also use the Report a Bug in the Addons / Extension.

Will close this already since this is not for the blender/blender repository.

Will already raise awareness to @JulienDuroure though

OK, to be precise, could you report this https://github.com/KhronosGroup/glTF-Blender-IO/issues/ then? (this is usually where GLTF stuff is handled). You can also use the `Report a Bug` in the Addons / Extension. Will close this already since this is not for the `blender/blender` repository. Will already raise awareness to @JulienDuroure though
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-05-22 12:32:23 +02:00
Member

@lichtwerk This is not something related to glTF exporter.
The mesh is not valid, so exporter can't guarantee how it will be exported, and glTF exporter has no impact on how Blender will manage the geometry when calling object.data.validate()

@lichtwerk This is not something related to glTF exporter. The mesh is not valid, so exporter can't guarantee how it will be exported, and glTF exporter has no impact on how Blender will manage the geometry when calling object.data.validate()
Member

Ah, OK (should have checked, sorry).

ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:655 BKE_mesh_validate_arrays: 	Faces 40 and 17 use same vertices (1
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 2
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 21
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:659 BKE_mesh_validate_arrays: ), considering face 17 as invalid.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:655 BKE_mesh_validate_arrays: 	Faces 9 and 44 use same vertices (16
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 17
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 37
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:659 BKE_mesh_validate_arrays: ), considering face 44 as invalid.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:655 BKE_mesh_validate_arrays: 	Faces 46 and 35 use same vertices (34
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 35
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 53
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:659 BKE_mesh_validate_arrays: ), considering face 35 as invalid.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 67 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 68 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 69 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 140 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 141 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 142 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 178 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 179 is unused.
ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: 	Corner 180 is unused.

@RobertS : how was this mesh created? Importer? Script? Blender modeling tools?

Ah, OK (should have checked, sorry). ``` ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:655 BKE_mesh_validate_arrays: Faces 40 and 17 use same vertices (1 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 2 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 21 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:659 BKE_mesh_validate_arrays: ), considering face 17 as invalid. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:655 BKE_mesh_validate_arrays: Faces 9 and 44 use same vertices (16 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 17 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 37 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:659 BKE_mesh_validate_arrays: ), considering face 44 as invalid. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:655 BKE_mesh_validate_arrays: Faces 46 and 35 use same vertices (34 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 35 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:657 BKE_mesh_validate_arrays: , 53 ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:659 BKE_mesh_validate_arrays: ), considering face 35 as invalid. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 67 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 68 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 69 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 140 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 141 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 142 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 178 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 179 is unused. ERROR (bke.mesh): source/blender/blenkernel/intern/mesh_validate.cc:699 BKE_mesh_validate_arrays: Corner 180 is unused. ``` @RobertS : how was this mesh created? Importer? Script? Blender modeling tools?
Author

It was made in Blender. Here's the "original" mesh, which doesn't deform on export. The only difference is that I used snapping to straighten it out, and possibly also baked some vertex attributes (been a few years so I can't remember exactly... invalid mesh comes from a 2022 file, while the valid mesh comes from a 2021 file).

Can't fathom why that process could produce something "invalid" (and why Blender doesn't say this in a noticeable way when it happens).

It was made in Blender. Here's the "original" mesh, which doesn't deform on export. The only difference is that I used snapping to straighten it out, and possibly also baked some vertex attributes (been a few years so I can't remember exactly... invalid mesh comes from a 2022 file, while the valid mesh comes from a 2021 file). Can't fathom why that process could produce something "invalid" (and why Blender doesn't say this in a noticeable way when it happens).
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 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#122058
No description provided.