Blender cannot import pbr materials from FBX (the imported material is totally black, without textures) #83399
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#83399
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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: Linux-5.9.10-arch1-1-x86_64-with-arch 64 Bits
Graphics card: Radeon RX 590 Series (POLARIS10, DRM 3.39.0, 5.9.10-arch1-1, LLVM 11.0.0) X.Org 4.6 (Core Profile) Mesa 20.2.3
Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-10-27 14:27, hash:
blender/blender@90e12e823f
Short description of error
When I try to import a fbx from sketchfab that have PBR materials configured (for example this: https://sketchfab.com/3d-models/assault-rifle-pbr-8c6ed34adaf740318f6ab1b08ac4e7d4),
The materials are not imported in Blender, instead, I only get all the meshes black (I enable "Material Preview" in the viewport shading controls).
Exact steps for others to reproduce the error
Uncompress the attached file: Import the fbx file "source/LOW_WEPON.fbx" in Blender using the menú "Import --> FBX".
(Or download the fbx file from "https://sketchfab.com/3d-models/assault-rifle-pbr-8c6ed34adaf740318f6ab1b08ac4e7d4")
In Blender, in the "Viewport Shading" buttons, select the button "Display in Material Preview Mode", all the meshes will be shown in black.
Thank you very much in advance.
assault-rifle-pbr.zip
Added subscriber: @JorgeGasconPerez
Added subscriber: @EAW
I did test this, and this fbx does show up all black. However, the fbx in #83395 does import with materials, so I am not sure that this is an issue in Blender, and not this file.
Also note that the gITF version of the weapon imports as expected with the correct materials.
Added subscriber: @virtualbri
Several PBR material property names are not being checked for in the import_fbx.py, assuming this was exported correctly.
After running into this problem with some 3DS Max files and having access to the source I added additional parameters to look for which made my particular FBX's work.
This is the amended import_fbx.py I am using. If there are other programs using PBD materials with other property names, they'd have to be included too. Maybe this will help someone to come up with a better way to search for all these differing names in Blender.
My python file doesn't work for this assault rifle, nor does importing this model into 3DS Max, so it might just not be textured.
file{F9507411}
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs User Info'
Hi, thx for the report (terribly sorry this has been lying around for so long)
Blender (stable FBX IO) - 2.79 (sub 5)
-- not sure if this is what Sketchfab uses or if they just make available whatever the artist provides?). I traced the connections here https://developer.blender.org/diffusion/BA/browse/master/io_scene_fbx/import_fbx.py$3132Sooo, trying to progress here I would like to ask if this FBX imports "correctly" in any other application?
As a workaround, I would also suggest using GLTF (this by now is more mature in many cases)
Hi Philip,
Thank you for pointing to this issue, I think that it's a problem from sketchfab exporter, it "forgets" the texture connections when the fbx is exported.
That generated fbx files don't work in other softwares either.
Should we close this issue?
Thanks a lot.
Changed status from 'Needs User Info' to: 'Archived'
Thx getting back!
I think this can be closed then, yes. It might make sense to check with sketchfab on their side, but not much we can here here then.