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

Open
opened 2023-11-17 18:49:55 +01:00 by T-112 · 1 comment

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). My example doesn't show this, but when using the GLTF importer, it will sometimes create a material node tree that includes a Color Mix node, which is actually how I ran into this problem in the first place.

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)

I originally created this issue here: blender/blender#115019

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). My example doesn't show this, but when using the GLTF importer, it will sometimes create a material node tree that includes a Color Mix node, which is actually how I ran into this problem in the first place. 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) I originally created this issue here: blender/blender#115019
T-112 added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-11-17 18:49:56 +01:00
Member

This is expected, FBX IO uses https://docs.blender.org/manual/en/latest/addons/import_export/node_shaders_info.html which is limited in the nodes it supports.

This is expected, FBX IO uses https://docs.blender.org/manual/en/latest/addons/import_export/node_shaders_info.html which is limited in the nodes it supports.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#105010
No description provided.