KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.5k stars 319 forks source link

Errors exporting udim textures #2381

Closed 3DE-Damien closed 1 month ago

3DE-Damien commented 1 month ago

Describe the bug

To Reproduce

Expected behavior Getting results similar to Blender viewport

Screenshots Blender Viewport Blender Error PNG_Export

System Information Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 565.90

Blender Version Broken: version: 4.2.3 LTS, branch: blender-v4.2-release, commit date: 2024-10-14 15:20, hash: 0e22e4fcea03 Worked: (newest version of Blender that worked as expected)

julienduroure commented 1 month ago

Let's go step by step.

Confirmed the crash. Root cause is a bad check of jpg/png file format on udim texture

julienduroure commented 1 month ago

Point 1 and 3 are fixed in #2384

The second one is much more complicated to manage, as

3DE-Damien commented 1 month ago

Thank you Julien. I can accomodate the second point, I guess.

I would choose the right texture based on face center UVs location. There would be some issues with overflowing faces, but it's not supposed to happen with udims, AFAIK.