FBX exporter does not properly pack texture used in material if the texture node is not directly connected to the bsdf #115019

Closed
opened 2023-11-16 23:32:42 +01:00 by T-112 · 3 comments

System Information
Operating system: macOS-13.6-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Pro 1.2

Blender Version
Broken: version: 4.0.0, branch: blender-v4.0-release, commit date: 2023-11-13 17:26, hash: 878f71061b8e
Worked: (unknown)

Short description of error
It seems that if the texture used is not directly connected to the Base Color of the PrincipledBSDF node, FBX export will not include the texture (even when set to copy and packed)

Exact steps for others to reproduce the error

  • Download sample gltf from PolyHaven: https://polyhaven.com/a/gray_rocks
  • Import into default scene
  • Add a Color Mix node between the albedo texture and the Base Color socket for the PrincipledBSDF
  • Export FBX with Path Mode set to "Copy" and the pack checkbox checked
  • Try importing the FBX back into Blender (or Maya)
**System Information** Operating system: macOS-13.6-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Pro 1.2 **Blender Version** Broken: version: 4.0.0, branch: blender-v4.0-release, commit date: 2023-11-13 17:26, hash: `878f71061b8e` Worked: (unknown) **Short description of error** It seems that if the texture used is not directly connected to the Base Color of the PrincipledBSDF node, FBX export will not include the texture (even when set to copy and packed) **Exact steps for others to reproduce the error** - Download sample gltf from PolyHaven: https://polyhaven.com/a/gray_rocks - Import into default scene - Add a Color Mix node between the albedo texture and the Base Color socket for the PrincipledBSDF - Export FBX with Path Mode set to "Copy" and the pack checkbox checked - Try importing the FBX back into Blender (or Maya)
T-112 added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-11-16 23:32:43 +01:00
Member

Hi, thanks for the report. Can confirm. Though this seems related to blender/blender-addons#96538 and a bug is within add-on's code so best to report this at: https://projects.blender.org/blender/blender-addons/issues

Hi, thanks for the report. Can confirm. Though this seems related to https://projects.blender.org/blender/blender-addons/issues/96538 and a bug is within add-on's code so best to report this at: https://projects.blender.org/blender/blender-addons/issues
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-11-17 05:33:03 +01:00
Member

FBX uses https://docs.blender.org/manual/en/4.0/addons/import_export/node_shaders_info.html (PrincipledBSDFWrapper in scripts/modules/bpy_extras/node_shader_utils.py in this repository), which does not support Color Mix nodes, so I'm not sure this would be considered a bug.

FBX uses https://docs.blender.org/manual/en/4.0/addons/import_export/node_shaders_info.html (`PrincipledBSDFWrapper` in `scripts/modules/bpy_extras/node_shader_utils.py` in this repository), which does not support Color Mix nodes, so I'm not sure this would be considered a bug.
Author

@Mysteryem I guess it is more of a limitation, but it is not at all obvious that data is lost until you open the exported file since there are no errors or warnings. Also, my example doesn't show this, but the gltf importer does generate materials that have Color Mix nodes etc. sometimes, and those would then fail to export properly.

@Mysteryem I guess it is more of a limitation, but it is not at all obvious that data is lost until you open the exported file since there are no errors or warnings. Also, my example doesn't show this, but the gltf importer does generate materials that have Color Mix nodes etc. sometimes, and those would then fail to export properly.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
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
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#115019
No description provided.