Incorrect material assignments of imported FBX meshes with duplicate materials #104669
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#104669
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.41
Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-05-24 15:26, hash:
9acff4edabe5
Worked: 2.74
Caused by
8366db5686
Addon Information
Name: FBX format (5, 3, 0)
Author: Campbell Barton, Bastien Montagne, Jens Restemeier, @Mysteryem
Short description of error
Imported FBX with duplicate materials in one mesh import with faces assigned to the wrong materials.
This occurs because the importer skips adding duplicate materials, but the material indices are not adjusted to account for the skipped materials, so some faces end up assigned to the wrong materials.
This is the actual cause of the issue that was observed in #103976
Exact steps for others to reproduce the error
The attached .fbx can be produced by exporting the attached .blend as .fbx in Blender 3.4 and earlier (3.5 and newer currently have an export bug that affects this particular setup: #104665)
I'm working on a fix for this.
Adjusting the material indices isn't viable because each Mesh can be used by multiple Objects and each Object can have different Materials or Materials in a different order. Though such Objects do not currently import correctly either.
Seeing as FBX Review doesn't support these Objects, it might be the case that they are deprecated.
The attached .fbx had to be manually created because Blender's FBX exporter gives each Object, that has materials linked to the Object instead of the Mesh, its own Mesh.
I can confirm the problem.
Good to know a fix is being investigated :)