FBX Export 3.1 Missing/texture Wrong UV #96538
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#96538
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: Mac 11.6.4 + Also headless on Ubuntu
Graphics card: AMD Radeon R9 M295X 4 GB
Blender Version
Broken: (3.1) Mac install and Snap on Ubuntu
Worked: (3.0) Mac install and Snap on Ubuntu
Short description of error
On export of FBX file (attached character.glb) when exporting as FBX "Copy" and "Embed textures". When importing the FBX into any Blender version the character UV is wrong / texture map missing based on file size being smaller.
Did on Mac and also on Ubuntu.
Exporting works for 3.0 headless and on Mac... can export this file as FBX and reimport it into with no issues.
Exact steps for others to reproduce the error
0. Blender 3.1
Repeat above steps with Blender 2.93 or 3.0 to see export work.
Based on the default startup or an attached .blend file (as simple as possible).
character.glb
Added subscriber: @clayrain
Added subscriber: @scurest
This is caused by a change in the glTF importer. For images embedded in the file, it used to write the image data to a uniquely-named tempfile and load that. It now packs the data directly with
img.pack()
and does not set the image's filepath at all. I think the FBX exporter is using the filepath as a key, so it treats all images that have a blank filepath (which is all of them in this case) as the same.This could be fixed by either having the FBX exporter handle blank filepaths, or by having the glTF importer assign images a unique "fake" filepath when importing.
I looked at the FBX importer and it always sets a filepath on images.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @JulienDuroure, @mont29
@JulienDuroure I would rather not have blank filepaths in images in general, even if they are packed in Blender... So think this should rather be fixed from glTF side than FBX one?
@mont29
Any idea why this error message? BTW even with this error message, seems glb import works
for setting filepath --> https://developer.blender.org/diffusion/BA/browse/master/io_scene_gltf2/blender/imp/gltf2_blender_image.py$92
@JulienDuroure
Indeed generated pictures are not supported by FBX currently. But this is a separated issue imho.
I do not understand why you try to change the
source
property of your image here? either it is packed, and then just set itsfilepath
property, or it is indeed extracted on disk, in which case you can switch itssource
toFILE
after having set a valid filepath?AFAIK, the packed file is only used if the source is 'FILE' (just like eg the generated_color is only used if the source is 'GENERATED'). When the image is created with images.new, the source is initially 'GENERATED' so it needs to be switched to 'FILE' to actually use the packed file.
IMO it would be better to fix the FBX side since the glTF importer is not the only place images like this could come from.
I've been following this issue and I used to have this working in Blender 3.0.1. But today I can't get Blender 2.93, Blender 3.0.1 or Blender 3.4 to work. They all result in missing textures.
I have a workaround I built on my server using a headless blender install. Since I needed to do this often for work I made it an online app.
@Michael-Cawood let me know if this if for you (one time) or studio needs. For one time, the workaround is like this:
1.Import model
2.Explort as gltf (with the settings for seperate textures)
3.Reimport that gltf
4. Now you can export as FBX or whatever.
Hope this helps make your modeling conversion time happier.
@clayrain Genius! Yes, that fixed it. Well done. Thank you. I used Blender 2.93 for it to work.
@Michael-Cawood glad it worked. Good luck with your project!
Any love for me Blender and the rest of us? Feel like fixing this issue yet???