New Blender Exporter (1.7.2 SDK) Does Not Export Textures

Version: 1.8.8.0
SDK: 1.7.2
Blender: 3.6

Frequency: Consistently

Severity: Blocker

Bug description: The latest blender exporter no longer exports “images” and “texture” information to the GLTF, this leads to them just being blank white in the sim. It does export material properties, but no image information. Bleow you can find comparisons between 2 exports with 2 exporter versions. The one with textures is an old version (6.4.6) which shipped with SDK 1.6.6, and the white one is the lastes version (I think 7.4.2) which shipped with 1.7.2.

6.4.6


7.4.2

Please keep in mind that The above shown working one was exporter AFTER the not working one, I uninstalled the latest SDK and went back to an older one so it is definitely the new exporter that is causing this. You can verify this by looking at the GLTFs attached and comparing them. Just use a text edit software and search for either “image” or “texture” and you will find that the new one doe snot contain either.

Repro steps: Use the latest Blender exporter that comes with SDK 1.7.2 and export a model with textures. It will no export the textures and will be white in the sim.

Attachments:

gltf_exporter_issue.zip (25.4 KB)

I can reproduce this in Blender 3.6, how ever seems to work in 4.2 and 4.5

this is the error I get for a simple cube with 4 textures and one material - NOTE is_editable error

gather_material_hook fails on <io_scene_gltf2_msfs_2024.glTF2ExportUserExtension object at 0x000002AD76A31D80>

‘Image’ object has no attribute ‘is_editable’

gather_material_hook fails on <io_scene_gltf2_msfs_2024.glTF2ExportUserExtension object at 0x000002AD76A31D80>

‘Image’ object has no attribute ‘is_editable’

21:39:20 | INFO: Finished glTF 2.0 export in 0.003534078598022461 s

[MSFS2024][INFO] ‘testcrap.gltf’ : Export Done. [DETAILS]

Export took 0.047 seconds.

blend file texture packed - link

TestPlane_2024.zip

EDIT: msfs_material_utils.py needs to be fixed with library_utils - is_editable function

funnily enough I didn’t get any error :thinking:

But yeah thanks for mentioning the Blender version we use 3.6 fpr our production pipeline so I should have mentioned that.

Thank you @MichaelWimma-RWProfiles and @DA40CGDFQ

This has been logged and will be fixed.

1 Like